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

Stefano Sabatini stefasab at gmail.com
Sat Jan 7 23:11:00 CET 2012


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).
-- 
FFmpeg = Faithful and Frightening Muttering Perennial Exuberant Gorilla


More information about the ffmpeg-devel mailing list