I want to programmatically create a video file consisting of a series of images. However, I would also like to indicate the duration for each image. I often see ffmpeg examples suggested for similar tasks, but they always take the same duration for each image. Is there an effective way to achieve this? (An ineffective solution can set the frame rate to something high and copy each image repeatedly until it matches the expected duration)
I will dynamically generate each of the images, so if there is a way to encode image data into video clips without writing each image to disk, this is even better. This, however, is not a requirement.
Edit: To be clear, I don't have to use ffmpeg. Other free command line tools are fine, as are video processing libraries. I'm just looking for a good solution.
source share