[MPlayer-users] Sync Problems dumping DVD audio

Sebastian sinnloseadresse at yahoo.de
Tue Dec 28 16:52:31 CET 2010


Hi, 

I use mplayer/mencoder to make my avi's from my dvds. 

Here is what my script basically does: (I'll delete all the blah blah)

#Extract audio streams
mplayer -dvd-device ""$BASE_FOLDER""$DVD_FOLDER"" dvd://"$CHAPTER" -aid "$AUD1_1" -dumpaudio -dumpfile 1st.ac3
.
.
mplayer -dvd-device ""$BASE_FOLDER""$DVD_FOLDER"" dvd://"$CHAPTER" -dumpvideo -dumpfile vid.m2v

then I use ffmpeg for the audio and mencoder for the video part and avimerge the audio/video


If the dvd contains more than one audio source (germany and english), the script creates a multi audio avi.


This works on 98% of my dvds. 

Now sometimes the audiodumps have different sizes, and the resulting avi will have a out of sync on at least one channel. (playback of this dvd folder is fine!) 
On some dvds I get away by using:

mplayer -dvd-device ""$BASE_FOLDER""$DVD_FOLDER"" dvd://"$CHAPTER" -aid "$AUD1_1" -vo null -cache 8192 -ao pcm:waveheader

for ripping the audio.

But there are still some that dont work. I tried -mc 1, -mc 0 -forceidx -noskip(mencoder) and nobps 

Then I had another search on the web and I found

mencoder -mc 1 -noskip -forceidx -dvd-device ""$BASE_FOLDER""$DVD_FOLDER"" dvd://"$CHAPTER" -aid "$AUD1_1" -ovc copy -oac lavc -lavcopts acodec=ac3:abitrate=192 -af pan=2:1.0:1.0:1.0:1.0,volnorm -of mpeg -o temp.mpg

Now the strange thing: If I let this run for both languages into seperate temp.mpg's, the resulting temp.mpg's will be absolutely synced. But both have different sizes again, and I cannot rip them.

do the mplayer masters have any more idea i can try?




More information about the MPlayer-users mailing list