annotate DOCS/xml/en/audio.xml @ 10448:091fc3a26c00

Small correction and port to XML.
author diego
date Sun, 20 Jul 2003 14:50:31 +0000
parents 7a08f6b5ce1b
children 49b1a67e7381
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <?xml version="1.0" encoding="iso-8859-1"?>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 <sect2 id="audio-dev">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <title>Audio output devices</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 <sect3 id="sync">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 <title>Audio/Video synchronisation</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 <application>MPlayer</application>'s audio interface is called
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 <emphasis>libao2</emphasis>. It currently contains these drivers:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 <tgroup cols="2">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 <row><entry>Driver</entry><entry>Comment</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 <row><entry>oss</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 OSS (ioctl) driver (supports hardware AC3 passthrough)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 <row><entry>sdl</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 SDL driver (supports sound daemons like <emphasis role="bold">ESD</emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 and <emphasis role="bold">ARTS</emphasis>)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 <row><entry>nas</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 NAS (Network Audio System) driver
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 <row><entry>alsa5</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 native ALSA 0.5 driver
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 <row><entry>alsa9</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 native ALSA 0.9 driver (supports hardware AC3 passthrough)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 <row><entry>sun</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35 SUN audio driver (<filename>/dev/audio</filename>) for BSD and Solaris8 users
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 </entry></row>
10178
nicolas
parents: 10144
diff changeset
37 <row><entry>macosx</entry><entry>
nicolas
parents: 10144
diff changeset
38 native MacOSX driver
nicolas
parents: 10144
diff changeset
39 </entry></row>
nicolas
parents: 10144
diff changeset
40 <row><entry>win32</entry><entry>
nicolas
parents: 10144
diff changeset
41 native Win32 driver
nicolas
parents: 10144
diff changeset
42 </entry></row>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 <row><entry>arts</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 native ARTS driver (mostly for KDE users)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 <row><entry>esd</entry><entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 native ESD driver (mostly for GNOME users)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 </entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 Linux sound card drivers have compatibility problems. This is because
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55 <application>MPlayer</application> relies on an in-built feature of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 <emphasis>properly</emphasis> coded sound drivers that enable them to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 maintain correct audio/video sync. Regrettably, some driver authors
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 don't take the care to code this feature since it is not needed for
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 playing MP3s or sound effects.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 Other media players like <ulink url="http://avifile.sourceforge.net">aviplay</ulink>
10144
6b2c6ced772a no capital X in xine's name
nicolas
parents: 10111
diff changeset
64 or <ulink url="http://xine.sourceforge.net">xine</ulink> possibly work
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 out-of-the-box with these drivers because they use "simple" methods
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 with internal timing. Measuring showed that their methods are not as
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 efficient as <application>MPlayer</application>'s.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 Using <application>MPlayer</application> with a properly written audio
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 driver will never result in A/V desyncs related to the audio, except
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 only with very badly created files (check the man page for workarounds).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 If you happen to have a bad audio driver, try the <option>-autosync</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 option, it should sort out your problems. See the man page for detailed
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 information.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 <itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 <title>Some notes:</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 If you have an OSS driver, first try <option>-ao oss</option> (this is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 the default). If you experience glitches, halts or anything out of the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 ordinary, try <option>-ao sdl</option> (NOTE: you need to have SDL libraries
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 and header files installed). The SDL audio driver helps in a lot of cases
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 and also supports ESD (GNOME) and ARTS (KDE).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 If you have ALSA version 0.5, then you almost always have to use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 <option>-ao alsa5</option>, since ALSA 0.5 has buggy OSS emulation code,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 and will <emphasis role="bold">crash <application>MPlayer</application></emphasis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 with a message like this:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
99 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 On Solaris, use the SUN audio driver with the <option>-ao sun</option> option,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 otherwise neither video nor audio will work.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 If the sound clicks when playing from CD-ROM, turn on IRQ unmasking, e.g.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 <command>hdparm -u1 /dev/cdrom</command> (<command>man hdparm</command>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107 This is generally beneficial and described in more detail in the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 <link linkend="drives">CD-ROM section</link>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110 </itemizedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 <sect3 id="experiences">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <title>Soundcard experiences, recommendations</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116 On Linux, a 2.4.x kernel is highly recommended. Kernel 2.2 is not tested.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 Linux sound drivers are primarily provided by the free version of OSS.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121 These drivers have been superceded by <ulink url="http://www.alsa-project.org">ALSA</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 (Advanced Linux Sound Architecture) in the 2.5 development series. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 your distribution does not already use ALSA you may wish to try their
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 drivers if you experience sound problems. ALSA drivers are generally
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125 superior to OSS in compatibility, performance and features. But some
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 sound cards are only supported by the commercial OSS drivers from
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 <ulink url="http://www.opensound.com/">4Front Technologies</ulink>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128 They also support several non-Linux systems.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 <informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 <tgroup cols="8">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 <colspec colname="c1"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 <colspec colname="c2"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 <colspec colname="c3"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 <colspec colname="c4"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 <colspec colname="c5"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 <colspec colname="c6"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 <colspec colname="c7"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 <colspec colname="c8"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141 <spanspec spanname="driver" namest="c2" nameend="c5"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 <spanspec spanname="ossfree" namest="c2" nameend="c2"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 <spanspec spanname="alsa" namest="c3" nameend="c3"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 <spanspec spanname="osspro" namest="c4" nameend="c4"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 <spanspec spanname="others" namest="c5" nameend="c5"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148 <entry morerows="2" valign="middle">SOUND CARD</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 <entry spanname="driver">DRIVER</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 <entry morerows="2" valign="middle">Max kHz</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151 <entry morerows="2" valign="middle">Max Channels</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 <entry morerows="2" valign="middle">Max Opens
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 <footnote id="maxopens">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 <para>the number of applications that are able to use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 the device <emphasis>at the same time</emphasis>.</para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 </footnote>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157 </entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 <entry spanname="ossfree">OSS/Free</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 <entry spanname="alsa">ALSA</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 <entry spanname="osspro">OSS/Pro</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164 <entry spanname="others">other</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <entry>VIA onboard (686/A/B, 8233, 8235)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 <entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 <ulink url="http://sourceforge.net/project/showfiles.php?group_id=3242&amp;release_id=59602">via82cxxx_audio</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 </entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 <entry>snd-via82xx</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 <entry>4-48 kHz or 48 kHz only, depending on the chipset</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 <entry>Aureal Vortex 2</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 <entry>none</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 <entry>none</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 <entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <ulink url="http://aureal.sourceforge.net">Linux Aureal Drivers</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 <ulink url="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">buffer size increased to 32k</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 </entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 <entry>4.1</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 <entry>5+</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 <entry>SB Live!</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198 <entry>Analog OK, SP/DIF not working</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <entry>Both OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 <entry>Both OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 <entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 <ulink url="http://opensource.creative.com">Creative's OSS driver (SP/DIF support)</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
203 </entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 <entry>192</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 <entry>4.0/5.1</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206 <entry>32</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 <entry>SB 128 PCI (es1371)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 <entry>?</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <entry>stereo</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 <entry>2</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 <entry>SB AWE 64</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 <entry>max 44kHz</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 <entry>48kHz sounds bad</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
230
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
231 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
232 <entry>GUS PnP</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
233 <entry>none</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
234 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
235 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
236 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
237 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
238 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
239 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
240 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
241
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
242 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 <entry>Gravis UltraSound ACE</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
253 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254 <entry>Gravis UltraSound MAX</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 <entry>OK (?)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
260 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
261 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 <entry>ESS 688</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
267 <entry>OK (?)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
268 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
269 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
270 <entry>48</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
271 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
272 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
273 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
274
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 <entry>C-Media cards (which ones?)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 <entry>not OK (hissing) (?)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 <entry>?</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 <entry>Yamaha cards (*ymf*)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 <entry>not OK (?) (maybe <option>-ao sdl</option>)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 <entry>OK only with ALSA 0.5 with OSS emulation
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 <emphasis role="bold">AND</emphasis> <option>-ao sdl</option> (!) (?)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
292 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
293 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 <entry>Cards with envy24 chips (like Terratec EWS88MT)</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
300 <entry>?</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
301 <entry>?</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 <entry>?</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
305 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
306 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
307 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
308
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
309 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 <entry>PC Speaker or DAC</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311 <entry>OK</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 <entry>none</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
313 <entry></entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
314 <entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
315 <ulink url="http://www.geocities.com/stssppnn/pcsp.html">Linux PC speaker OSS driver</ulink>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
316 </entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
317 <entry>The driver emulates 44.1, maybe more.</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
318 <entry>mono</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <entry>1</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 Feedback to this document is welcome. Please tell us how
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 <application>MPlayer</application> and your sound card(s) worked together.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 <sect3 id="af">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 <title>Audio filters</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 The old audio plugins have been superseded by a new audio filter layer. Audio
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336 filters are used for changing the properties of the audio data before the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 sound reaches the sound card. The activation and deactivation of the filters
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 is normally automated but can be overridden. The filters are activated when
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 the properties of the audio data differ from those required by the sound card
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 and deactivated if unnecessary. The <option>-af filter1,filter2,...</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 option is used to override the automatic activation of filters or to insert
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342 filters that are not automatically inserted. The filters will be executed as
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 they appear in the comma separated list.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
347 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 <screen>mplayer -af resample,pan movie.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349 would run the sound through the resampling filter followed by the pan filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 Observe that the list must not contain any spaces, else it will fail.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
351 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 The filters often have options that change their behavior. These options
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
355 are explained in detail in the sections below. A filter will execute using
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356 default settings if its options are omitted. Here is an example of how to use
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357 filters in combination with filter specific options:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
358 <screen>mplayer -af resample=11025,pan=1:0.5:0.5 -channels 1 -srate 11025 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359 would set the output frequency of the resample filter to 11025Hz and downmix
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 the audio to 1 channel using the pan filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
362
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
364 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
365 The overall execution of the filter layer is controlled using the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
366 <option>-af-adv</option> option. This option has two suboptions:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
367 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
368
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
369 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370 <option>force</option> is a bit field that controls how the filters
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 are inserted and what speed/accuracy optimizations they use:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
374 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
375 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
376 <term><option>0</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
377 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378 Use automatic insertion of filters and optimize according to CPU speed.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
383 <term><option>1</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
384 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 Use automatic insertion of filters and optimize for the highest speed.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386 <emphasis>Warning:</emphasis> Some features in the audio filters may
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 silently fail, and the sound quality may drop.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
388 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
389 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
390
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
391 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 <term><option>2</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394 Use automatic insertion of filters and optimize for quality.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
396 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
398 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 <term><option>3</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
401 Use no automatic insertion of filters and no optimization.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
402 <emphasis>Warning:</emphasis> It may be possible to crash MPlayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
403 using this setting.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
404 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
405 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
406
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
407 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
408 <term><option>4</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
409 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
410 Use automatic insertion of filters according to 0 above,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
411 but use floating point processing when possible.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
412 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
413 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
414
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
415 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
416 <term><option>5</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
417 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
418 Use automatic insertion of filters according to 1 above,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
419 but use floating point processing when possible.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
420 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
421 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
422
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
423 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
424 <term><option>6</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
425 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
426 Use automatic insertion of filters according to 2 above,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
427 but use floating point processing when possible.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
428 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
429 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
430
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
431 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
432 <term><option>7</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
433 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
434 Use no automatic insertion of filters according to 3 above,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
435 and use floating point processing when possible.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
436 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
437 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
438 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
439
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
440 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
441 <option>list</option> is an alias for the -af option.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
442 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
443
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
444 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
445 The filter layer is also affected by the following generic options:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
446 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
447
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
448 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
449 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
450 <term><option>-v</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
451 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
452 Increases the verbosity level and makes most filters print out extra
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
453 status messages.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
454 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
455 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
456
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
457 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
458 <term><option>-channels</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
459 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
460 This option sets the number of output channels you would like your
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
461 sound card to use. It also affects the number of channels that are
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
462 being decoded from the media. If the media contains less channels
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
463 than requested the channels filter (see below) will automatically
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
464 be inserted. The routing will be the default routing for the channels
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
465 filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
466 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
467 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
468
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
469 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
470 <term><option>-srate</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
471 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
472 This option selects the sample rate you would like your sound card
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
473 to use (of course the cards have limits on this). If the sample frequency
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
474 of your sound card is different from that of the current media, the resample
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
475 filter (see below) will be inserted into the audio filter layer to compensate
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
476 for the difference.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
477 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
478 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
479 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
480 <term><option>-format</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
481 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
482 This option sets the sample format between the audio filter layer and the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
483 sound card. If the requested sample format of your sound card is different
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
484 from that of the current media, a format filter (see below) will be inserted
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
485 to rectify the difference.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
486 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
487 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
488 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
489
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
490 <sect4 id="af_resample">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
491 <title>Up/Downsampling</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
492
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
493 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
494 MPlayer fully supports sound up/down-sampling through the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
495 <systemitem>resample</systemitem> filter. It can be used if you
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
496 have a fixed frequency sound card or if you are stuck with an old sound card
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
497 that is only capable of max 44.1kHz. This filter is automatically enabled if
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
498 it is necessary, but it can also be explicitly enabled on the command line. It
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
499 has three options:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
500 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
501
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
502 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
503 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
504 <term><option>srate &lt;8000-192000&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
505 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
506 is an integer used for setting the output sample
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
507 frequency in Hz. The valid range for this parameter is 8kHz to 192kHz. If
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
508 the input and output sample frequency are the same or if this parameter is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
509 omitted the filter is automatically unloaded. A high sample frequency
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
510 normally improves the audio quality, especially when used in combination
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
511 with other filters.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
512 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
513 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
514
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
515 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
516 <term><option>sloppy</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
517 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
518 is an optional binary parameter that allows the output frequency to differ
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
519 slightly from the frequency given by <option>srate</option>. This option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
520 can be used if the startup of the playback is extremely slow. It is enabled
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
521 by default.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
522 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
523 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
524
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
525 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
526 <term><option>type &lt;0-2&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
527 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
528 is an optional integer between <literal>0</literal> and <literal>2</literal> that
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
529 selects which resampling method to use. Here <literal>0</literal> represents
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
530 linear interpolation as resampling method, <literal>1</literal> represents
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
531 resampling using a poly-phase filter-bank and integer processing and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
532 <literal>2</literal> represents resampling using a poly-phase filter-bank and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
533 floating point processing. Linear interpolation is extremely fast, but
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
534 suffers from poor sound quality especially when used for up-sampling. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
535 best quality is given by <literal>2</literal> but this method also suffers from
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
536 the highest CPU load.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
537 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
538 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
539 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
540
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
541 <para>Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
542 <screen>mplayer -af resample=44100:0:0</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
543 would set the output frequency of the resample filter to 44100Hz using exact output
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
544 frequency scaling and linear interpolation.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
545 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
546 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
547
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
548 <sect4 id="af_channels">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
549 <title>Changing the number of channels</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
550 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
551 The <option>channels</option> filter can be used for adding and removing
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
552 channels, it can also be used for routing or copying channels. It is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
553 automatically enabled when the output from the audio filter layer differs from
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
554 the input layer or when it is requested by another filter. This filter unloads
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
555 itself if not needed. The number of options is dynamic:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
556 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
557
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
558 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
559 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
560 <term><option>nch &lt;1-6&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
561 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
562 is an integer between <literal>1</literal> and <literal>6</literal> that is used
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
563 for setting the number of output channels. This option is required, leaving it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
564 empty results in a runtime error.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
565 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
566 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
567
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
568 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
569 <term><option>nr &lt;1-6&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
570 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
571 is an integer between <literal>1</literal> and <literal>6</literal> that is used
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
572 for specifying the number of routes. This parameter is optional. If it is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
573 omitted the default routing is used.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
574 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
575 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
576
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
577 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
578 <term><option>from1:to1:from2:to2:from3:to3...</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
579 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
580 are pairs of numbers between <literal>0</literal> and <literal>5</literal>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
581 that define where each channel should be routed.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
582 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
583 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
584 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
585
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
586 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
587 If only <option>nch</option> is given the default routing is used, it works
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
588 as follows: If the number of output channels is bigger than the number of input
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
589 channels empty channels are inserted (except mixing from mono to stereo, then
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
590 the mono channel is repeated in both of the output channels). If the number of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
591 output channels is smaller than the number of input channels the exceeding
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
592 channels are truncated.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
593 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
594
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
595 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
596 Example 1:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
597 <screen>mplayer -af channels=4:4:0:1:1:0:2:2:3:3 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
598 would change the number of channels to 4 and set up 4 routes that swap
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
599 channel 0 and channel 1 and leave channel 2 and 3 intact. Observe that
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
600 if media containing two channels was played back, channels 2 and 3 would
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
601 contain silence but 0 and 1 would still be swapped.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
602 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
603
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
604 <para>
10111
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
605 Example 2:
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
606 <screen>mplayer -af channels=6:4:0:0:0:1:0:2:0:3 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
607 would change the number of channels to 6 and set up 4 routes that copy
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
608 channel 0 to channels 0 to 3. Channel 4 and 5 will contain silence.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
609 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
610 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
611
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
612 <sect4 id="af_format">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
613 <title>Sample format converter</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
614 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
615 The <option>format</option> filter converts between different sample formats. It
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
616 is automatically enabled when needed by the sound card or another filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
617 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
618
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
619 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
620 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
621 <term><option>bps &lt;number&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
622 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
623 can be <literal>1</literal>, <literal>2</literal> or <literal>4</literal> and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
624 denotes the number of bytes per sample. This option is required, leaving it empty
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
625 results in a runtime error.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
626 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
627 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
628
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
629 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
630 <term><option>f &lt;format&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
631 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
632 is a text string describing the sample format. The string is a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
633 concatenated mix of: <option>alaw</option>, <option>mulaw</option> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
634 <option>imaadpcm</option>, <option>float</option> or <option>int</option>,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
635 <option>unsigned</option> or <option>signed</option>, <option>le</option> or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
636 <option>be</option> (little or big endian). This option is required,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
637 leaving it empty results in a runtime error.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
638 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
639 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
640 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
641
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
642 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
643 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
644 <screen>mplayer -af format=4:float media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
645 would set the output format to 4 bytes per sample floating point data.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
646 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
647 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
648
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
649 <sect4 id="af_delay">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
650 <title>Delay</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
651 <para>
10111
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
652 The <option>delay</option> filter delays the sound to the loudspeakers such that
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
653 the sound from the different channels arrives at the listening position
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
654 simultaneously.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
655 It is only useful if you have more than 2 loudspeakers. This filter has a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
656 variable number of parameters:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
657 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
658
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
659 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
660 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
661 <term><option>d1:d2:d3...</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
662 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
663 are floating point numbers representing the delays in ms that should be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
664 imposed on the different channels. The minimum delay is 0ms and the maximum
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
665 is 1000ms.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
666 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
667 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
668 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
669
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
670 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
671 To calculate the required delay for the different channels do as follows:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
672 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
673
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
674 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
675 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
676 Measure the distance to the loudspeakers in meters in relation to your
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
677 listening position, giving you the distances s1 to s5 (for a 5.1 system).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
678 There is no point in compensating for the sub-woofer (you will not hear the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
679 difference anyway).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
680 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
681 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
682 Subtract the distances s1 to s5 from the maximum distance i.e.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
683 s[i] = max(s) - s[i]; i = 1...5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
684 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
685 <listitem><para>
10111
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
686 Calculated the required delays in ms as
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
687 d[i] = 1000*s[i]/342; i = 1...5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
688 s[i] = max(s) - s[i]; i = 1...5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
689 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
690 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
691
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
692 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
693 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
694 <screen>mplayer -af delay=10.5:10.5:0:0:7:0 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
695 would delay front left and right by 10.5ms, the two rear channels and the sub
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
696 by 0ms and the center channel by 7ms.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
697 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
698
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
699 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
700
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
701 <sect4 id="af_volume">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
702 <title>Software volume control</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
703 <para>Software volume control is implemented by the <option>volume</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
704 audio filter. Use this filter with caution since it can reduce the signal to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
705 noise ratio of the sound. In most cases it is best to set the level for the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
706 PCM sound to max, leave this filter out and control the output level to your
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
707 speakers with the master volume control of the mixer. In case your sound card
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
708 has a digital PCM mixer instead of an analog one, and you hear distortion,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
709 use the MASTER mixer instead. If there is an external amplifier connected to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
710 the computer (this is almost always the case), the noise level can be minimized
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
711 by adjusting the master level and the volume knob on the amplifier until the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
712 hissing noise in the background is gone. This filter has two options:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
713 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
714
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
715 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
716 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
717 <term><option>v &lt;-200 - +60&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
718 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
719 is a floating point number between <literal>-200</literal> and <literal>+60</literal>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
720 which represents the volume level in dB. The default level is 0dB.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
721 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
722 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
723
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
724 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
725 <term><option>c</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
726 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
727 is a binary control that turns soft clipping on and off. Soft-clipping can
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
728 make the sound more smooth if very high volume levels are used. Enable this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
729 option if the dynamic range of the loudspeakers is very low. Be aware that
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
730 this feature creates distortion and should be considered a last resort.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
731 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
732 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
733 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
734
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
735 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
736 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
737 <screen>mplayer -af volume=10.1:0 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
738 would amplify the sound by 10.1dB and hard-clip if the sound level is too high.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
739 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
740
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
741 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
742 This filter has a second feature: It measures the overall maximum sound level
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
743 and prints out that level when MPlayer exits. This volume estimate can be used
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
744 for setting the sound level in MEncoder such that the maximum dynamic range is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
745 utilized.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
746 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
747 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
748
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
749 <sect4 id="af_equalizer">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
750 <title>Equalizer</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
751 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
752 The <option>equalizer</option> filter represents a 10 octave band graphic
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
753 equalizer, implemented using 10 IIR band pass filters. This means that
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
754 it works regardless of what type of audio is being played back. The center
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
755 frequencies for the 10 bands are:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
756 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
757
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
758 <informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
759 <tgroup cols="2">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
760 <thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
761 <row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
762 <entry>Band No.</entry><entry>Center frequency</entry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
763 </row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
764 </thead>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
765 <tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
766 <row><entry>0</entry><entry>31.25 Hz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
767 <row><entry>1</entry><entry>62.50 Hz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
768 <row><entry>2</entry><entry>125.0 Hz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
769 <row><entry>3</entry><entry>250.0 Hz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
770 <row><entry>4</entry><entry>500.0 Hz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
771 <row><entry>5</entry><entry>1.000 kHz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
772 <row><entry>6</entry><entry>2.000 kHz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
773 <row><entry>7</entry><entry>4.000 kHz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
774 <row><entry>8</entry><entry>8.000 kHz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
775 <row><entry>9</entry><entry>16.00 kHz</entry></row>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
776 </tbody>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
777 </tgroup>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
778 </informaltable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
779
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
780 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
781 If the sample rate of the sound being played back is lower than the center
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
782 frequency for a frequency band, then that band will be disabled. A known
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
783 bug with this filter is that the characteristics for the uppermost band
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
784 are not completely symmetric if the sample rate is close to the center
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
785 frequency of that band. This problem can be worked around by up-sampling
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
786 the sound using the resample filter before it reaches this filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
787 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
788
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
789 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
790 This filter has 10 parameters:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
791 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
792
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
793 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
794 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
795 <term><option>g1:g2:g3...g10</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
796 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
797 are floating point numbers between <literal>-12</literal> and <literal>+12</literal>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
798 representing the gain in dB for each frequency band.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
799 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
800 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
801 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
802
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
803 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
804 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
805 <screen>mplayer -af equalizer=11:11:10:5:0:-12:0:5:12:12 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
806 would amplify the sound in the upper and lower frequency region while
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
807 canceling it almost completely around 1kHz.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
808 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
809 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
810
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
811 <sect4 id="af_panning">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
812 <title>Panning filter</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
813 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
814 Use the <option>pan</option> filter to mix channels arbitrarily. It is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
815 basically a combination of the volume control and the channels filter.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
816 There are two major uses for this filter:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
817 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
818
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
819 <orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
820 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
821 Down-mixing many channels to only a few, stereo to mono for example.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
822 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
823 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
824 Varying the &quot;width&quot; of the center speaker in a surround sound system.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
825 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
826 </orderedlist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
827
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
828 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
829 This filter is hard to use, and will require some tinkering before the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
830 desired result is obtained. The number of options for this filter
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
831 depends on the number of output channels:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
832 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
833
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
834 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
835 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
836 <term><option>nch &lt;1-6&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
837 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
838 is an integer between <literal>1</literal> and <literal>6</literal> and is used
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
839 for setting the number of output channels. This option is required, leaving it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
840 empty results in a runtime error.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
841 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
842 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
843
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
844 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
845 <term><option>l00:l01:l02:..l10:l11:l12:...ln0:ln1:ln2:...</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
846 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
847 are floating point values between <literal>0</literal> and <literal>1</literal>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
848 <option>l[i][j]</option> determines how much of input channel j is mixed into
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
849 output channel i.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
850 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
851 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
852 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
853
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
854 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
855 Example 1:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
856 <screen>mplayer -af pan=1:0.5:0.5 -channels 1 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
857 would down-mix from stereo to mono.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
858 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
859
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
860 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
861 Example 2:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
862 <screen>mplayer -af pan=3:1:0:1:0.5:0.5 -channels 3 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
863 would give 3 channel output leaving channels 0 and 1 intact, and mix
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
864 channels 0 and 1 into output channel 2 (which could be sent to a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
865 sub-woofer for example).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
866 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
867 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
868
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
869 <sect4 id="af_sub">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
870 <title>Sub-woofer</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
871 <para>
10111
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
872 The <option>sub</option> filter adds a sub woofer channel to the audio
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
873 stream. The audio data used for creating the sub-woofer channel is an
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
874 average of the sound in channel 0 and channel 1. The resulting sound is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
875 then low-pass filtered by a 4th order Butterworth filter with a default
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
876 cutoff frequency of 60Hz and added to a separate channel in the audio
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
877 stream. Warning: Disable this filter when you are playing DVDs with Dolby
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
878 Digital 5.1 sound, otherwise this filter will disrupt the sound to the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
879 sub-woofer. This filter has two parameters:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
880 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
881
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
882 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
883 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
884 <term><option>fc &lt;20-300&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
885 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
886 is an optional floating point number used for setting the cutoff frequency
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
887 for the filter in Hz. The valid range is 20Hz to 300Hz. For the best result
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
888 try setting the cutoff frequency as low as possible. This will improve the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
889 stereo or surround sound experience. The default cutoff frequency is 60Hz.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
890 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
891 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
892
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
893 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
894 <term><option>ch &lt;0-5&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
895 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
896 is an optional integer between <literal>0</literal> and <literal>5</literal>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
897 which determines the channel number in which to insert the sub-channel audio.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
898 The default is channel number <literal>5</literal>. Observe that the number of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
899 channels will automatically be increased to <replaceable>ch</replaceable> if
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
900 necessary.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
901 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
902 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
903 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
904
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
905 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
906 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
907 <screen>mplayer -af sub=100:4 -channels 5 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
908 would add a sub-woofer channel with a cutoff frequency of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
909 100Hz to output channel 4.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
910 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
911 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
912
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
913 <sect4 id="af_surround">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
914 <title>Surround-sound decoder</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
915 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
916 Matrix encoded surround sound can be decoded by the <option>surround</option>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
917 filter. Dolby Surround is an example of a matrix encoded format. Many files
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
918 with 2 channel audio actually contain matrixed surround sound. To use this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
919 feature you need a sound card supporting at least 4 channels. This filter has
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
920 one parameter:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
921 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
922
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
923 <variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
924 <varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
925 <term><option>d &lt;0-1000&gt;</option></term>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
926 <listitem><para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
927 is an optional floating point number between <literal>0</literal> and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
928 <literal>1000</literal> used for setting the delay time in ms for the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
929 rear speakers. This delay should be set as follows: if d1 is the distance
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
930 from the listening position to the front speakers and d2 is the distance
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
931 from the listening position to the rear speakers, then the delay d should
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
932 be set to 15ms if d1 &lt;= d2 and to 15 + 5*(d1-d2) if d1 &gt; d2. The default
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
933 value for d is 20ms.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
934 </para></listitem>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
935 </varlistentry>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
936 </variablelist>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
937
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
938 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
939 Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
940 <screen>mplayer -af surround=15 -channels 4 media.avi</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
941 would add surround sound decoding with 15ms delay for the sound to the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
942 rear speakers.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
943 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
944 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
945 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
946
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
947 <sect3 id="audio-plugins">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
948 <title>Audio plugins (deprecated)</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
949 <note><para><emphasis role="bold">Audio plugins have been deprecated by audio filters and will
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
950 be removed soon.</emphasis></para></note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
951
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
952 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
953 <application>MPlayer</application> has support for audio plugins. Audio
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
954 plugins can be used for changing the properties of the audio data before
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
955 the sound reaches the sound card. They are enabled using the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
956 <option>-aop</option> switch which takes a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
957 <option>list=plugin1,plugin2,...</option> argument. The
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
958 <option>list</option> argument is required and determines which plugins
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
959 should be used and in which order they should be executed. Example:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
960
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
961 <screen>mplayer media.avi -aop list=resample,format</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
962
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
963 would run the sound through the resampling plugin followed by the format
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
964 plugin.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
965 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
966
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
967 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
968 The plugins can also have switches that change their behavior. These
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
969 switches are explained in detail in the sections below. A plugin will
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
970 execute using default settings if its switches are omitted. Here is an
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
971 example of how to use plugins in combination with plugin specific switches:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
972
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
973 <screen>mplayer media.avi -aop list=resample,format:fout=44100:format=0x8</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
974
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
975 would set the output frequency of the resample plugin to 44100 Hz and the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
976 output format of the format plugin to AFMT_U8.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
977 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
978
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
979 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
980 Currently audio plugins can not be used in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
981 <application>MEncoder</application>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
982 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
983
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
984
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
985 <sect4 id="updn-sampling">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
986 <title>Up/Downsampling</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
987
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
988 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
989 <application>MPlayer</application> fully supports up/downsampling of the sound. This plugin can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
990 used if you have a fixed frequency sound card or if you are stuck with an
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
991 old sound card that is only capable of max 44.1 kHz. Limitations in your
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
992 hardware are not auto detected, so you have to specify the sample frequency
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
993 explicitly. This plugin has one switch: <option>fout</option> which is used for setting the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
994 desired output sample frequency. It defaults to 48 kHz, and is given in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
995 Hz.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
996 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
997
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
998 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
999 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1000
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1001 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1002 mplayer <replaceable>media.avi</replaceable> -aop list=resample:fout=<replaceable>freq</replaceable></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1003
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1004 where <literal><replaceable>freq</replaceable></literal> is the frequency
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1005 in Hz, like <literal>44100</literal>.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1006 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1007
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1008 <note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1009 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1010 The output frequency should not be scaled up from the default value.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1011 Scaling up will cause the audio and video streams to be played in slow
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1012 motion in addition to audio distortion.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1013 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1014 </note>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1015 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1016
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1017
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1018 <sect4 id="surround-decode">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1019 <title>Surround Sound decoding</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1020
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1021 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1022 <application>MPlayer</application> has an audio plugin that can decode
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1023 matrix encoded surround sound. Dolby Surround is an example of a matrix
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1024 encoded format. Many files with 2 channel audio actually contain matrixed
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1025 surround sound. To use this feature you need a sound card supporting at
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1026 least 4 channels.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1027 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1028
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1029 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1030 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1031 <screen>mplayer <replaceable>media.avi</replaceable> -aop list=surround</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1032 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1033 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1034
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1035
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1036 <sect4 id="sample-format-conv">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1037 <title>Sample format converter</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1038
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1039 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1040 If your sound card driver does not support signed 16-bit int data type,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1041 this plugin can be used to change the format to one which your sound card
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1042 can understand. It has one switch, <option>format</option>, which can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1043 set to one of the numbers found in <filename>libao2/afmt.h</filename>. This
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1044 plugin is hardly ever needed and is intended for advanced users. Keep in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1045 mind that this plugin only changes the sample format and not the sample
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1046 frequency or the number of channels.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1047 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1048
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1049 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1050 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1051
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1052 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1053 mplayer <replaceable>media.avi</replaceable> -aop list=format:format=<replaceable>outfmt</replaceable></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1054
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1055 where <literal><replaceable>outfmt</replaceable></literal> is the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1056 required output format.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1057 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1058 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1059
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1060
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1061 <sect4 id="audio-delay">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1062 <title>Delay</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1063 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1064 This plugin delays the sound and is intended as an example of how to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1065 develop new plugins. It can not be used for anything useful from a users
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1066 perspective and is mentioned here for the sake of completeness only. Do not
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1067 use this plugin unless you are a developer.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1068 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1069 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1070
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1071
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1072 <sect4 id="sw-volume">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1073 <title>Software volume control</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1074
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1075 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1076 This plugin is a software replacement for the volume control, and can be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1077 used on machines with a broken mixer device. It can also be used if one
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1078 wants to change the output volume of <application>MPlayer</application>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1079 without changing the PCM volume setting in the mixer. It has one switch
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1080 <option>volume</option> that is used for setting the initial sound level.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1081 The initial sound level can be set to values between 0 and 255 and defaults
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1082 to 101 which equals 0dB amplification. Use this plugin with caution since
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1083 it can reduce the signal to noise ratio of the sound. In most cases it is
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1084 best to set the level for the PCM sound to max, leave this plugin out and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1085 control the output level to your speakers with the master volume control of
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1086 the mixer. If there is an external amplifier connected to the computer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1087 (this is almost always the case), the noise level can be minimized by
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1088 adjusting the master level and the volume knob on the amplifier until the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1089 hissing noise in the background is gone.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1090 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1091
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1092 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1093 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1094 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1095 mplayer <replaceable>media.avi</replaceable> -aop list=volume:volume=<replaceable>0-255</replaceable></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1096 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1097
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1098 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1099 This plugin also has compressor or "soft-clipping" capabilities.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1100 Compression can be used if the dynamic range of the sound is very high or
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1101 if the dynamic range of the loudspeakers is very low. Be aware that this
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1102 feature creates distortion and should be considered a last resort.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1103 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1104
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1105 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1106 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1107 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1108 mplayer <replaceable>media.avi</replaceable> -aop list=volume:softclip</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1109 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1110 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1111
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1112 <sect4 id="extrastereo">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1113 <title>Extrastereo</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1114
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1115 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1116 This plugin (linearly) increases the difference between left and right
10111
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
1117 channels (like the <application>XMMS</application> extrastereo plugin) which gives some
a570a78537aa various fixes and updates
nicolas
parents: 9675
diff changeset
1118 sort of "live" effect to playback.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1119 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1120
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1121 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1122 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1123 <screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1124 mplayer <replaceable>media.avi</replaceable> -aop list=extrastereo
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1125 mplayer <replaceable>media.avi</replaceable> -aop list=extrastereo:mul=3.45<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1126 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1127
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1128 The default coefficient (<option>mul</option>) is a float number that
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1129 defaults to 2.5. If you set it to <literal>0.0</literal>, you will have
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1130 mono sound (average of both channels). If you set it to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1131 <literal>1.0</literal>, sound will be unchanged, if you set it to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1132 <literal>-1.0</literal>, left and right channels will be swapped.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1133 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1134 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1135
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1136
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1137 <sect4 id="volnorm">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1138 <title>Volume normalizer</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1139
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1140 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1141 This plugin maximizes the volume without distorting the sound.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1142 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1143
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1144 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1145 Usage:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1146 <screen>mplayer <replaceable>media.avi</replaceable> -aop list=volnorm</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1147 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1148 </sect4>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1149 </sect3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1150 </sect2>