[FFmpeg-user] How to set time each image in video

Phil Turmel philip at turmel.org
Wed Dec 7 14:28:00 CET 2011


On 12/07/2011 04:30 AM, Mr Anh wrote:
> I'm doing a slideshow. I am having a problem: I can not set the time for each
> image.
> For example: ffmpeg.exe -r 0.062 -i %03d.jpg -r 59 -s hd720 -b 30000k -ab
> 320k test.flv
> 
> I want a second image is 15 seconds, the first two images was 20 seconds,
> first three images is 10 seconds.
> How does it work?

You can't, directly.  But you can choose a jpeg frame rate that is a common
denominator, and duplicate frames the desired number of time.  In your example,
use an input rate of 0.2, then have two, three, or four duplicate frames as
desired.

HTH,

Phil


More information about the ffmpeg-user mailing list