[MPlayer-users] 2nd pass failed to converge (and crashes)

D Richard Felker III dalias at aerifal.cx
Wed Feb 25 19:30:34 CET 2004


On Wed, Feb 25, 2004 at 06:23:49PM +0100, Mario Valle wrote:
> I'm encoding with mencoder 1pre3 an MPEG4 movie starting from JPEG images.
> With a particular set of at least 14 images, the 2nd pass crashes
> after saying:
> [mpeg4 @ 0x854d0e0]Error: 2pass curve failed to converge
> Could not open codec.
> FATAL: Cannot initialize video driver.
> Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
>  Pos:   0.0s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
> 1 duplicate frame(s)!
> ...
> one for each frame
> 
> the command is:
> 
> opt="vbitrate=1280000:mbd=2:keyint=132"
> mencoder -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:$opt -mf 
> type=jpg:w=512:h=512:fps=25 -nosound -o /dev/null mf://*.jpg
> mencoder -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:$opt -mf 
> type=jpg:w=512:h=512:fps=25 -nosound -o output.avi mf://*.jpg
> 
> 1) What does it means? Scene too complex? Too much changes?
> 2) Except to change to one pass encoding, is there anything that I should 
> do?
> 3) Isn't better to exit immediately after detecting the convergence 
> failure? Continuing is
>    pointless.
> 4) Should I upload the images and encoding script for further analysis?

You should probably upload, but my guess is that 14 frames is WAAAAY
too small for 2pass to work properly.

Rich




More information about the MPlayer-users mailing list