[MPlayer-users] Encoding problems / tips needed

Nico Sabbi nsabbi at tiscali.it
Mon Aug 2 15:37:11 CEST 2004


JiHO wrote:

> thank you for your quick answer.
>
> Loren Merritt wrote:
>
>>> 4/. Do video pass 1. You can use -oac copy to ensure good sync.
>>> mencoder dvd://1 -alang en -oac copy -vf crop=???,hqdn3d=2:1:2 \
>>> -ovc lavc -lavcopts \
>>> vcodec=mpeg4:vbitrate=???:v4mv:mbd=2:naq:trell:cmp=3:subcmp=3:mbcmp=3\
>>> :vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:autoaspect:vpass=1 \
>>> -noskip -skiplimit 0 -noodml -o /dev/null
>>
>>
>>> The problems:
>>> hicup 1/ Movie duration in step 2 has to be read from lsdvd because
>>> mplayer's OSD seems to give a wrong value when playing DVDs.
>>
>>
>> Or from step 1. While the duration listed in the OSD can be 
>> innacurate, if
>> you actually play the movie from start to finish (while extracting 
>> audio),
>> then the last timestamp listed on the commandline is the duration. 
>> (Unless
>> you're encoding something funny like multiple episodes with the 
>> timestamps
>> reset in between.)
>> Or from the size of the WAV, or the length of the Ogg.
>
>
> thanks for the tips. so it is ok if mplayer OSD is wrong. I wondered 
> if it was a failure of my settings.
>
>>> hicup 3/ even using nearly all the "quality providing options" of lavc
>>> (if you think of others, please do not hesitate)
>>
>>
>> vmax_b_frames=1 (usually significant quality gain, but has some
>> side-effects, including increased cpu time to decode (+5% on my 
>> computer),
>> and reduced compatibility with some hardware players)
>> preme=2:predia=-4 (helps almost as much as 'dia', and is much faster)
>> and several other options with smaller gains for larger speed penalties.
>
>
> thanks for all this. I will try. I'm right now trying XviD and the 
> result seems better than lavc but it's wayyyy longer to encode (at the 
> moment, mencoder is planning 4114 minutes for a 2h45 movie....). so 
> maybe with these options I can achieve XviD quality faster.


I used to think that xvid produced better results in this regard, but it 
doesn't (especially if you watch on a TV).
I never even saw a visible difference between vhq=0/1/2, so you may save 
all that time.





More information about the MPlayer-users mailing list