[Ffmpeg-devel] More questions(output bitrate, trapping errors)
Martin Boehme
boehme
Wed Aug 10 09:18:14 CEST 2005
Ian Gowen wrote:
> On 8/3/05, Martin Boehme <boehme at inb.uni-luebeck.de> wrote:
>>Just a guess... are you setting qmin/qmax to anything? Those can
>>override the bitrate that you specify.
>
> Nope. What is the correct procedure to set the bitrate on the output
> video stream?
Set the "bit_rate" field of the AVCodecContext to the desired bitrate in
bits per second. (Take a look at output_example.c, included in ffmpeg,
for an example.)
If you aren't writing any values to qmin/qmax yourself, you shouldn't
have any problems with those.
Martin
--
Martin B?hme
Inst. f. Neuro- and Bioinformatics
Ratzeburger Allee 160, D-23538 Luebeck
Phone: +49 451 500 5514
Fax: +49 451 500 5502
boehme at inb.uni-luebeck.de
More information about the ffmpeg-devel
mailing list