mencoder audio off-snyc help
I have been using mencoder from CLI to encode my dvds to .avi files, and practically all the .avi files have about 200ms delay in the audio throughout the whole film. Although it's not too noticeable, it's more of an annoyance.
I am using mplayer-1.0.0.pre3.13 and mencoder-1.0.0.pre3.13 and the commands I have been using (taking into consideration of variables such as one-pass, two-pass, widescreen/fullscreen, cropping, subtiles and so on) are basically:
nice -+19 mencoder -aspect 16:9 dvd://x -oac mp3lame ;lameopts abr:br=128:vol=3 -aid 128 -o x.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=x:vqmin=2:vqmax=2 -vop crop=x:x:x:x,scale -zoom -xy 720
nice -+19 mencoder -aspect 16:9 dvd://x -ovc frameno -o frameno.avi -oac mp3lame -lameopts abr:br=128:vol=3 -aid 128
nice -+ 19 mencoder -aspect 16:9 dvd://x -oac copy -o x.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=x:vqmin=2:vqmax=31 -vop crop=x:x:x:x,scale -zoom -xy 720
I notice that when the dvd is being encoded for both audio and video, every other line, especially for NTSC dvds, will print "1 duplicate frame(s)!", and the output video file is slightly smaller than the audio file.
So, I have RTFM for mplayer/googled and the only thing that I can see that might help, is adding the -ofps switch. But when I do add -ofps, there's no change.
I'm not going for perfect dvd quality; besides, the command that I'm using gives me very satisfactory results in the video image, but what else can I add to get the audio in sync?