[Libav-user] how to set max bit rate in c++

hatred adrozdoff at gmail.com
Thu Nov 22 23:52:43 CET 2012


Hi Svetlana,

Try this params:
AVCodecContext::rc_min_rate - minimum bitrate
AVCodecContext::rc_max_rate - maximum bitrate
AVCodecContext::bit_rate - the average bitrate

And see preset files for h264 encoding.

2012/11/23 Svetlana Olonetsky <svetlana.olonetsky at gmail.com>

> Hi Everyone,
>
> I am trying to encode to h264 and getting very big files.
>
> I media info I can see that output file has following settings:
> Bit rate                                 : 13382039
> Bit rate                                 : 13.4 Mbps
> Nominal bit rate                         : 2000000
> Nominal bit rate                         : 2 000 Kbps
>
> How can I set max bit rate in c++ ?
> Which other parameters can influence output size by factor ?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121123/90025efc/attachment.html>


More information about the Libav-user mailing list