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

Clément Bœsch ubitux at gmail.com
Tue Sep 11 19:12:18 CEST 2012


On Mon, Sep 10, 2012 at 02:53:22PM +0200, Stefano Sabatini wrote:
[...]
> Just noticed that this can't work with the usual -show_* options,
> since they will need to set show_all_entries to 1, so I'll need to set
> them in the opt_show_* callbacks (which also need to be defined).
> 
> Also we may want to deprecate them in favor or -show_entries.
> 

Or just make equivalents. -show_streams -show_formats would be the same as
calling -show_entries streams,format (or whatever syntax you want).

If both -show_{format,streams,packets,...} and -show_entries are
specified, print an incompatible message.

> As for what regards streams, I wonder if we should somehow support
> stream specifiers, at least for what concerns options which affect a
> particular stream (-show_packet, -show_streams).
> 
> A possible idea:
> -select_streams v:0,a:1
> or
> -select_stream v:0 -select_stream a:0
> 

Not sure that's really necessary. I don't think a thin filtering of data
belongs at ffprobe level. The user is responsible from browsing the
range of results for the data he's interested in. If he is interested in
one or two specific values, -show_entries looks appropriate.

> or alternatively we could extend -show_entries:
> -show_entries frame:v:1=pts
> 
> which should be feasible assuming that sections cannot contain the ":"
> character (but this really belongs to a different change/patch).
> 
> Another possible problem: if "/" is acceptable in a section name, then
> I can't use it like a section/entries separator.
> 

For the syntax I don't know...

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120911/7d9844db/attachment.asc>


More information about the ffmpeg-devel mailing list