[FFmpeg-devel] Nice to have general version / build string

Stefano Sabatini stefasab at gmail.com
Thu Sep 27 10:24:33 CEST 2012


On date Wednesday 2012-09-26 23:19:12 -0400, Don Moir encoded:
> >On 26/09/12 10:24 PM, Don Moir wrote:
> >>I see there is avutil_version, avcodec_version, etc
> >>
> >>I see there is show_banner and useless for GUI app.
> >>
> >>I don't see a way to retreive the general ffmpeg version or build string.
> >>
> >>e.g. 11.1 and N-44123-g5d55830
> >>
> >>Would be good if there was a avutil function for this if there
> >>isn't some way already.
> >>
> >>Don
> >
> >version.h defines FFMPEG_VERSION. Look for example cmdutils.c and
> >ffprobe.c.
> >
> >Regards
> 
> I see that but I think version.h is built with a shell script. When
> I build ffmpeg my
> version.h file contains #define FFMPEG_VERSION "0.11.1.git"
> 
> I also took a look at cmdutils.c before posting. Could be my
> FFMPEG_VERSION string is not being created properly due do a
> directory issue.
> 
> I develop under windows and generally I don't mess around with
> building ffmpeg but I would need to run the version.sh file just to
> get the version.h file.
> 

> So this seems awkward and would be nice if I could just call some
> function easily to get this info and this seems reasonable but not
> sure how much trouble it would be.

version.h is defined in the top dir of the project, and refers to the
whole project, it is not a library specific thing and in general
libraries should not refer to that version. For library specific things
there are the library version numbers.

We could still expose this global version in the library, but I cannot
understand which is your use case.
-- 
FFmpeg = Funny and Frenzy Magic Peaceless Everlasting Gladiator


More information about the ffmpeg-devel mailing list