[Libav-user] adjusting bitrate with AvCodecContext not functioning

Louis Mendoza louismendoza23 at yahoo.com
Sat Mar 3 02:40:46 CET 2012

Hey all, 

I am working with ffmpeg and libvpx on c ++. I am trying to encode a video source by using variable bitrate control with bit_rate. The video exceeds the bit_rate every time. I am using a blackmagic intensity pro card to capture video from a hdmi camera. Here is how I am setting the ffmpeg parameters using an AvCodeContext * 
called destStreamCodecContext. I have also tried setting a max rate.

      destStreamCodecContext->bit_rate = bitrate 
       destStreamCodecContext->qcompress = 1;  //tells the encoder to use variable bitrate
       destStreamCodecContext->gop_size = 12;  
        destStreamCodecContext->rc_max_rate = bitrate;

Any help would be greatly appreciated 

Thanks , 
Louis Mendoza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120302/c9ef1f3f/attachment.html>

More information about the Libav-user mailing list