Progressively write out each image in a sequence?
Posted: 2009-06-16T21:29:37-07:00
I'm trying to do some on-the-fly conversion of images before generating a video from them, using a combination of convert and ffmpeg. The input images are in EXR format, which convert can read but ffmpeg can't. So I'm using the PPM format as an intermediary between the two.
Here's my command-line call:
convert 'input.*.exr' -depth 8 ppm:- | ffmpeg -f image2pipe -vcodec ppm -i - -f mov -vcodec libx264 output.mov
This works great except for one issue: the ffmpeg command does not begin encoding the video until convert has finished writing out *every* image. How can I get convert to progressively write out each image in the sequence rather than holding onto them and writing them out all at once?
Thanks
Here's my command-line call:
convert 'input.*.exr' -depth 8 ppm:- | ffmpeg -f image2pipe -vcodec ppm -i - -f mov -vcodec libx264 output.mov
This works great except for one issue: the ffmpeg command does not begin encoding the video until convert has finished writing out *every* image. How can I get convert to progressively write out each image in the sequence rather than holding onto them and writing them out all at once?
Thanks