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

Stefano Sabatini stefasab at gmail.com
Sun Jan 8 16:22:51 CET 2012


On date Sunday 2012-01-08 13:44:12 +0100, Clément Bœsch encoded:
> On Sun, Jan 08, 2012 at 11:32:41AM +0100, Stefano Sabatini wrote:
[...]
> > Now it is:
> > 
> > {
> >     "versions": {
> >         "program_version": {
> >             "version": "N-36604-g029c58b",
> >             "copyright": "Copyright (c) 2007-2012 the FFmpeg developers",
> >             "build_date": "Jan  8 2012",
> >             "build_time": "11:26:39",
> >             "compiler_type": "gcc",
> >             "compiler_version": "4.6.1",
> >             "configuration": ...
> >         },
> >         "library_versions": [
> >             {
> >                 "name": "libavutil",
> >                 "major": 51,
> >                 "minor": 34,
> >                 "micro": 100,
> >                 "version": 3351140
> >             },
> >             {
> >                 "name": "libavcodec",
> >                 "major": 53,
> >                 "minor": 54,
> >                 "micro": 100,
> >                 "version": 3487332
> >             },
> >             ...
> >         ]
> >     }
> 

> I forgot to mention that direct access can be a bit painful in this case:
> you have to loop over the different libraries if you are looking for one
> in particular (or sort them in a particular way).

Forget previous patch, this one is much simpler, output is:

{
    "program_version": {
        "version": "N-36604-gf740540",
        "copyright": "Copyright (c) 2007-2012 the FFmpeg developers",
        "build_date": "Jan  8 2012",
        "build_time": "16:12:59",
        "compiler_type": "gcc",
        "compiler_version": "4.6.1",
        "configuration": ...
    },
    "library_versions": [
        {
            "name": "libavutil",
            "major": 51,
            "minor": 34,
            "micro": 100,
            "version": 3351140
        },
        ...
    ]
}
-- 
FFmpeg = Funny and Fancy Mean Puritan Eretic Guru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-ffprobe-add-show_program_version-and-show_library_ve.patch
Type: text/x-diff
Size: 10293 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120108/f0a20a48/attachment.bin>


More information about the ffmpeg-devel mailing list