[Ffmpeg-devel] ratecontrol advice
Luca Zappella
luca.zappella
Sat Aug 13 18:38:29 CEST 2005
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.
Maybe there are other parameters I have to set?
I have tryed to use also qmin and qmax but almost nothing has changed.
If someone could help me I would be glad.
Cheers,
Luca
More information about the ffmpeg-devel
mailing list