[FFmpeg-user] ffprobe only the first frame

mark.himsley@gmail.com mark at mdsh.com
Mon Jun 11 00:28:20 CEST 2012

Nicolas George <nicolas.george at normalesup.org> wrote:

>Le tridi 23 prairial, an CCXX, Mark Himsley a écrit :
>> >Just stop reading and close your pipe from ffprobe when you have the
>> >you need; ffprobe will die of a SIGPIPE as it should.
>> Yep - that works for a pipe: input to ffprobe, but not for a file:
>> So that trick can only work for some types of source file.
>I wrote about your pipe _from_ ffprobe. That works for any type of
>_to_ ffprobe.

If I close the pipe from ffprobe then I will not receive valid xml.

More over, the output from ffprobe will not include the -show_format -show_streams output, as those elements come after the frames element.


More information about the ffmpeg-user mailing list