Mercurial > mplayer.hg
annotate DOCS/sound.html @ 8310:171c99ff2649
.depend should be ignored.
author | diego |
---|---|
date | Thu, 28 Nov 2002 23:14:48 +0000 |
parents | 352b654c7787 |
children | f6323ff433aa |
rev | line source |
---|---|
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1612 | 2 <HTML> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4928
diff
changeset
|
3 |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4928
diff
changeset
|
4 <HEAD> |
6882
f3f87f6bf5cf
Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents:
6583
diff
changeset
|
5 <TITLE>Sound - MPlayer - The Movie Player for Linux</TITLE> |
6391 | 6 <LINK REL="stylesheet" TYPE="text/css" HREF="default.css"> |
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> |
4982
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4928
diff
changeset
|
8 </HEAD> |
6cb9d9a1716d
HTML: different font handling - idea from new hp dezign
gabucino
parents:
4928
diff
changeset
|
9 |
6403
c0f189e49ee4
Background color now set by CSS, added doctype and default character set,
diego
parents:
6393
diff
changeset
|
10 <BODY> |
1704 | 11 |
1612 | 12 |
7047 | 13 <H3><A NAME="audio">2.3.2 Audio output devices</A></H3> |
1612 | 14 |
8177 | 15 <H4><A NAME="sync">2.3.2.1 Description of MPlayer's A/V sync method</A></H4> |
16 | |
7814 | 17 <P>MPlayer's audio interface is called <I>libao2</I>. It currently |
6974 | 18 contains these drivers:</P> |
1892 | 19 |
1905 | 20 <TABLE BORDER=0> |
6974 | 21 <TR><TD COLSPAN=4><P><B>General:</B></P></TD></TR> |
22 <TR><TD> </TD><TD VALIGN=top>oss</TD><TD> </TD><TD>OSS (ioctl) driver (supports hardware AC3 passthrough)</TD></TR> | |
8260 | 23 <TR><TD></TD><TD VALIGN=top>sdl</TD><TD></TD><TD>SDL driver (supports <B>ESD</B>, <B>ARTS</B> etc)</TD></TR> |
6974 | 24 <TR><TD></TD><TD VALIGN=top>nas</TD><TD></TD><TD>NAS (Network Audio System) driver</TD></TR> |
25 <TR><TD></TD><TD VALIGN=top>alsa5</TD><TD></TD><TD>native ALSA 0.5 driver</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> | |
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> | |
28 <TR><TD></TD><TD VALIGN=top>arts</TD><TD></TD><TD>native ARTS driver (mostly for KDE users)</TD></TR> | |
1905 | 29 </TABLE> |
1612 | 30 |
8177 | 31 <P>Fact is, Linux sound card drivers have compatibility problems. The cause |
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> | |
5765 | 49 |
50 <UL> | |
6960 | 51 <LI>If you have an OSS driver, first try <CODE>-ao oss</CODE> (this is the |
52 default). If you experience glitches, halts or anything out of the | |
53 ordinary, try <CODE>-ao sdl</CODE> (NOTE: you need to have SDL libraries | |
54 and header files installed). The SDL audio driver helps in a lot of cases | |
8260 | 55 and also supports ESD, ARTS. (ESD is the sound daemon |
6960 | 56 from GNOME, ARTS is from KDE.)</LI> |
57 <LI>If you have ALSA version 0.5, then you almost always have to use | |
58 <CODE>-ao alsa5</CODE> , since ALSA 0.5 has buggy OSS emulation code, and | |
59 will <B>crash MPlayer</B> with a message like this:<BR> | |
60 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI> | |
5765 | 61 </UL> |
1892 | 62 |
8177 | 63 <P>On <B>Solaris</B>, use the SUN audio driver with the |
6960 | 64 <CODE>-ao sun</CODE> option, otherwise neither video nor audio will work.</P> |
1892 | 65 |
7047 | 66 |
8177 | 67 <H4><A NAME="experiences">2.3.2.2 Sound Card experiences, recommendations</A></H4> |
1612 | 68 |
5765 | 69 <TABLE BORDER=0 WIDTH="100%"> |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
70 <TR><TD COLSPAN=3><B>VIA onboard chipset (via82cxxx) 48kHz only</B></TD></TR> |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7047
diff
changeset
|
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> |
3190 | 72 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
73 <TR><TD COLSPAN=3><B>Aureal Vortex 2</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
74 <TR><TD> </TD><TD>OSS:</TD><TD>no driver</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
75 <TR><TD></TD><TD>OSS/Pro:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
76 <TR><TD></TD><TD>ALSA:</TD><TD>no driver</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
77 <TR><TD></TD><TD>Max kHz:</TD><TD>48</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
78 <TR><TD></TD><TD>Driver:</TD><TD><A HREF="http://aureal.sourceforge.net">aureal.sourceforge.net</A></TD></TR> |
7076
3275af5787e0
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, slightly
diego
parents:
7047
diff
changeset
|
79 <TR><TD></TD><TD>Driver2:</TD><TD> from <A HREF="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">Pontscho's page</A><BR> |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
80 (<I>buffer size increased to 32k</I>)</TD></TR> |
1612 | 81 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
82 <TR><TD COLSPAN=3><B>GUS PnP</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
83 <TR><TD></TD><TD>OSS:</TD><TD>no driver</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
84 <TR><TD></TD><TD>OSS/Pro:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
85 <TR><TD></TD><TD>ALSA:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
86 <TR><TD></TD><TD>Max kHz:</TD><TD>48</TD></TR> |
1682 | 87 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
88 <TR><TD COLSPAN=3><B>SB Live!</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
89 <TR><TD></TD><TD>OSS:</TD><TD>Analog OK, SP/DIF not working</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
90 <TR><TD></TD><TD>ALSA:</TD><TD>Both OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
91 <TR><TD></TD><TD>Max kHz:</TD><TD>192</TD></TR> |
1612 | 92 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
93 <TR><TD COLSPAN=3><B>SB AWE 64</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
94 <TR><TD></TD><TD>OSS:</TD><TD>max 44kHz</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
95 <TR><TD></TD><TD>ALSA:</TD><TD>48kHz sounds bad</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
96 <TR><TD></TD><TD>Max kHz:</TD><TD>48</TD></TR> |
1892 | 97 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
98 <TR><TD COLSPAN=3><B>Gravis UltraSound ACE</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
99 <TR><TD></TD><TD>OSS:</TD><TD>not OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
100 <TR><TD></TD><TD>ALSA:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
101 <TR><TD></TD><TD>Max kHz:</TD><TD>44</TD></TR> |
1612 | 102 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
103 <TR><TD COLSPAN=3><B>Gravis UltraSound MAX</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
104 <TR><TD></TD><TD>OSS:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
105 <TR><TD></TD><TD>ALSA:</TD><TD>OK (?)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
106 <TR><TD></TD><TD>Max kHz:</TD><TD>48</TD></TR> |
1612 | 107 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
108 <TR><TD COLSPAN=3><B>ESS 688</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
109 <TR><TD></TD><TD>OSS:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
110 <TR><TD></TD><TD>ALSA:</TD><TD>OK (?)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
111 <TR><TD></TD><TD>Max kHz:</TD><TD>48</TD></TR> |
1612 | 112 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
113 <TR><TD COLSPAN=3><B>C-Media cards (which ones?)</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
114 <TR><TD></TD><TD>OSS:</TD><TD>not OK (hissing) (?)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
115 <TR><TD></TD><TD>ALSA:</TD><TD>OK (?)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
116 <TR><TD></TD><TD>Max kHz:</TD><TD>?</TD></TR> |
1612 | 117 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
118 <TR><TD COLSPAN=3><B>Yamaha cards (*ymf*)</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
119 <TR><TD></TD><TD>OSS:</TD><TD>not OK (?) (maybe <CODE>-ao sdl</CODE>)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
120 <TR><TD></TD><TD>ALSA:</TD><TD>OK only with ALSA 0.5 with OSS emulation <B>AND</B> <CODE>-ao sdl</CODE> (!) (?)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
121 <TR><TD></TD><TD>Max kHz:</TD><TD>?</TD></TR> |
1612 | 122 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
123 <TR><TD COLSPAN=3><B>Cards with envy24 chips (like Terratec EWS88MT)</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
124 <TR><TD></TD><TD>OSS:</TD><TD>?</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
125 <TR><TD></TD><TD>OSS/Pro:</TD><TD>OK</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
126 <TR><TD></TD><TD>ALSA:</TD><TD>?</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
127 <TR><TD></TD><TD>Max kHz:</TD><TD>?</TD></TR> |
3438 | 128 |
6975
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
129 <TR><TD COLSPAN=3><B>PC Speaker or DAC</B></TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
130 <TR><TD></TD><TD>OSS:</TD><TD>OK (Use the SDL driver: <CODE>-ao sdl</CODE>)</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
131 <TR><TD></TD><TD>ALSA:</TD><TD>no driver</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
132 <TR><TD></TD><TD>Max kHz:</TD><TD>The driver emulates 44.1, maybe more.</TD></TR> |
d2cdfb831265
Sanitize a HTML table, <TR> are at the proper place and get closed.
diego
parents:
6974
diff
changeset
|
133 <TR><TD></TD><TD>Driver:</TD><TD><A HREF="ftp://ftp.infradead.org/pub/pcsp">ftp://ftp.infradead.org/pub/pcsp</A></TD></TR> |
5765 | 134 </TABLE> |
1612 | 135 |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
136 <P>On Linux, a 2.4.x kernel is highly recommended. Kernel 2.2 is not tested.</P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
137 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
138 <P>If sound clicks when playing from CD-ROM, turn on IRQ unmasking, e.g. |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
139 <CODE>hdparm -u1 /dev/cdrom</CODE> (<CODE>man hdparm</CODE>). This is |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
140 generally beneficial and described more detailed in the <A |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
141 HREF="cd-dvd.html#drives">CD-ROM section</A>.</P> |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
142 |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
143 <P>Sharing your sound card with another application like XMMS is <B>strongly |
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
144 discouraged</B>! If the other sound application is using ESD, start |
7814 | 145 MPlayer with the <CODE>-vo sdl:esd</CODE> option to combine both |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
146 sound streams. In fact, the option <CODE>-vo sdl:esd</CODE> could be used |
7814 | 147 with ESD even when playing MPlayer alone.</P> |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
148 |
7814 | 149 <P>Feedback to this document is welcome. Please tell us how MPlayer |
7099
0b70f3dc34eb
Applied patch by Andras Mohari <mayday@varoshaza.nagyatad.hu>, with some
diego
parents:
7076
diff
changeset
|
150 and your sound card(s) worked together.</P> |
1612 | 151 |
3671 | 152 |
8177 | 153 <H4><A NAME="plugins">2.3.2.3 Audio plugins</A></H4> |
3671 | 154 |
7814 | 155 <P>MPlayer has support for audio plugins. Audio plugins can be used for |
4508 | 156 changing the properties of the audio data before the sound reaches the sound |
5765 | 157 card. They are enabled using the <CODE>-aop</CODE> switch which takes a |
158 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument | |
159 is required and determines which plugins should be used and in which order they | |
6974 | 160 should be executed. Example:</P> |
4508 | 161 |
162 <P> <CODE>mplayer media.avi -aop list=resample,format</CODE></P> | |
163 | |
164 <P>would run the sound through the resampling plugin followed by the format | |
6974 | 165 plugin.</P> |
4508 | 166 |
5765 | 167 <P>The plugins can also have switches that change their behavior. These |
4508 | 168 switches are explained in detail in the sections below. A plugin will execute |
5765 | 169 using default settings if its switches are omitted. Here is an example of how |
6974 | 170 to use plugins in combination with plugin specific switches:</P> |
4508 | 171 |
172 <P> <CODE>mplayer media.avi -aop | |
6974 | 173 list=resample,format:fout=44100:format=0x8</CODE></P> |
4508 | 174 |
175 <P>would set the output frequency of the resample plugin to 44100Hz and the | |
6974 | 176 output format of the format plugin to AFMT_U8.</P> |
4508 | 177 |
7814 | 178 <P>Currently audio plugins can not be used in MEncoder.</P> |
4508 | 179 |
180 | |
8177 | 181 <H5><A NAME="resample">2.3.2.3.1 Up/Downsampling</A></H5> |
3671 | 182 |
7814 | 183 <P>MPlayer fully supports up/downsampling of the sound. This plugin can |
5765 | 184 be used if you have a fixed frequency sound card or if you are |
185 stuck with an old sound card that is only capable of max 44.1kHz. | |
8260 | 186 Whether is usage of this plugin is neccessary or not, is <B>autodetected</B>. |
187 This plugin has one switch: | |
4508 | 188 <CODE>fout</CODE> which is used for setting the desired output sample |
5765 | 189 frequency. It defaults to 48kHz, and is given in |
6974 | 190 <Hz>.</P> |
3671 | 191 |
5765 | 192 <P>Usage:<BR> |
6974 | 193 <CODE>mplayer media.avi -aop list=resample:fout=<required |
3671 | 194 frequency in Hz, like 44100></CODE></P> |
195 | |
5765 | 196 <P>Note that the output frequency should not be scaled up from the default value. |
197 Scaling up will cause the audio and video streams to be played in slow motion | |
198 in addition to audio distortion.</P> | |
3671 | 199 |
6974 | 200 |
8177 | 201 <H5><A NAME="surround_decoding">2.3.2.3.2 Surround Sound decoding</A></H5> |
3931 | 202 |
7814 | 203 <P>MPlayer has an audio plugin that can decode matrix encoded |
6974 | 204 surround sound. Dolby Surround is an example of a matrix encoded format. |
205 Many files with 2 channel audio actually contain matrixed surround sound. | |
206 To use this feature you need a sound card supporting at least 4 channels.</P> | |
3931 | 207 |
5765 | 208 <P>Usage:<BR> |
6974 | 209 <CODE>mplayer media.avi -aop list=surround</CODE></P> |
3931 | 210 |
4508 | 211 |
8177 | 212 <H5><A NAME="format">2.3.2.3.3 Sample format converter</A></H5> |
4508 | 213 |
5765 | 214 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type, |
215 this plugin can | |
4508 | 216 be used to change the format to one which your sound card can understand. It |
5765 | 217 has one switch, <CODE>format</CODE>, which can be set to one of the numbers |
218 found in <CODE>libao2/afmt.h</CODE>. This plugin is hardly ever needed and is | |
219 intended for advanced users. Keep in mind that this plugin only changes the | |
6974 | 220 sample format and not the sample frequency or the number of channels.</P> |
4508 | 221 |
5765 | 222 <P>Usage:<BR> |
4508 | 223 <CODE>mplayer media.avi -aop |
6974 | 224 list=format:format=<required output format></CODE></P> |
4508 | 225 |
226 | |
8177 | 227 <H5><A NAME="delay">2.3.2.3.4 Delay</A></H5> |
4508 | 228 |
229 <P>This plugin delays the sound and is intended as an example of how to develop | |
5765 | 230 new plugins. It can not be used for anything useful from a users perspective |
4508 | 231 and is mentioned here for the sake of completeness only. Do not use this |
232 plugin unless you are a developer.</P> | |
233 | |
7047 | 234 |
8177 | 235 <H5><A NAME="volume">2.3.2.3.5 Software volume control</A></H5> |
4913 | 236 |
237 <P>This plugin is a software replacement for the volume control, and | |
5765 | 238 can be used on machines with a broken mixer device. It can also be |
7814 | 239 used if one wants to change the output volume of MPlayer |
4913 | 240 without changing the PCM volume setting in the mixer. It has one |
241 switch <CODE>volume</CODE> that is used for setting the initial | |
242 sound level. The initial sound level can be set to values between 0 | |
5099 | 243 and 255 and defaults to 101 which equals 0dB amplification. Use this |
244 plugin with caution since it can reduce the signal to noise ratio of | |
245 the sound. In most cases it is best to set the level for the PCM | |
246 sound to max, leave this plugin out and control the output level to | |
5765 | 247 your speakers with the master volume control of the mixer. If there is an |
5099 | 248 external amplifier connected to the computer (this is almost always |
249 the case), the noise level can be minimized by adjusting the master | |
250 level and the volume knob on the amplifier until the hissing noise | |
6974 | 251 in the background is gone.</P> |
4913 | 252 |
5765 | 253 <P>Usage:<BR> |
4913 | 254 <CODE>mplayer media.avi -aop |
6974 | 255 list=volume:volume=<0-255></CODE></P> |
4913 | 256 |
5765 | 257 <P>This plugin also has compressor or "soft-clipping" capabilities. |
5099 | 258 Compression can be used if the dynamic range of the sound is very |
259 high or if the dynamic range of the loudspeakers is very | |
5765 | 260 low. Be aware that this feature creates distortion and should be |
6974 | 261 considered a last resort.</P> |
5099 | 262 |
5765 | 263 <P>Usage:<BR> |
5099 | 264 <CODE>mplayer media.avi -aop |
6974 | 265 list=volume:softclip</CODE></P> |
4928
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
266 |
5109 | 267 |
8177 | 268 <H5><A NAME="extrastereo">2.3.2.3.6 Extrastereo</A></H5> |
4928
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
269 |
5765 | 270 <P>This plugin (linearly) increases the difference between left and right |
271 channels (like the XMMS extrastereo plugin) which gives some sort of "live" | |
6974 | 272 effect to playback.</P> |
4928
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
273 |
5765 | 274 <P>Usage:<BR> |
4928
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
275 <CODE>mplayer media.avi -aop list=extrastereo</CODE><BR> |
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
276 <CODE>mplayer media.avi -aop list=extrastereo:mul=3.45</CODE></P> |
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
277 |
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
278 <P>The default coefficient (<CODE>mul</CODE>) is a float number that defaults |
5765 | 279 to 2.5. If you set it to 0.0, you will have mono sound (average of both |
6272 | 280 channels). If you set it to 1.0, sound will be unchanged, if you set it to |
281 -1.0, left and right channels will be swapped.</P> | |
4928
ecf9f93dd9b6
added documentation for "extrastereo" plugin (patch by pl)
gabucino
parents:
4913
diff
changeset
|
282 |
5109 | 283 |
8177 | 284 <H5><A NAME="normalizer">2.3.2.3.7 Volume normalizer</A></H5> |
5109 | 285 |
5765 | 286 <P>This plugin maximizes the volume without distorting the sound.</P> |
5109 | 287 |
5765 | 288 <P>Usage:<BR> |
5109 | 289 <CODE>mplayer media.avi -aop list=volnorm</CODE><BR> |
290 | |
5721 | 291 |
1612 | 292 </BODY> |
293 </HTML> |