[Libav-user] question about AVFormatContext::bit_rate

wm4 nfxjfg at googlemail.com
Fri Mar 7 10:13:50 CET 2014


On Fri, 7 Mar 2014 19:03:00 +1100
Jean-Yves Avenard <jyavenard at gmail.com> wrote:

> Hi
> 
> Trying to understand a misbehaviour of mine in an application I'm involved with.
> 
> I have adaptative streaming code which makes some decision according
> to the field bit_rate in the AVFormatContext structure.
> 
> According to the doc:
> 
> "Total stream bitrate in bit/s, 0 if not available."
> 
> I get very wierd value from there.

As far as I know, this is only a bad guess, and usually inaccurate.
Calculate it yourself, or try to improve it in libavformat/utils.c.


More information about the Libav-user mailing list