[Libav-user] 2-pass bitrate problem

Richard H Lee ricardohenrylee at gmail.com
Mon Jun 11 23:44:13 CEST 2012


Hi,

I have a problem with running the second pass encoding for mpeg4 video 
using libavcodec.

The program that uses the lib is a non-official branch of mplayer2. It 
works fine for single pass and the first pass of 2 pass encoding. The 
error I get is "requested bitrate is too low", followed by a segfault.

This is a known bug for several years (I think). It basically occurs 
because the 1st pass log file is misread of something. And hence 
all_available_bits < all_const_bits in libavcodec/ratecontrol.c always 
returns true, throwing the error.

I would like to try working on this bug. But first of all, I would like 
to know if anyone else has solved it or made progress on it?


Richard


More information about the Libav-user mailing list