17
5
Let's say I have an mp3 file of 1 minute length. And I have 20 png images. I want to combine these images and an audio into a video file, but I do not want each image to last 3 seconds on screen, I want some images to last 5 seconds, others 1 second etc.
The only way I can think of is just copy the images that should last more time, e.g. to have image1, image2, image3 to be exactly the same, this gives me 3x more time in video.
However this is very time and space consuming. Is there any switch / parameter in ffmpeg that allows me to do that?
As you found out ffmpeg should display each image for the same length. If you want to vary the length you will have to duplicate the images beforehand or create separate videos of each desired duration and then concatenate them. Maybe some other users have better ideas, but this type of task might be easier with an editor such as Kdenlive, etc. – llogan – 2013-07-09T17:22:18.423
I am doing it from php script, so editor is not what I am looking for. – Flot2011 – 2013-07-10T00:53:59.337