[Ffmpeg-devel] Re: getting the frame-rate

Michel Bardiaux mbardiaux
Thu Aug 25 18:58:06 CEST 2005


IOhannes M Zmoelnig wrote:
> Michel Bardiaux wrote:
> 
>> IOhannes M Zmoelnig wrote:
>>
>>> what is the correct way to do that ?
>>
>>
>>
>> See libavcodec/utils.c near line 787: 1/av_q2d(enc->time_base)
> 
> 
> thanks.
> (i hope this will stay valid for some time ;-))

Dont hold your breath.

> 
>>> i found the "frame_rate" field in AVCodecContext, but it seems to be 
>>> no longer in use.
>>
>>
>>
>> No such field anymore, which version are you using?
> 
> 
> the FFMPEG_VERSION_INT is 0x000409 (in all installations i have, some of 
> them missing them field and some not)
> 
> however:
> FFMPEG_VERSION="0.4.9-pre1" LIBAVCODEC_BUILD=4718 (has frame_frate)
> FFMPEG_VERSION="cvs"        LIBAVCODEC_BUILD=4753 (has frame_rate)
> FFMPEG_VERSION="0.4.9-pre1" LIBAVCODEC_BUILD=4756 (has NO frame_rate)
> 
> si it seems that the API changed somewhere between build4753and build4756
> 

Well the build number for current cvs is 3211266. Yes, the logic for the 
sequence of  build numbers has itself changed. Better upgrade. If you 
work on oldish sources you're on your own.

> 
> 
> 
> mfg.a.sdr
> IOhannes


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/





More information about the ffmpeg-devel mailing list