开发者

building video from images with ffmpeg w/ pause between frames

开发者 https://www.devze.com 2023-03-27 08:20 出处:网络
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\'v

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消