[Libav-user] How to set bit_rate for MPEG4/2

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Apr 20 17:25:20 CEST 2014

Harald Schlangmann <harry at ...> writes:

> Looks I’m doing something fundamentally wrong here.

Did you test with ffmpeg (the application)?
I am not convinced that single pass encoding can 
generally guarantee a target bitrate.

> Any hint on how to influence result file size for mpeg4?

> The only other fields I initialize for AVCodecContext 
> are width, height, time_base, pix_fmt,  

At least constant quantiser vs. bitrate can (and must) 
be set.

Carl Eugen

More information about the Libav-user mailing list