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

IOhannes M Zmoelnig zmoelnig
Thu Aug 25 17:34:53 CEST 2005

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)

(i hope this will stay valid for some time ;-))

>> 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)

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


More information about the ffmpeg-devel mailing list