[Ffmpeg-devel] ratecontrol advice

Rich Felker dalias
Sat Aug 13 19:01:26 CEST 2005


On Sat, Aug 13, 2005 at 06:38:29PM +0200, Luca Zappella wrote:
> On Sat, 2005-08-13 at 11:33 -0300, Dario Andrade wrote:
> > > 
> > > My other settings are set dynamically but tend to be like this:
> > >          gop_size =  60
> > >          bit_rate = 118000
> > >          time_base.num = 1
> > >          time_base.den = 30
> > >          bit_rate_tolerance = 118000/5
> > >          qmin = 3
> > >          qmax = 10
> > >          mb_lmin = FF_QP2LAMBDA * qmin
> > >          mb_lmax = FF_QP2LAMBDA * qmax
> 
> Hi,
> I am facing with the same problems (even if I am using MPEG4 encoder).
> These are the parameters I am using:
> 
> c->width = 640;  
> c->height = 480;
> c->frame_rate = 3;  
> c->frame_rate_base= 1;
> c->gop_size = 6; 
> c->bit_rate = 128*1024; //512*1024  //1024*1024;
> c->bit_rate_tolerance =  c->bit_rate * 20 / 100;
> c->flags |= CODEC_FLAG_AC_PRED; 
> c->flags |= CODEC_FLAG_4MV;
> c->flags |= CODEC_FLAG_PART;
> 
> And the video I obtain is really chopped when motion happens.

WTF do you expect with 3 fps?!? Anyway it looks like you're using a
very very old version of lavc since frame_rate does not exist anymore.

Rich





More information about the ffmpeg-devel mailing list