[MPlayer-users] Re: mp3 pro for mencoder?

D Richard Felker III dalias at aerifal.cx
Sat Mar 13 01:58:56 CET 2004


On Sat, Mar 13, 2004 at 01:00:40AM +0100, Amadeus wrote:
> > I've made several ogm and mkv files from dvd source with good a/v sync.
> > The only out-of-sync problem I've seen is the well known constant
> > 200-300ms which mencoder has for many dvds.  This is easily corrected
> > though with mkvmerge and ogmmerge using '--sync'.  --sync can
> > apparently even fix drifting sync but I've never had to try this.
> 
> This sounds excellent, if I can turn to Vorbis for audio! =)
> 
> > Please show all the commands you used to make the file.
> 
> Making the video:
> 
> i=1
> for j in /dev/null video.avi; do
>         cat *.VOB | mencoder \
>         -sws 2 \
>         -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:trell:vbitrate=700:vpass=$i \
>         -vop scale=496:288,crop=702:572:10:2 \
>         -aspect 16/9 \
>         -nosound \
>         -o $j -
> i=2
> done
> 
> 
> Making the audio (I wish this step could be optimized using pipes and
> stdin/stout!):
> 
> cat *.VOB > full.mpg
> mplayer full.mpg -aid 128 -ao pcm -aofile audio.wav
> oggenc -q 5 audio.ogg


Never use cat *.VOB ...
It's a stupid windows way of doing things. Always use dvd:// syntax to
encode from dvds. Best is to use the original dvd, but if you INSIST
on using a copy on hd, use -dvd-device /path/to/vobs along with dvd://
rather than the *.vob mess.

Rich




More information about the MPlayer-users mailing list