[Libav-user] adjusting bitrate with AvCodecContext not functioning
Andrey Utkin
andrey.krieger.utkin at gmail.com
Sun Mar 4 23:54:28 CET 2012
2012/3/3 Louis Mendoza <louismendoza23 at yahoo.com>:
> 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
More information about the Libav-user
mailing list