[MPlayer-users] Dies on finishing 2nd pass

Mark Williams (MWP) mwp at internode.on.net
Mon Apr 11 09:56:06 CEST 2005


> >>Greettings all,
> >>
> >>Ive been trying to encode some TS/TP video recently but at the end of 
> >>encoding
> >>on the 2nd pass for each i get:
> >>
> >>mencoder: ratecontrol.c:644: ff_rate_estimate_qscale: Assertion 
> >>`picture_number<rcc->num_entries' failed.
> >>at which point it then segfaults
> >>
> >>Im doing:
> >>
> >>mencoder -o video-first.avi -fps 50 -ofPs 25 -sws 9 -oac copy ovc lavc 
> >>-lavcopts \
> >> vcodec=mpeg4:mbd=2:v4mv:trell:aspect=4/3:vbitrate=1500:turbo:vpass=1 \
> >> -vf crop=$CROPXY,filmdint=io=2:1/mmx2=1,scale=$SCALEXY,hqdn3d=2:1:2 in.tp
> >>
> >>mencoder -o video-final.avi -fps 50 -ofPs 25 -sws 9 -oac copy ovc lavc 
> >>-lavcopts \
> >> vcodec=mpeg4:mbd=2:v4mv:trell:aspect=4/3:vbitrate=1500:vpass=2 \
> >> -vf crop=$CROPXY,filmdint=io=2:1/mmx2=1,scale=$SCALEXY,hqdn3d=2:1:2 in.tp
> >>
> >>Any ideas?
> >>
> >>BTW, im using CVS version from yesterday, but ive also tried a CVS 
> >>version from
> >>a few months ago with the same problem.
> >>   
> >>
> >
> >A bit more detail from another encoding i tried:
> >
> >TS_PARSE: COULDN'T SYNC%)  36fps Trem:   0min 979mb  A-V:-0.014 [805:148]]
> >Broken frame at 0xE4BEBE0
> >Pos:8566.4s 428290f (100%)  36fps Trem:   0min 979mb  A-V:-0.080 [805:148]
> >1 duplicate frame(s)!
> >Mencoder: ratecontrol.c:644: ff_rate_estimate_qscale: Assertion 
> >`picture_number<rcc->num_entries' failed.
> 
> "broken frame" should say it all: mencoder found a frame that it can't 
> decode.
> Are you really sure it happens only during the second pass?

Actually it does occour on the first pass, i didnt notice it before.
But what it occours on the first pass, mencoder continues to finish the
encoding, where as on the second pass when the error occours, mencoder seg
faults.

Ok, so its obviously an error in the TP file (seems like HDTVtoMPEG2 puts this
error in every file it creates), but shouldnt mencoder handle it?

Thanks.




More information about the MPlayer-users mailing list