[Ffmpeg-devel] VFR support

Emiliano Parasassi millallo
Wed Oct 19 12:15:00 CEST 2005

I'm trying to make a Variable FrameRate video mpeg4/mp4 from
my network camera which releases frames from 1 to 10 fps...
Unfortunately, when I play video with MPlayer or VLC the fps is
fixed to 10 and the result output is played fast... :(

These are main steps i made:
fAVCodecContext->time_base = (AVRational){1, 10}
fAVFrame->pts = ...
avpkt.pts = av_rescale_q(...)

The question is:
Which are the main steps to do for having a VFR videoclip in ffmpeg?

Thanks a lot


More information about the ffmpeg-devel mailing list