[Ffmpeg-devel] More questions(output bitrate, trapping errors)

Martin Boehme boehme
Wed Aug 3 15:21:51 CEST 2005


Hi Ian,

> OK, I'm having trouble setting the video bitrate of video streams of the output
> file. I set the bit_rate field of the stream's codec context but it
> seems to make
> no difference on the actual bit rate of the stream afterwards(it ends up being 
> somewhere in the range of 104000 kb/s), and the bit rate of the file itself is 
> negative(!!). Any help on this issue would be appreciated.

Just a guess... are you setting qmin/qmax to anything? Those can 
override the bitrate that you specify.

> Also, is there a way to trap any errors that libavformat/libavcodec
> might raise?
> If an error occurs but is not handled, it causes my application to
> (understandably)
> segfault.

Not quite sure what you mean here... do you mean that you're calling 
lavc/lavf functions without checking their return values, and you're 
looking for some kind of error callback that will notify you of any 
errors that occur? That doesn't exist... you have to check the return 
values.

HTH

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