Hi,

I have written a code for transcoding video from any format to Mpeg 2
transport stream and video codec for encoding is H264. At present I am
trying to optimize encoded video output by tuning video bit rate and
other fields.

In my observation I found that,

if I vary codec bit_rate field to 1000000, the output video size is
450 KB (approx) for 3 secs
and if i set it to 5120000, the output video size is 100 KB (approx) for 3 secs

Why is it so?

The other common settings are
c->width = 192;
c->height = 144;
c->keyint_min = 10;
c->i_quant_factor = 0.71;
c->bit_rate_tolerance = 20000;
c->rc_max_rate = 100000;
c->rc_buffer_size = 8835000;
c->qcompress = 0.6;
c->qmin = 10;
c->qmax = 30;
c->max_qdiff = 4;
c->gop_size = 30;
c->time_base.num = 1;
c->time_base.den = 30;
c->sample_aspect_ratio = av_d2q(1, 255);
c->profile = 30;
c->level = 30;

If I want to have optimum bit_rate which gives minimum file size, How
should I configure encoder? Any suggestion/links will be helpful.

Regards,
Dhaval
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to