I want to create a video from a single image. The image should scroll vertically and the output needs to be seamless so it can be looped (the image itself is seamless).
Example of what I want to create: GIF example and the texture from the example: seamless texture.
Length of the video is not that important since if the scrolling is seamless I should be able to just loop it with ffmpeg -stream_loop 3 -i input.mp4 -c copy output.mp4 afterwards.
I have tried:
ffmpeg -loop 1 -i input.png -framerate 30 -vf "scroll=vertical=0.002,crop=iw:600:0:0,format=yuv420p" -t 10 -y output.mp4
which creates a video with the desired scrolling effect but its not seamless due to Issues matching the video length with the height of the image/scrolling speed and it looks something like this: Example output (exaggerated) Also ignore it scrolls the other way.
I'm not sure how to proceed, maybe its just a simple math that needs to be done to add to
-t X by looking at the scroll speed & image height? . Any ideas welcome how to solve this with either ffmpeg/python/powershell under windows.