[FFmpeg-devel] [PATCH] ffprobe: add -show_headers_first option

Nicolas George george at nsup.org
Sun Sep 4 20:09:32 EEST 2016


Le nonidi 19 fructidor, an CCXXIV, Stefano Sabatini a écrit :
> This is meant to be used for generating output suitable for the
> ffprobe_default demuxer.
> ---
>  ffprobe.c | 30 ++++++++++++++++++++++++++----
>  1 file changed, 26 insertions(+), 4 deletions(-)

I find the naming a bit clumsy. It says what it says, but what it the next
step? -show_format_after_frames_but_before_streams?

I would like to suggest another avenue, a little more work but not by much:
deprecate all the -show_<section> options, and replace them by a single
-show option that takes the sections name in order:

ffprobe -show packets,streams,format

would be equivalent to the current "ffprobe -show_frames -show_streams
-show_format", but:

ffprobe -show format,streams,packets

would yield the same result as with -show_headers_first.

The syntax could later be updated for various extra features:

ffprobe -show format,streams,packets,rewind,packets+frames=silent=1,streams

I do not know how it interacts with the -show_entries feature, but I must
say I never understood how the -show_entries feature works.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160904/9e1b6546/attachment.sig>


More information about the ffmpeg-devel mailing list