summaryrefslogtreecommitdiffstats
path: root/DOCS/xml/en/audio.xml
blob: 5c42a6ca68557c1c3c873d6b25553a0f3f55454f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<chapter id="audio">
<title>Audio output devices</title>
<sect1 id="sync">
<title>Audio/Video synchronization</title>

<para>
Linux sound card drivers have compatibility problems. This is because
<application>MPlayer</application> relies on an in-built feature of
<emphasis>properly</emphasis> coded sound drivers that enable them to
maintain correct audio/video sync. Regrettably, some driver authors
don't take the care to code this feature since it is not needed for
playing MP3s or sound effects.
</para>

<para>
Other media players like <ulink url="http://avifile.sf.net">aviplay</ulink>
or <ulink url="http://xinehq.de">xine</ulink> possibly work
out-of-the-box with these drivers because they use "simple" methods
with internal timing. Measuring showed that their methods are not as
efficient as <application>MPlayer</application>'s.
</para>

<para>
Using <application>MPlayer</application> with a properly written audio
driver will never result in A/V desyncs related to the audio, except
only with very badly created files (check the man page for workarounds).
</para>

<para>
If you happen to have a bad audio driver, try the <option>-autosync</option>
option, it should sort out your problems. See the man page for detailed
information.
</para>
</sect1>

<sect1 id="troubleshooting">
<title>Troubleshooting</title>

<para>Some notes:</para>

<para>
  If you have ALSA version 0.5, then you almost always have to use
  <option>-ao alsa5</option>, since ALSA 0.5 has buggy OSS emulation code,
  and will <emphasis role="bold">crash <application>MPlayer</application></emphasis>
  with a message like this:
  <screen>
DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!<!--
--></screen>
</para>
<para>
  If the sound clicks when playing from CD-ROM, turn on IRQ unmasking as
  described in the <link linkend="drives">CD-ROM</link> section.
</para>
</sect1>

</chapter>