2012/3/3 Louis Mendoza <[email protected]>: > 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;
This piece looks fine. Please publish minimized but compilable (preferably with gcc) application source code that reproduces your problem, source media file you test it with, and info on how much exactly resulting bitrate differs from desired one. -- Andrey Utkin _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
