I need help creating code for ffmpeg
. I have a picture with dimensions x000*1080
(the length will be more than 1920, but it depends on the picture). I want to scroll it endlessly and seamlessly (the picture repeats)
i write this code, who work but have freezes
ffmpeg -loop 1 -i sr_innernet.png -vf "scroll=horizontal=0.0004,crop=1920:1080:0:0,format=yuv420p" -r 120 -t 10 output.mp4
After this i googled other method, who can make it smoothly. but this method no works with looping(image scrolled once)
ffmpeg -r 1 -loop 1 -t 61 -i sr_innernet.png -filter_complex "color=white:s=1920x1080, fps=fps=60[bg];[bg][0]overlay=x='-t*120':shortest=1" -preset ultrafast -map output.mp4
I tried to combine these two methods. I also asked the AI, but all the answers did not suit me. Using if else in the code causes the image to jump when it reaches a certain limit. some combinations scrolled the image seamlessly, but the height of the displayed part was several times less than 1080.
i need have videostream who
– scroll image in loop
– have smooth(use white background with frequency 60 fps)
AI recommended freaky recommendation with if else statements, or other variants with overlay, but all them dont suit me. thats or have end of picture(i see white screen after scroll picture) or just jumping image