I've been trying to make a script to simplify my conversions, and I can't figure out how to rip the AC3 audio from a DIVX to the VOB properly. The AC3 skips (in 5.1) when played in a dvd player.

My script is as follows (asdf.avi is the test file, with AC3/A52 audio):
{
mencoder -oac copy -ovc copy -ofps 29.970 -o tempxa.avi asdf.avi
transcode -y ffmpeg,raw -F mpeg2video --export_prof dvd-ntsc -Z 720x480 -A -N 0x2000 --a52_dolby_off -o tempa -i tempxa.avi
tcmplex -o tempa.vob -i tempa.m2v -p tempa -m d
mkdir ./iso/
dvdauthor -o ./iso/ tempa.vob
dvdauthor -T -o ./iso/
}

The line "dvdauthor -o ./iso/ tempa.vob" gives me the following warning multiple times for different locations, but continues:

}
WARN: Discontinuity in audio channel 0; please remultiplex input.
WARN: Previous sector: 7.189 - 7.221
WARN: Current sector: 7.253 - 7.317
WARN: Audio pts for channel 0 moves backwards; please remultiplex input.
}

I've tried doing the -d while transcoding, but that didn't help. Anyone have any ideas?