comparison DOCS/pl/sound.html @ 9332:a604236b0dd6

Rename documentation directories to two-letter language codes.
author diego
date Sat, 08 Feb 2003 00:00:00 +0000
parents DOCS/Polish/sound.html@d5c692754cf2
children 6921cceaeacb
comparison
equal deleted inserted replaced
9331:bbe91bd6e1c8 9332:a604236b0dd6
1 <HTML>
2
3 <HEAD>
4 <STYLE>
5 .text
6 {font-family : Verdana, Arial, Helvetica, sans-serif;
7 font-size : 14px;}
8 </STYLE>
9 </HEAD>
10
11 <BODY BGCOLOR=white>
12
13 <FONT CLASS="text">
14
15 <P><B><A NAME=2.3.2>2.3.2. Audio output devices</A></B></P>
16
17 <P><B>MPlayer</B>'s audio interface is called <I>libao2</I>. It currently
18 contains these drivers:</P>
19
20 <TABLE BORDER=0>
21
22 <TR><TD COLSPAN=4><P><B><FONT CLASS="text">General:</B></P></TD></TR>
23
24 <TR><TD>&nbsp;&nbsp;</TD><TD VALIGN=top><FONT CLASS="text">oss</TD><TD>&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS (ioctl) driver</TD></TR>
25 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sdl</TD><TD></TD><TD><FONT CLASS="text">SDL driver (supports up/downsampling, <B>ESD</B>, <B>ARTS</B> etc)</TD></TR>
26 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">nas</TD><TD></TD><TD><FONT CLASS="text">NAS (Network Audio System) driver</TD></TR>
27 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa5</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.5 driver</TD></TR>
28 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">alsa9</TD><TD></TD><TD><FONT CLASS="text">native ALSA 0.9 driver (works, but has problems -> use OSS)</TD></TR>
29 <TR><TD></TD><TD VALIGN=top><FONT CLASS="text">sun</TD><TD></TD><TD><FONT CLASS="text">SUN audio driver (/dev/audio) for BSD and Solaris8 users</TD></TR>
30
31 </TABLE>
32
33 <P>Fact is, Linux sound card drivers have compatibility problems.
34 It <B>may</B> take a while to find your optimal settings.</P>
35
36 <UL>
37 <LI>If you have an OSS driver, first try <CODE>-ao oss</CODE> (this is the default).
38 If you experience glitches, halts or anything out of the ordinary, try
39 <CODE>-ao sdl</CODE> (NOTE: you need to have SDL libraries and header files
40 installed). The SDL audio driver helps in a lot of cases and also supports ESD,
41 ARTS, and up/downsampling. (ESD is the sound daemon from GNOME, ARTS is from KDE.)</LI>
42 <LI>If you have ALSA version 0.5, then you almost always have to use <CODE>-ao alsa5</CODE> ,
43 since ALSA 0.5 has buggy OSS emulation code, and will <B>crash MPlayer</B> with
44 a message like this:<BR>
45 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI>
46 <LI>If you have ALSA version 0.9 you may choose between <CODE>-ao oss</CODE> and
47 <CODE>-ao sdl</CODE>. You can also use <CODE>-ao alsa9</CODE>. It works, but
48 there are problems like lost sync and disappearing audio.</LI>
49 </UL>
50
51 <P>On <B>Solaris/FreeBSD</B> systems, use the SUN audio driver with the
52 <CODE>-ao sun</CODE> option, otherwise neither video nor audio will work.</P>
53
54 <P><B><A NAME=2.3.2.1>2.3.2.1. Sound Card experiences, recommendations</A></B></P>
55
56 <TABLE BORDER=0 WIDTH="100%">
57 <TR><TD COLSPAN=3><B><FONT CLASS="text">VIA onboard chipset (via82cxxx) 48kHz only</B></TD><TR>
58 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"> from <A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&amp;release_id=59602">here</A></TD><TR>
59
60 <TD COLSPAN=3><B><FONT CLASS="text">Aureal Vortex 2</B></TD><TR>
61 <TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">no driver</TD><TR>
62 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
63 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR>
64 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD>48</TD><TR>
65 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"><A HREF="http://aureal.sourceforge.net">aureal.sourceforge.net</A></TD><TR>
66 <TD></TD><TD><FONT CLASS="text">Driver2:</TD><TD><FONT CLASS="text"> from <A HREF="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">here</A><BR>
67 (<I>buffer size increased to 32k</I>)</TD><TR>
68
69 <TD COLSPAN=3><B><FONT CLASS="text">GUS PnP</B></TD><TR>
70 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">no driver</TD><TR>
71 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
72 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR>
73 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
74
75 <TD COLSPAN=3><B><FONT CLASS="text">SB Live!</B></TD><TR>
76 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">Analog OK, SP/DIF not working</TD><TR>
77 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">Both OK</TD><TR>
78 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">192</TD><TR>
79
80 <TD COLSPAN=3><B><FONT CLASS="text">SB AWE 64</B></TD><TR>
81 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">max 44kHz</TD><TR>
82 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">48kHz sounds bad</TD><TR>
83 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
84
85 <TD COLSPAN=3><B><FONT CLASS="text">Gravis UltraSound ACE</B></TD><TR>
86 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK</TD><TR>
87 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK</TD><TR>
88 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">44</TD><TR>
89
90 <TD COLSPAN=3><B><FONT CLASS="text">Gravis UltraSound MAX</B></TD><TR>
91 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">OK</TD><TR>
92 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK (?)</TD><TR>
93 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
94
95 <TD COLSPAN=3><B><FONT CLASS="text">ESS 688</B></TD><TR>
96 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">OK</TD><TR>
97 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK (?)</TD><TR>
98 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">48</TD><TR>
99
100 <TD COLSPAN=3><B><FONT CLASS="text">C-Media cards (which ones?)</B></TD><TR>
101 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (hissing) (?)</TD><TR>
102 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK (?)</TD><TR>
103 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
104
105 <TD COLSPAN=3><B><FONT CLASS="text">Yamaha cards (*ymf*)</B></TD><TR>
106 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">not OK (?) (maybe <CODE>-ao sdl</CODE>)</TD><TR>
107 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">OK only with ALSA 0.5 with OSS emulation <B>AND</B> <CODE>-ao sdl</CODE> (!) (?)</TD><TR>
108 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
109
110 <TD COLSPAN=3><B><FONT CLASS="text">Cards with envy24 chips (like Terratec EWS88MT)</B></TD><TR>
111 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">?</TD><TR>
112 <TD></TD><TD><FONT CLASS="text">OSS/Pro:</TD><TD><FONT CLASS="text">OK</TD><TR>
113 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">?</TD><TR>
114 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">?</TD><TR>
115
116 <TD COLSPAN=3><B><FONT CLASS="text">PC Speaker or DAC</B></TD><TR>
117 <TD></TD><TD><FONT CLASS="text">OSS:</TD><TD><FONT CLASS="text">OK (Use the SDL driver: <CODE>-ao sdl</CODE>)</TD><TR>
118 <TD></TD><TD><FONT CLASS="text">ALSA:</TD><TD><FONT CLASS="text">no driver</TD><TR>
119 <TD></TD><TD><FONT CLASS="text">Max kHz:</TD><TD><FONT CLASS="text">The driver emulates 44.1, maybe more.</TD><TR>
120 <TD></TD><TD><FONT CLASS="text">Driver:</TD><TD><FONT CLASS="text"><A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A></TD>
121 </TABLE>
122
123 <UL>
124 <LI>On Linux, a 2.4.x kernel is highly recommended. Kernel 2.2 is not tested.</LI>
125 <LI>If sound clicks when playing from CD-ROM, turn on IRQ unmasking, e.g.
126 <CODE>hdparm -u1 /dev/cdrom</CODE> (<CODE>man hdparm</CODE>). This is
127 generally beneficial and described more detailed in the
128 <A HREF="cd-dvd.html#4.1">CD-ROM section</A>.</LI>
129 <LI>Sharing your sound card with another application like XMMS is <B>strongly discouraged</B>!
130 If the other sound application is using ESD, start <B>MPlayer</B> with the <CODE>-vo sdl:esd</CODE> option
131 to combine both sound streams! In fact, the option <CODE>-vo sdl:esd</CODE> could be used with ESD
132 even when playing <B>Mplayer</B> alone.</LI>
133 <LI>Feedback to this document is welcome. Please tell us how <B>MPlayer</B> and
134 your sound card(s) worked together.</LI>
135 </UL>
136
137
138 <P><B><A NAME=2.3.2.2>2.3.2.2. Audio plugins</A></B></P>
139
140 <P><B>MPlayer</B> has support for audio plugins. Audio plugins can be used for
141 changing the properties of the audio data before the sound reaches the sound
142 card. They are enabled using the <CODE>-aop</CODE> switch which takes a
143 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument
144 is required and determines which plugins should be used and in which order they
145 should be executed. Example:
146 </P>
147
148 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample,format</CODE></P>
149
150 <P>would run the sound through the resampling plugin followed by the format
151 plugin.
152 </P>
153
154 <P>The plugins can also have switches that change their behavior. These
155 switches are explained in detail in the sections below. A plugin will execute
156 using default settings if its switches are omitted. Here is an example of how
157 to use plugins in combination with plugin specific switches:
158 </P>
159
160 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop
161 list=resample,format:fout=44100:format=0x8</CODE>
162 </P>
163
164 <P>would set the output frequency of the resample plugin to 44100Hz and the
165 output format of the format plugin to AFMT_U8.
166 </P>
167
168 <P>Currently audio plugins can not be used in <B>MEncoder</B>.</P>
169
170
171 <P><B><A NAME=2.3.2.2.1>2.3.2.2.1. Up/Downsampling</A></B></P>
172
173 <P><B>MPlayer</B> fully supports up/downsampling of the sound. This plugin can
174 be used if you have a fixed frequency sound card or if you are
175 stuck with an old sound card that is only capable of max 44.1kHz.
176 Limitations in your hardware are not auto detected, so you have to specify
177 the sample frequency explicitly. This plugin has one switch:
178 <CODE>fout</CODE> which is used for setting the desired output sample
179 frequency. It defaults to 48kHz, and is given in
180 &lt;Hz&gt;.
181 </P>
182
183 <P>Usage:<BR>
184 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample:fout=&lt;required
185 frequency in Hz, like 44100&gt;</CODE></P>
186
187 <P>Note that the output frequency should not be scaled up from the default value.
188 Scaling up will cause the audio and video streams to be played in slow motion
189 in addition to audio distortion.</P>
190
191 <P><B><A NAME=2.3.2.2.2>2.3.2.2.2. Surround Sound decoding</A></B></P>
192
193 <P><B>MPlayer</B> has an audio plugin that can decode matrix encoded
194 surround sound. Dolby Surround is an example of a matrix encoded format.
195 Many files with 2 channel audio actually contain matrixed surround sound.
196 To use this feature you need a sound card supporting at least 4 channels.</P>
197
198 <P>Usage:<BR>
199 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=surround</CODE></P>
200
201
202 <P><B><A NAME=2.3.2.2.3>2.3.2.2.3. Sample format converter</A></B></P>
203
204 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type,
205 this plugin can
206 be used to change the format to one which your sound card can understand. It
207 has one switch, <CODE>format</CODE>, which can be set to one of the numbers
208 found in <CODE>libao2/afmt.h</CODE>. This plugin is hardly ever needed and is
209 intended for advanced users. Keep in mind that this plugin only changes the
210 sample format and not the sample frequency or the number of channels.
211 </P>
212
213 <P>Usage:<BR>
214 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
215 list=format:format=&lt;required output format&gt;</CODE>
216 </P>
217
218
219 <P><B><A NAME=2.3.2.2.4>2.3.2.2.4. Delay</A></B></P>
220
221 <P>This plugin delays the sound and is intended as an example of how to develop
222 new plugins. It can not be used for anything useful from a users perspective
223 and is mentioned here for the sake of completeness only. Do not use this
224 plugin unless you are a developer.</P>
225
226 <P><B><A NAME=2.3.2.2.5>2.3.2.2.5. Software volume control</A></B></P>
227
228 <P>This plugin is a software replacement for the volume control, and
229 can be used on machines with a broken mixer device. It can also be
230 used if one wants to change the output volume of <B>MPlayer</B>
231 without changing the PCM volume setting in the mixer. It has one
232 switch <CODE>volume</CODE> that is used for setting the initial
233 sound level. The initial sound level can be set to values between 0
234 and 255 and defaults to 101 which equals 0dB amplification. Use this
235 plugin with caution since it can reduce the signal to noise ratio of
236 the sound. In most cases it is best to set the level for the PCM
237 sound to max, leave this plugin out and control the output level to
238 your speakers with the master volume control of the mixer. If there is an
239 external amplifier connected to the computer (this is almost always
240 the case), the noise level can be minimized by adjusting the master
241 level and the volume knob on the amplifier until the hissing noise
242 in the background is gone.
243 </P>
244
245 <P>Usage:<BR>
246 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
247 list=volume:volume=&lt;0-255&gt;</CODE>
248 </P>
249
250 <P>This plugin also has compressor or "soft-clipping" capabilities.
251 Compression can be used if the dynamic range of the sound is very
252 high or if the dynamic range of the loudspeakers is very
253 low. Be aware that this feature creates distortion and should be
254 considered a last resort.
255 </P>
256
257 <P>Usage:<BR>
258 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
259 list=volume:softclip</CODE>
260 </P>
261
262
263 <P><B><A NAME=2.3.2.2.6>2.3.2.2.6. Extrastereo</A></B></P>
264
265 <P>This plugin (linearly) increases the difference between left and right
266 channels (like the XMMS extrastereo plugin) which gives some sort of "live"
267 effect to playback.
268 </P>
269
270 <P>Usage:<BR>
271 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo</CODE><BR>
272 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo:mul=3.45</CODE></P>
273
274 <P>The default coefficient (<CODE>mul</CODE>) is a float number that defaults
275 to 2.5. If you set it to 0.0, you will have mono sound (average of both
276 channels). If you set it to 1.0, sound will be unchanged.</P>
277
278
279 <P><B><A NAME=2.3.2.2.7>2.3.2.2.7. Volume normalizer</A></B></P>
280
281 <P>This plugin maximizes the volume without distorting the sound.</P>
282
283 <P>Usage:<BR>
284 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=volnorm</CODE><BR>
285
286
287 <P><B><A NAME=2.3.2.2.8>2.3.2.2.8. Surround</A></B></P>
288
289 <P>Someone should document something, sometime.</P>
290
291 </BODY>
292 </HTML>