...ppms... | ffmpeg \
-f image2pipe \
-c ppm \
-r 60 \ # 60 fps
-i - \
-b:v 10M \ # 10 Mbit/s
-s 1440x900 \ # resize to 1440x900
-pix_fmt yuv420p \ # 4:2:0 chroma subsampling. QuickTime requires this, VLC does not.
-movflags +faststart \ # Arrange metadata to help decoders understand the file ASAP
foo.mp4
ffmpeg ... -f image2pipe -c ppm - | ...PPMs...
ffmpeg -start_number 1 -i foo%02d.ppm ...
# foo{01,02,03}.ppm