[MPlayer-users] Error with 2-pass encoding.

Ville Saari 113762 at vs.iki.fi
Sat Feb 26 15:51:10 CET 2005


On Sat, Feb 26, 2005 at 02:10:26PM +0100, Josef Wolf wrote:

> I have several movies (recorded with vdr from Astra sattelite) that play
> fine with mplayer but error out on the _end_ of the _second_ pass when I
> try to encode them with mencoder to divx format.
...
> mencoder: ratecontrol.c:618: ff_rate_estimate_qscale: Assertion `picture_number<rcc->num_entries' failed.

I have sporadically encountered this same problem several times with
various mencoder versions. It looks like mencoder went out of sync with
the passlogfile and exhausted the log before the video ended.

If you had different audio options between the passes, then that is most
likey the cause and easily fixed, but the problem can also happen without
this as it has happened for me.

My workaround was to append some compatible junk at the end of the log
file before running the second pass. You might try something like this:

   head divx2pass.log >>divx2pass.log

This avoids the failure at the end of the encoding, but it doesn't fix
the underlying problem. The quantization for the last few frames will
be nonsense and there might be similar problems in large part of the
video starting from the point where the mis-sync actually happened.

-- 
 Ville




More information about the MPlayer-users mailing list