building video from images with ffmpeg w/ pause between frames
I want a ffmpeg command to make a video out of x
images with a y
sec pause between frame change, so that one can actually see the image. Something like the below command seems close based on what I've read, but I can find out how to add the pause that I开发者_JAVA技巧 want..
ffmpeg -f image2 -i img%01d-0.jpg -y test.mpg
Any idea how to add the pause?
One solution would be setting the input framerate to frames per second, and then manually setting the output framerate to something accepted by the codec. For example:
ffmpeg -f image2 -r 1 -i img%01d-0.jpg -y -r 25 test.mpg
This would lead to every image to be shown for one second. -r 0.5
would mean 2 seconds and so on.
精彩评论