I've got a movie production pipeline which has a screenshots generator that produces a sequence of PPM to STDOUT. I pipe it to `convert` for postprocessing and then to `ffmpeg` to create the final movie without creation of intermediate files.
The command line looks like this:
Code: Select all
./generate-screenshots.py | convert ppm:- -distort resize 50% png:- | ffmpeg -f image2pipe -framerate 60 -i - movie.mp4
Is it possible to make ImageMagick push images to STDOUT immediately after it had been read from STDIN and processed? I see no reason for ImageMagick to accumulate images.