Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 899
ztatic Avatar asked Oct 28 '25 05:10

ztatic


1 Answers

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.

like image 148
Kray Avatar answered Oct 31 '25 13:10

Kray