Version 1.1 4th November, 2002
Getting audio in sync with the dxr3 card can difficult. The problem
is that the video decoding can take a different amount of time than
outputting the audio.
To start with, you need to understand how the dxr3 works with mplayer
and xine. For MPEG 1 and 2 format video, the MPEG video data is sent
directly to the dxr3 card and decoded in hardware. For other formats
of video, the video stream is decoded and then re-encoded as MPEG and
sent to the card. This means for different types of video you will
get different delays in processing so the audio might run more or less
ahead of the video.
For this reason you may need to try different methods for different
video codec types and formats.
GENERAL
Here are some things to try to get your audio just right so that it
doesn't seem like you're watching a badly dubbed kung-fu movie.
AVI FILES
Some AVI files have peculiar problems with audio sync which can be
helped with the following options.
Use a non-interleaved AVI parser. Normally, audio and video are
interleaved in the avi file, so you can read the file
sequentially. For some broken avis, however, you need to read the
audio and video stream separately. If you use this option and the
file is badly interleaved, playing directly from a cd might be
impossible, because your drive has to jump around a lot. In these
cases, you have to copy the file to your harddisk first.
In mplayer: mplayer -ni
- Some AVI files have broken headers and this can be fixed.
mplayer -nobps
- The audio can get seriously out of whack and to get it back in sync
may require a more extreme correction than the default. Setting the
maximum correction to something like three seconds works well.
mplayer -mc
- Finally, there are many, especially older avis out there (> 1.5 years)
that have really fucked up a/v sync and even don't play right under
Windows. If you get in contact with such a file, there's little you
can do but look for a better copy.
Maintained by Simon Rumble
Thanks for the input from Michael Hunold.