[MPlayer-users] Delay in second audio stream. How cann I correct it?

Thomas Heuving heuving at gmx.de
Sun Feb 17 12:46:37 CET 2013

I want to encode an avi-File to a DVD-compliant mpg and to preserve
both audio channels. Firstly I encoded the video and the second channel
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf\
   -ofps 25  -vf scale=720:576,harddup -lavcopts\
mbd=2:aspect=4/3 -af-adv force=1 -srate 48000 -af
   lavcresample=48000,volnorm -aid 2 -o /home2/tmp/erg.mpg $file

Gives me the usual output, but in addition some 50 "Skipping frame"
at the beginning 18 seconds.

The I tried to add a second audio stream with

ffmpeg -i /home2/tmp/erg.mpg -acodec copy -vcodec copy\
  -target pal-dvd $ergfile -i $file -acodec ac3_fixed -ab 96k\

The second audio in the resulting file has an offset of about 2
seconds. How can I either do a better job by encoding in one command,
or delay the second audio stream by about 2 seconds? For the latter
I tried -itsoffset and -muxdelay on the input stream, but without
any result.
Thomas Heuving

More information about the MPlayer-users mailing list