ztatic
ztatic

Reputation: 1181

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 want..

ffmpeg -f image2 -i img%01d-0.jpg -y test.mpg

Any idea how to add the pause?

Upvotes: 4

Views: 10035

Answers (1)

Kray
Kray

Reputation: 186

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.

Upvotes: 13

Related Questions