I am planning to render a personal 3d project as an image sequence, where each frame takes about a minute to be created and saved as an image file.
If I were to use the regular ffmpeg syntax to convert this image sequence to a video file (ffmpeg -i image-%03d.png output.mp4
) before the render has finished, it will as expected stop once it reached the last image file. But as the list of image files is growing over time, using this syntax I would need to wait until the project is done rendering in order to convert the entire thing to a video file, which will take quite a while.
I was curious if it is possible to let ffmpeg "wait" for the next files in the sequence, and by defining a "last frame" (or by cancelling using Ctrl+C) it would know to stop waiting for more files and finish the video file?
I have considered feeding a video stream of sorts as the input, which would be generated using the image files and an external program, but I am unsure about if this would work and a general approach.
ffmpeg
'simage2pipe
, this should work.