5
3
I see lots of examples using FFMpeg to make a video file from a set of images. I can also see how to do the opposite if I want individual files. However, I want the images to be pushed to stdout. This line fails:
ffmpeg -hwaccel auto -i Wildlife.wmv -pix_fmt bgr24 -an -sn -f bmp - > junk.bin
It says "Requested output format 'bmp' is not a suitable output format". However, this line works fine to generate image files:
ffmpeg -hwaccel auto -i Wildlife.wmv -pix_fmt bgr24 -an -sn test%03d.bmp
How can I get images pushed to stdout?
Further discussion of this exact issue here.
– Glenn Slayden – 2019-11-16T08:50:19.863Followup question to your helpful answer... what's the difference between the
image2
andimage2pipe
muxers in ffmpeg? – Glenn Slayden – 2019-11-16T09:36:15.747@GlennSlayden
image2
reads from actual files specified by filename;image2pipe
reads from a pipe, that is, images piped via STDIN. – slhck – 2019-11-16T09:51:01.373Yes, sorry, my question should have been, why are separate binaries needed for that when external piping of stdin and/or stdout should be transparent to any program? – Glenn Slayden – 2019-11-17T02:17:50.217
@GlennSlayden Not sure I understand. You don't need separate binaries – just one
ffmpeg
.image2pipe
is a fairly simple demuxer part of theimage2
code, whereasimage2
needs additional capabilities to deal with filenames. – slhck – 2019-11-17T09:51:58.257