this is how I rip DVD under linux with mplayer in short:
mplayer dvd://Track -mc 0 -dumpvideo -dumpfile video.m2v
mplayer dvd://Track -mc 0 -dumpaudio -aid 0xID -dumpfile soundtrack.{ac3|dts|mp2|wav}
mkvmerge -o destination.mkv video.m2v soundtrack ...
I never discovert any problems with this config (maybe there where some a/v sync problems but I could not hear). The problem appears with tracks that are in dts format. The a/v then is 200-300ms out of sync. I don't want to correct it "by hand" with mkvmerge. Is there a possibility to get it automatically right?

Greetings from germany!