Mercurial > mplayer.hg
comparison DOCS/sound.html @ 8177:1f00a3d29b20
some TOC reorder
new sections
updates
fixes
girls
etc
author | gabucino |
---|---|
date | Wed, 13 Nov 2002 05:13:51 +0000 |
parents | 988498df1996 |
children | 352b654c7787 |
comparison
equal
deleted
inserted
replaced
8176:15fa4667cddf | 8177:1f00a3d29b20 |
---|---|
9 | 9 |
10 <BODY> | 10 <BODY> |
11 | 11 |
12 | 12 |
13 <H3><A NAME="audio">2.3.2 Audio output devices</A></H3> | 13 <H3><A NAME="audio">2.3.2 Audio output devices</A></H3> |
14 | |
15 <H4><A NAME="sync">2.3.2.1 Description of MPlayer's A/V sync method</A></H4> | |
14 | 16 |
15 <P>MPlayer's audio interface is called <I>libao2</I>. It currently | 17 <P>MPlayer's audio interface is called <I>libao2</I>. It currently |
16 contains these drivers:</P> | 18 contains these drivers:</P> |
17 | 19 |
18 <TABLE BORDER=0> | 20 <TABLE BORDER=0> |
24 <TR><TD></TD><TD VALIGN=top>alsa9</TD><TD></TD><TD>native ALSA 0.9 driver (supports hardware AC3 passthrough)</TD></TR> | 26 <TR><TD></TD><TD VALIGN=top>alsa9</TD><TD></TD><TD>native ALSA 0.9 driver (supports hardware AC3 passthrough)</TD></TR> |
25 <TR><TD></TD><TD VALIGN=top>sun</TD><TD></TD><TD>SUN audio driver (<CODE>/dev/audio</CODE>) for BSD and Solaris8 users</TD></TR> | 27 <TR><TD></TD><TD VALIGN=top>sun</TD><TD></TD><TD>SUN audio driver (<CODE>/dev/audio</CODE>) for BSD and Solaris8 users</TD></TR> |
26 <TR><TD></TD><TD VALIGN=top>arts</TD><TD></TD><TD>native ARTS driver (mostly for KDE users)</TD></TR> | 28 <TR><TD></TD><TD VALIGN=top>arts</TD><TD></TD><TD>native ARTS driver (mostly for KDE users)</TD></TR> |
27 </TABLE> | 29 </TABLE> |
28 | 30 |
29 <P>Fact is, Linux sound card drivers have compatibility problems. | 31 <P>Fact is, Linux sound card drivers have compatibility problems. The cause |
30 It <B>may</B> take a while to find your optimal settings.</P> | 32 is that MPlayer uses a feature of normally coded audio drivers to maintain |
33 audio/video sync. Regrettably, some driver authors don't care of this | |
34 function: it isn't needed for playing MP3s, or sound effects.</P> | |
35 | |
36 <P>Other media players like aviplay or xine possibly work out-of-the-box with | |
37 these drivers because they use "simple" methods with internal timing. A note: | |
38 time showed their methods aren't AS efficient as MPlayer's.</P> | |
39 | |
40 <P>Using MPlayer with a correctly written audio driver won't ever give you A/V | |
41 desyncs related to the audio, only with very badly created files (check the | |
42 documentation for workarounds!).</P> | |
43 | |
44 <P>If you happen to have a bad audio driver, try the <CODE>-autosync</CODE> | |
45 option, it should sort out your problems. See the man page for detailed | |
46 information.</P> | |
47 | |
48 <P>Some notes:</P> | |
31 | 49 |
32 <UL> | 50 <UL> |
33 <LI>If you have an OSS driver, first try <CODE>-ao oss</CODE> (this is the | 51 <LI>If you have an OSS driver, first try <CODE>-ao oss</CODE> (this is the |
34 default). If you experience glitches, halts or anything out of the | 52 default). If you experience glitches, halts or anything out of the |
35 ordinary, try <CODE>-ao sdl</CODE> (NOTE: you need to have SDL libraries | 53 ordinary, try <CODE>-ao sdl</CODE> (NOTE: you need to have SDL libraries |
38 from GNOME, ARTS is from KDE.)</LI> | 56 from GNOME, ARTS is from KDE.)</LI> |
39 <LI>If you have ALSA version 0.5, then you almost always have to use | 57 <LI>If you have ALSA version 0.5, then you almost always have to use |
40 <CODE>-ao alsa5</CODE> , since ALSA 0.5 has buggy OSS emulation code, and | 58 <CODE>-ao alsa5</CODE> , since ALSA 0.5 has buggy OSS emulation code, and |
41 will <B>crash MPlayer</B> with a message like this:<BR> | 59 will <B>crash MPlayer</B> with a message like this:<BR> |
42 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI> | 60 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI> |
43 <LI>If you have ALSA version 0.9 you may choose between <CODE>-ao oss</CODE> | |
44 and <CODE>-ao sdl</CODE>. You can also use <CODE>-ao alsa9</CODE>. It | |
45 works, but there may be problems like lost sync and disappearing | |
46 audio.</LI> | |
47 </UL> | 61 </UL> |
48 | 62 |
49 <P>On <B>Solaris/FreeBSD</B> systems, use the SUN audio driver with the | 63 <P>On <B>Solaris</B>, use the SUN audio driver with the |
50 <CODE>-ao sun</CODE> option, otherwise neither video nor audio will work.</P> | 64 <CODE>-ao sun</CODE> option, otherwise neither video nor audio will work.</P> |
51 | 65 |
52 | 66 |
53 <H4><A NAME="experiences">2.3.2.1 Sound Card experiences, recommendations</A></H4> | 67 <H4><A NAME="experiences">2.3.2.2 Sound Card experiences, recommendations</A></H4> |
54 | 68 |
55 <TABLE BORDER=0 WIDTH="100%"> | 69 <TABLE BORDER=0 WIDTH="100%"> |
56 <TR><TD COLSPAN=3><B>VIA onboard chipset (via82cxxx) 48kHz only</B></TD></TR> | 70 <TR><TD COLSPAN=3><B>VIA onboard chipset (via82cxxx) 48kHz only</B></TD></TR> |
57 <TR><TD></TD><TD>Driver:</TD><TD> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&release_id=59602">sourceforge.net</A></TD></TR> | 71 <TR><TD></TD><TD>Driver:</TD><TD> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&release_id=59602">sourceforge.net</A></TD></TR> |
58 | 72 |
134 | 148 |
135 <P>Feedback to this document is welcome. Please tell us how MPlayer | 149 <P>Feedback to this document is welcome. Please tell us how MPlayer |
136 and your sound card(s) worked together.</P> | 150 and your sound card(s) worked together.</P> |
137 | 151 |
138 | 152 |
139 <H4><A NAME="plugins">2.3.2.2 Audio plugins</A></H4> | 153 <H4><A NAME="plugins">2.3.2.3 Audio plugins</A></H4> |
140 | 154 |
141 <P>MPlayer has support for audio plugins. Audio plugins can be used for | 155 <P>MPlayer has support for audio plugins. Audio plugins can be used for |
142 changing the properties of the audio data before the sound reaches the sound | 156 changing the properties of the audio data before the sound reaches the sound |
143 card. They are enabled using the <CODE>-aop</CODE> switch which takes a | 157 card. They are enabled using the <CODE>-aop</CODE> switch which takes a |
144 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument | 158 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument |
162 output format of the format plugin to AFMT_U8.</P> | 176 output format of the format plugin to AFMT_U8.</P> |
163 | 177 |
164 <P>Currently audio plugins can not be used in MEncoder.</P> | 178 <P>Currently audio plugins can not be used in MEncoder.</P> |
165 | 179 |
166 | 180 |
167 <H5><A NAME="resample">2.3.2.2.1 Up/Downsampling</A></H5> | 181 <H5><A NAME="resample">2.3.2.3.1 Up/Downsampling</A></H5> |
168 | 182 |
169 <P>MPlayer fully supports up/downsampling of the sound. This plugin can | 183 <P>MPlayer fully supports up/downsampling of the sound. This plugin can |
170 be used if you have a fixed frequency sound card or if you are | 184 be used if you have a fixed frequency sound card or if you are |
171 stuck with an old sound card that is only capable of max 44.1kHz. | 185 stuck with an old sound card that is only capable of max 44.1kHz. |
172 Limitations in your hardware are not auto detected, so you have to specify | 186 Limitations in your hardware are not auto detected, so you have to specify |
182 <P>Note that the output frequency should not be scaled up from the default value. | 196 <P>Note that the output frequency should not be scaled up from the default value. |
183 Scaling up will cause the audio and video streams to be played in slow motion | 197 Scaling up will cause the audio and video streams to be played in slow motion |
184 in addition to audio distortion.</P> | 198 in addition to audio distortion.</P> |
185 | 199 |
186 | 200 |
187 <H5><A NAME="surround_decoding">2.3.2.2.2 Surround Sound decoding</A></H5> | 201 <H5><A NAME="surround_decoding">2.3.2.3.2 Surround Sound decoding</A></H5> |
188 | 202 |
189 <P>MPlayer has an audio plugin that can decode matrix encoded | 203 <P>MPlayer has an audio plugin that can decode matrix encoded |
190 surround sound. Dolby Surround is an example of a matrix encoded format. | 204 surround sound. Dolby Surround is an example of a matrix encoded format. |
191 Many files with 2 channel audio actually contain matrixed surround sound. | 205 Many files with 2 channel audio actually contain matrixed surround sound. |
192 To use this feature you need a sound card supporting at least 4 channels.</P> | 206 To use this feature you need a sound card supporting at least 4 channels.</P> |
193 | 207 |
194 <P>Usage:<BR> | 208 <P>Usage:<BR> |
195 <CODE>mplayer media.avi -aop list=surround</CODE></P> | 209 <CODE>mplayer media.avi -aop list=surround</CODE></P> |
196 | 210 |
197 | 211 |
198 <H5><A NAME="format">2.3.2.2.3 Sample format converter</A></H5> | 212 <H5><A NAME="format">2.3.2.3.3 Sample format converter</A></H5> |
199 | 213 |
200 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type, | 214 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type, |
201 this plugin can | 215 this plugin can |
202 be used to change the format to one which your sound card can understand. It | 216 be used to change the format to one which your sound card can understand. It |
203 has one switch, <CODE>format</CODE>, which can be set to one of the numbers | 217 has one switch, <CODE>format</CODE>, which can be set to one of the numbers |
208 <P>Usage:<BR> | 222 <P>Usage:<BR> |
209 <CODE>mplayer media.avi -aop | 223 <CODE>mplayer media.avi -aop |
210 list=format:format=<required output format></CODE></P> | 224 list=format:format=<required output format></CODE></P> |
211 | 225 |
212 | 226 |
213 <H5><A NAME="delay">2.3.2.2.4 Delay</A></H5> | 227 <H5><A NAME="delay">2.3.2.3.4 Delay</A></H5> |
214 | 228 |
215 <P>This plugin delays the sound and is intended as an example of how to develop | 229 <P>This plugin delays the sound and is intended as an example of how to develop |
216 new plugins. It can not be used for anything useful from a users perspective | 230 new plugins. It can not be used for anything useful from a users perspective |
217 and is mentioned here for the sake of completeness only. Do not use this | 231 and is mentioned here for the sake of completeness only. Do not use this |
218 plugin unless you are a developer.</P> | 232 plugin unless you are a developer.</P> |
219 | 233 |
220 | 234 |
221 <H5><A NAME="volume">2.3.2.2.5 Software volume control</A></H5> | 235 <H5><A NAME="volume">2.3.2.3.5 Software volume control</A></H5> |
222 | 236 |
223 <P>This plugin is a software replacement for the volume control, and | 237 <P>This plugin is a software replacement for the volume control, and |
224 can be used on machines with a broken mixer device. It can also be | 238 can be used on machines with a broken mixer device. It can also be |
225 used if one wants to change the output volume of MPlayer | 239 used if one wants to change the output volume of MPlayer |
226 without changing the PCM volume setting in the mixer. It has one | 240 without changing the PCM volume setting in the mixer. It has one |
249 <P>Usage:<BR> | 263 <P>Usage:<BR> |
250 <CODE>mplayer media.avi -aop | 264 <CODE>mplayer media.avi -aop |
251 list=volume:softclip</CODE></P> | 265 list=volume:softclip</CODE></P> |
252 | 266 |
253 | 267 |
254 <H5><A NAME="extrastereo">2.3.2.2.6 Extrastereo</A></H5> | 268 <H5><A NAME="extrastereo">2.3.2.3.6 Extrastereo</A></H5> |
255 | 269 |
256 <P>This plugin (linearly) increases the difference between left and right | 270 <P>This plugin (linearly) increases the difference between left and right |
257 channels (like the XMMS extrastereo plugin) which gives some sort of "live" | 271 channels (like the XMMS extrastereo plugin) which gives some sort of "live" |
258 effect to playback.</P> | 272 effect to playback.</P> |
259 | 273 |
265 to 2.5. If you set it to 0.0, you will have mono sound (average of both | 279 to 2.5. If you set it to 0.0, you will have mono sound (average of both |
266 channels). If you set it to 1.0, sound will be unchanged, if you set it to | 280 channels). If you set it to 1.0, sound will be unchanged, if you set it to |
267 -1.0, left and right channels will be swapped.</P> | 281 -1.0, left and right channels will be swapped.</P> |
268 | 282 |
269 | 283 |
270 <H5><A NAME="normalizer">2.3.2.2.7 Volume normalizer</A></H5> | 284 <H5><A NAME="normalizer">2.3.2.3.7 Volume normalizer</A></H5> |
271 | 285 |
272 <P>This plugin maximizes the volume without distorting the sound.</P> | 286 <P>This plugin maximizes the volume without distorting the sound.</P> |
273 | 287 |
274 <P>Usage:<BR> | 288 <P>Usage:<BR> |
275 <CODE>mplayer media.avi -aop list=volnorm</CODE><BR> | 289 <CODE>mplayer media.avi -aop list=volnorm</CODE><BR> |