I am using ffmpeg to turn a sequence of images (img001.png, img002.png, and so on) into a video (output.mp4) using the following command:
ffmpeg -r 1/5 -i img%03d.png -r 25 -qscale:v 2 -shortest -codec:a copy output.mp4
The result is a video that displays every input image for five (5) seconds.
- Is it possible to have ffmpeg parse the filename paths and timings from a file? I tried the slideshow tutorial on the official ffmpeg website but the output displayed only the last image, briefly, at the end of the video.
- Is it possible to bundle audio files with those settings?
file 'image001.png' file 'sound001.wav' duration 5 file 'image002.png' file 'sound002.wav' duration 2 file 'image003.png' file 'sound003.wav' duration 3
Image001 is displayed for five(5) seconds while sound001 is being played back and so on.