<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hey all, <br></div><div><br></div><div>I am working with <span class="yshortcuts cs4-visible" id="lw_1330738606_0">ffmpeg</span> and libvpx on c ++. I am trying to encode a video source by using <span class="yshortcuts cs4-visible" id="lw_1330738606_1">variable bitrate</span>
 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.<br></div><div><br></div><div>     
 destStreamCodecContext->bit_rate = bitrate <br>       destStreamCodecContext->qcompress = 1;  //tells the encoder to use variable bitrate<br>       destStreamCodecContext->gop_size = 12;  <br><span class="tab">    </span><span class="tab">    destStreamCodecContext->rc_max_rate = bitrate;<br></span></div><div><br></div><div>Any help would be greatly appreciated <br></div><div><br></div><div>Thanks , <br></div>Louis Mendoza</div></body></html>