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

Don Moir donmoir at comcast.net
Thu Sep 27 05:19:12 CEST 2012

> 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 

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.

More information about the ffmpeg-devel mailing list