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

Clément Bœsch ubitux at gmail.com
Sat Jan 7 23:15:01 CET 2012


On Sat, Jan 07, 2012 at 11:11:00PM +0100, Stefano Sabatini wrote:
> On date Saturday 2012-01-07 12:59:18 +0100, Clément Bœsch encoded:
> > On Sat, Jan 07, 2012 at 11:25:29AM +0100, Stefano Sabatini wrote:
> [...]
> > Another way of doing this would be to have -show_versions, and:
> > 
> 
> >   "versions": {
> > 
> >     "project": "N-36558-g4862781",
> >     "copyright": "Copyright (c) 2007-2012 the FFmpeg developers",
> >     "build_date": "Jan  7 2012",
> >     "build_time": "12:51:38",
> 
> uhm, this can't be done, indeed the only constraint is that
> information *must* be printed within a dedicated section. Alternative:
> 
> version: {
>    program: {
>       ...
>    },
>    ...
> 
> > 
> >     "libavformat": {
> >       "micro": ...
> >       "minor": ...
> >       "major": ...
> >     },
> > 
> >     "libav...": {
> >       ...
> >     },
> >   }
> 
> Possibly a good idea, but requires more changes in ffprobe.c (mainly
> in the JSON writer).

That was just a suggestion; if it's too much trouble to implement, I'm
fine with the current patch, push anytime you believe it's decent enough
:)

-- 
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/20120107/908f982c/attachment.asc>


More information about the ffmpeg-devel mailing list