annotate DOCS/pl/sound.html @ 10084:04dacb55d55d

timecode scale value must be initialized before the duration is found. API change of libmatroska 0.4.2. Will not work with 0.4.1!
author mosu
date Fri, 09 May 2003 14:21:05 +0000
parents a342705a2ce9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
2 <HTML>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
3
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
4 <HEAD>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
5 <TITLE>Sound - MPlayer - Odtwarzacz filmów</TITLE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
6 <LINK REL="stylesheet" TYPE="text/css" HREF="../default.css">
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
7 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
8 </HEAD>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
9
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
10 <BODY>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
11
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
12
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
13 <H3><A NAME="audio">2.3.2 Urządzenia wyjścia: dźwięk</A></H3>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
14
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
15 <H4><A NAME="sync">2.3.2.1 Synchronizacja audio/video</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
16
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
17 <P>Interfejs do dźwięku w MPlayerze nazywa się <I>libao2</I>. Aktualnie
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
18 zawiera następujące sterowniki:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
19
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
20 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
21 <DT>oss</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
22 <DD>sterownik OSS (ioctl) (obsługuje sprzętowe AC3)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
23
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
24 <DT>sdl</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
25 <DD>sterownik SDL (obsługuje demony dźwięku takie jak <B>ESD</B> i <B>ARTS</B>)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
26
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
27 <DT>nas</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
28 <DD>sterownik NAS (Network Audio System)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
29
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
30 <DT>alsa5</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
31 <DD>natywny sterownik ALSA 0.5</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
32
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
33 <DT>alsa9</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
34 <DD>natywny sterownik ALSA 0.9 (obsługuje sprzętowe AC3)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
35
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
36 <DT>sun</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
37 <DD>sterownik dźwięku SUN (<CODE>/dev/audio</CODE>) dla użytkowników BSD i Solaris8</DD>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
38
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
39 <DT>arts</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
40 <DD>natywny sterownik ARTS (głównie dla użytkowników KDE)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
41
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
42 <DT>esd</DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
43 <DD>natywny sterownik ESD (głównie dla użytkowników GNOME)</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
44 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
45
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
46 <P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
47 Sterowniki kart dźwiękowych w Linuxie mają problemy z kompatybilnością.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
48 Wynika to z tego że MPlayer polega na wbudowanych właściwościach <EM>prawidłowo</EM>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
49 napisanych sterowników które pozwalają utrzymać prawidłową synchronizację audio/video.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
50 Niestety, niektórzy autorzy sterowników nie wysilają się z zaprogramowaniem tych właściwości,
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
51 gdyż nie są wymagane do odgrywania plików MP3. </P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
52
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
53 <P>Inne odgrywarki multimedialne jak <A HREF="http://avifile.sourceforge.net">aviplay</A>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
54 czy <A HREF="http://xine.sourceforge.net">xine</A> działają
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
55 prosto-z-pudełka z tymi sterownikami, prawdopodobnie dlatego że używają one
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
56 'prostych' metod korzystających z wewnętrznego licznika.
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
57 Jak wskazują doświadczenia metody te nie są tak wydajne jak te używane przez MPlayera.</P>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
58
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
59 <P>Używanie MPlayera z prawidłowo napisanymi sterownikami audio, nigdy nie spowoduje
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
60 desynchronizacji A/V związanej z dźwiękiem, z wyjątkiem wyjątkowo źle stworzonych plików
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
61 (zajrzyj do dokumentacji man by dowiedzieć się jak sobie z nimi poradzić).</P>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
62
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
63 <P>Jeśli jesteś zmuszony używać złego sterownika, spróbuj opcji <CODE>-autosync</CODE>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
64 powinna ona rozwiązać Twoje problemy. Zajrzyj do manuala po dokładniejsze informacje.</P>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
65
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
66 <P>Informacje:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
67
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
68 <UL>
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
69 <LI>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
70 Jeśli używasz sterownika OSS, najpierw spróbuj opcji <CODE>-ao oss</CODE>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
71 (to jest ustawienie standardowe). Jeśli napotkasz problemy, trzaski, wstrzymania dźwięku
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
72 lub cokolwiek niespotykanego, spróbuj <CODE>-ao sdl</CODE> (UWAGA: bedziesz musial mieć
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
73 zainstalowane biblioteki i nagłówki SDL). Sterownik SDL pomaga w wielu przypadkach, i
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
74 dodatkowo obsługuje ESD (GNOME) i ARTS (KDE).</LI>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
75 <LI>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
76 Jeśli używasz ALSA w wersji 0.5, to niemal zawsze musisz używać <CODE>-ao alsa5</CODE> , gdyż
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
77 ALSA 0.5 ma błędną emulację OSS, i potrafi <B>wywrócić MPlayera</B> z komunikatem takim jak ten:
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
78 <CODE>DEMUXER: Too many (945 in 8390980 bytes) video packets in the buffer!</CODE></LI>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
79 <LI>Pod Solarisem, użyj sterownika dźwięku SUN, używając opcji <CODE>-ao sun</CODE>,
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
80 inaczej ani obraz ani dźwięk nie będzie działał.</LI>
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
81 <LI>Jeśli dźwięk klika w czasie grania z CD-ROMu, włącz 'IRQ unmasking', na przykład:
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
82 <CODE>hdparm -u1 /dev/cdrom</CODE> (<CODE>man hdparm</CODE>).
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
83 Ta opcja generalnie pomaga, i jest dokładniej opisana w <A HREF="cd-dvd.html#drives">sekcji o CD-ROM</A>.</LI>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
84 </UL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
85
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
86
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
87 <H4><A NAME="experiences">2.3.2.2 Doświadczenia z kartami dźwiękowymi, zalecenia</A></H4>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
88
9780
a342705a2ce9 Sound translation, second batch.
eyck
parents: 9779
diff changeset
89 <P>Na Linuxie zalecane jest jądro 2.4.x. Jądro 2.2 nie było testowane.</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
90
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
91 <P>Linux sound drivers are primarily provided by the free version of OSS. These
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
92 drivers have been superceded by <A HREF="http://www.alsa-project.org">ALSA</A>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
93 (Advanced Linux Sound Architecture) in the 2.5 development series. If your
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
94 distribution does not already use ALSA you may wish to try their drivers if
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
95 you experience sound problems. ALSA drivers are generally superior to OSS in
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
96 compatibility, performance and features. But some sound cards are only
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
97 supported by the commercial OSS drivers from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
98 <A HREF="http://www.opensound.com/">4Front Technologies</A>. They also support
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
99 several non-Linux systems.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
100
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
101 <TABLE BORDER="1" WIDTH="100%">
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
102
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
103 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
104 <TH ROWSPAN="2"><B>SOUND CARD</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
105 <TH COLSPAN="4"><B>DRIVER</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
106 <TH ROWSPAN="2"><B>Max kHz</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
107 <TH ROWSPAN="2"><B>Max Channels</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
108 <TH ROWSPAN="2"><B>Max Opens<FONT SIZE="-2"><A HREF=#note1>[1]</A></FONT></B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
109 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
110
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
111 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
112 <TH><B>OSS/Free</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
113 <TH><B>ALSA</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
114 <TH><B>OSS/Pro</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
115 <TH><B>other</B></TH>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
116 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
117
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
118 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
119 <TD><B>VIA onboard (686/A/B, 8233, 8235)</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
120 <TD><A HREF="http://sourceforge.net/project/showfiles.php?group_id=3242&amp;release_id=59602">via82cxxx_audio</A></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
121 <TD>snd-via82xx</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
122 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
123 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
124 <TD>4-48 kHz or 48 kHz only, depending on the chipset</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
125 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
126 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
127 </TR>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
128
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
129 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
130 <TD><B>Aureal Vortex 2</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
131 <TD>none</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
132 <TD>none</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
133 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
134 <TD><A HREF="http://aureal.sourceforge.net">Linux Aureal Drivers</A><BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
135 <A HREF="http://makacs.poliod.hu/~pontscho/aureal/au88xx-1.1.3.tar.bz2">buffer size increased to 32k</A></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
136 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
137 <TD>4.1</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
138 <TD>5+</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
139 </TR>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
140
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
141 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
142 <TD><B>SB Live!</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
143 <TD>Analog OK, SP/DIF not working</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
144 <TD>Both OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
145 <TD>Both OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
146 <TD><A HREF="http://opensource.creative.com">Creative's OSS driver (SP/DIF support)</A></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
147 <TD>192</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
148 <TD>4.0/5.1</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
149 <TD>32</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
150 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
151
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
152 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
153 <TD><B>SB 128 PCI (es1371)</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
154 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
155 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
156 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
157 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
158 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
159 <TD>stereo</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
160 <TD>2</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
161 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
162
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
163 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
164 <TD><B>SB AWE 64</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
165 <TD>max 44kHz</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
166 <TD>48kHz sounds bad</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
167 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
168 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
169 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
170 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
171 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
172 </TR>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
173
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
174 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
175 <TD><B>GUS PnP</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
176 <TD>none</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
177 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
178 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
179 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
180 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
181 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
182 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
183 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
184
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
185 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
186 <TD><B>Gravis UltraSound ACE</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
187 <TD>not OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
188 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
189 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
190 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
191 <TD>44</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
192 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
193 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
194 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
195
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
196 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
197 <TD><B>Gravis UltraSound MAX</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
198 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
199 <TD>OK (?)</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
200 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
201 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
202 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
203 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
204 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
205 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
206
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
207 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
208 <TD><B>ESS 688</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
209 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
210 <TD>OK (?)</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
211 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
212 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
213 <TD>48</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
214 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
215 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
216 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
217
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
218 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
219 <TD><B>C-Media cards (which ones?)</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
220 <TD>not OK (hissing) (?)</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
221 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
222 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
223 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
224 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
225 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
226 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
227 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
228
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
229 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
230 <TD><B>Yamaha cards (*ymf*)</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
231 <TD>not OK (?) (maybe <CODE>-ao sdl</CODE>)</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
232 <TD>OK only with ALSA 0.5 with OSS emulation <B>AND</B>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
233 <CODE>-ao sdl</CODE> (!) (?)</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
234 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
235 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
236 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
237 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
238 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
239 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
240
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
241 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
242 <TD><B>Cards with envy24 chips (like Terratec EWS88MT)</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
243 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
244 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
245 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
246 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
247 <TD>?</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
248 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
249 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
250 </TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
251
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
252 <TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
253 <TD><B>PC Speaker or DAC</B></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
254 <TD>OK</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
255 <TD>none</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
256 <TD>&nbsp;</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
257 <TD><A HREF="http://www.geocities.com/stssppnn/pcsp.html">Linux PC speaker OSS driver</a></TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
258 <TD>The driver emulates 44.1, maybe more.</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
259 <TD>mono</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
260 <TD>1</TD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
261 </TR>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
262
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
263 </TABLE>
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
264
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
265 <P><A NAME="note1"><B>[1]</B></A>: the number of applications that are able to use the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
266 device <I>at the same time</I>.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
267
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
268 <P>Feedback to this document is welcome. Please tell us how MPlayer
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
269 and your sound card(s) worked together.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
270
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
271
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
272 <H4><A NAME="af">2.3.2.3 Audio filters</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
273
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
274 <P>The old audio plugins have been superseded by a new audio filter layer. Audio
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
275 filters are used for changing the properties of the audio data before the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
276 sound reaches the sound card. The activation and deactivation of the filters
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
277 is normally automated but can be overridden. The filters are activated when
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
278 the properties of the audio data differ from those required by the sound card
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
279 and deactivated if unnecessary. The <CODE>-af filter1,filter2,...</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
280 option is used to override the automatic activation of filters or to insert
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
281 filters that are not automatically inserted. The filters will be executed as
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
282 they appear in the comma separated list.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
283
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
284 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
285 &nbsp;&nbsp;<CODE>mplayer -af resample,pan movie.avi </CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
286
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
287 <P>would run the sound through the resampling filter followed by the pan filter.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
288 Observe that the list must not contain any spaces, else it will fail.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
289
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
290 <P>The filters often have options that change their behavior. These options
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
291 are explained in detail in the sections below. A filter will execute using
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
292 default settings if its options are omitted. Here is an example of how to use
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
293 filters in combination with filter specific options:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
294
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
295 <P>&nbsp;&nbsp;<CODE>mplayer -af resample=11025,pan=1:0.5:0.5 -channels 1
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
296 -srate 11025 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
297
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
298 <P>would set the output frequency of the resample filter to 11025Hz and downmix
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
299 the audio to 1 channel using the pan filter.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
300
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
301 <P>The overall execution of the filter layer is controlled using the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
302 <CODE>-af-adv</CODE> option. This option has two suboptions:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
303
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
304 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
305 <DT><CODE>force</CODE><DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
306 <DD>is a Bit field that controls how the filters are inserted and what
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
307 speed/accuracy optimizations they use:
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
308 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
309 <DT><CODE>0</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
310 <DD>Use automatic insertion of filters and optimize according to CPU
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
311 speed.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
312 <DT><CODE>1</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
313 <DD>Use automatic insertion of filters and optimize for the highest
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
314 speed.<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
315 <EM>Warning:</EM> Some features in the audio filters may silently fail,
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
316 and the sound quality may drop.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
317 <DT><CODE>2</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
318 <DD>Use automatic insertion of filters and optimize for quality.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
319 <DT><CODE>3</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
320 <DD>Use no automatic insertion of filters and no optimization.<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
321 <I>Warning:</I> It may be possible to crash MPlayer using this
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
322 setting.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
323 <DT><CODE>4</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
324 <DD>Use automatic insertion of filters according to 0 above, but use
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
325 floating point processing when possible.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
326 <DT><CODE>5</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
327 <DD>Use automatic insertion of filters according to 1 above, but use
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
328 floating point processing when possible.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
329 <DT><CODE>6</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
330 <DD>Use automatic insertion of filters according to 2 above, but use
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
331 floating point processing when possible.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
332 <DT><CODE>7</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
333 <DD>Use no automatic insertion of filters according to 3 above, and use
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
334 floating point processing when possible.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
335 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
336 </DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
337
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
338 <DT><CODE>list</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
339 <DD>is an alias for the -af option.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
340 </DL>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
341
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
342 <P>The filter layer is also affected by the following generic options:
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
343
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
344 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
345 <DT><CODE>-v</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
346 <DD>Increases the verbosity level and makes most filters print out extra
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
347 status messages.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
348 <DT><CODE>-channels</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
349 <DD>This option sets the number of output channels you would like your
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
350 sound card to use.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
351 It also affects the number of channels that are being decoded from the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
352 media. If the media contains less channels than requested the channels
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
353 filter (see below) will automatically be inserted. The routing will be the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
354 default routing for the channels filter.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
355 <DT><CODE>-srate</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
356 <DD>This option selects the sample rate you would like your sound card to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
357 use (of course the cards have limits on this). If the sample
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
358 frequency of your sound card is different from that of the current media,
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
359 the resample filter (see below) will be inserted into the audio filter layer
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
360 to compensate for the difference.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
361 <DT><CODE>-format</CODE><DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
362 <DD>This option sets the sample format between the audio filter layer and the sound
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
363 card. If the requested sample format of your sound card is different from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
364 that of the current media, a format filter (see below) will be inserted to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
365 rectify the difference.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
366 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
367
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
368
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
369 <H4><A NAME="af_resample">2.3.2.3.1 Up/Down-sampling</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
370
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
371 <P>MPlayer fully supports sound up/down-sampling through the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
372 <CODE>resample</CODE> filter. It can be used if you
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
373 have a fixed frequency sound card or if you are stuck with an old sound card
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
374 that is only capable of max 44.1kHz. This filter is automatically enabled if
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
375 it is necessary, but it can also be explicitly enabled on the command line. It
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
376 has three options:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
377
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
378 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
379 <DT><CODE>srate &lt;8000-192000&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
380 <DD>is an integer used for setting the output sample
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
381 frequency in Hz. The valid range for this parameter is 8kHz to 192kHz. If
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
382 the input and output sample frequency are the same or if this parameter is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
383 omitted the filter is automatically unloaded. A high sample frequency
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
384 normally improves the audio quality, especially when used in combination
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
385 with other filters.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
386
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
387 <DT><CODE>sloppy</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
388 <DD>is an optional binary parameter that allows the output frequency to differ
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
389 slightly from the frequency given by <CODE>srate</CODE>. This option can be
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
390 used if the startup of the playback is extremely slow. It is enabled by
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
391 default.</DD>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
392
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
393 <DT><CODE>type &lt;0-2&gt;</CODE><DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
394 <DD>is an optional integer between <CODE>0</CODE> and <CODE>2</CODE> that
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
395 selects which resampling method to use. Here <CODE>0</CODE> represents
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
396 linear interpolation as resampling method, <CODE>1</CODE> represents
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
397 resampling using a poly-phase filter-bank and integer processing and
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
398 <CODE>2</CODE> represents resampling using a poly-phase filter-bank and
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
399 floating point processing. Linear interpolation is extremely fast, but
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
400 suffers from poor sound quality especially when used for up-sampling. The
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
401 best quality is given by <CODE>2</CODE> but this method also suffers from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
402 the highest CPU load.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
403 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
404
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
405 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
406 &nbsp;&nbsp;<CODE>mplayer -af resample=44100:0:0</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
407
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
408 <P>would set the output frequency of the resample filter to 44100Hz using exact
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
409 output frequency scaling and linear interpolation.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
410
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
411
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
412 <H4><A NAME="af_channels">2.3.2.3.2 Changing the number of channels</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
413
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
414 <P>The <CODE>channels</CODE> filter can be used for adding and removing
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
415 channels, it can also be used for routing or copying channels. It is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
416 automatically enabled when the output from the audio filter layer differs from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
417 the input layer or when it is requested by another filter. This filter unloads
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
418 itself if not needed. The number of options is dynamic:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
419
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
420 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
421 <DT><CODE>nch &lt;1-6&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
422 <DD>is an integer between <CODE>1</CODE> and <CODE>6</CODE> that is used for
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
423 setting the number of output channels. This option is required, leaving it
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
424 empty results in a runtime error.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
425
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
426 <DT><CODE>nr &lt;1-6&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
427 <DD>is an integer between <CODE>1</CODE> and <CODE>6</CODE> that is used for
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
428 specifying the number of routes. This parameter is optional. If it is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
429 omitted the default routing is used.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
430
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
431 <DT><CODE>from1:to1:from2:to2:from3:to3...</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
432 <DD>are pairs of numbers between <CODE>0</CODE> and <CODE>5</CODE> that define
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
433 where each channel should be routed.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
434 </DL>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
435
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
436 <P>If only <CODE>nch</CODE> is given the default routing is used, it works as
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
437 follows: If the number of output channels is bigger than the number of input
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
438 channels empty channels are inserted (except mixing from mono to stereo, then
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
439 the mono channel is repeated in both of the output channels). If the number of
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
440 output channels is smaller than the number of input channels the exceeding
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
441 channels are truncated.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
442
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
443 <P>Example 1:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
444 &nbsp;&nbsp;<CODE>mplayer -af channels=4:4:0:1:1:0:2:2:3:3 media.avi </CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
445
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
446 <P>would change the number of channels to 4 and set up 4 routes that swap
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
447 channel 0 and channel 1 and leave channel 2 and 3 intact. Observe that if
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
448 media containing two channels was played back, channels 2 and 3 would contain
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
449 silence but 0 and 1 would still be swapped.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
450
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
451 <P>Example 2:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
452 &nbsp;&nbsp;<CODE>mplayer -af channels=6:4:0:0:0:1:0:2:0:3 media.avi </CODE></P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
453
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
454 <P>would change the number of channels to 6 and set up 4 routes that copy
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
455 channel 0 to channels 0 to 3. Channel 4 and 5 will contain silence.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
456
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
457
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
458 <H4><A NAME="af_format">2.3.2.3.3 Sample format converter</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
459
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
460 <P>The <CODE>format</CODE> filter converts between different sample formats. It
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
461 is automatically enabled when needed by the sound card or another filter.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
462
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
463 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
464 <DT><CODE>bps &lt;number&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
465 <DD>can be <CODE>1</CODE>, <CODE>2</CODE> or <CODE>4</CODE> and denotes the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
466 number of bytes per sample. This option is required, leaving it empty
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
467 results in a runtime error.</DD>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
468
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
469 <DT><CODE>f &lt;format&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
470 <DD>is a text string describing the sample format. The string is a
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
471 concatenated mix of: <CODE>alaw</CODE>, <CODE>mulaw</CODE> or
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
472 <CODE>imaadpcm</CODE>, <CODE>float</CODE> or <CODE>int</CODE>,
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
473 <CODE>unsigned</CODE> or <CODE>signed</CODE>, <CODE>le</CODE> or
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
474 <CODE>be</CODE> (little or big endian). This option is required, leaving it
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
475 empty results in a runtime error.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
476 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
477
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
478 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
479 &nbsp;&nbsp;<CODE>mplayer -af format=4:float media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
480
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
481 <P>would set the output format to 4 bytes per sample floating point
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
482 data.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
483
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
484
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
485 <H4><A NAME="af_delay">2.3.2.3.4 Delay</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
486
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
487 <P>The <CODE>delay</CODE> filter delays the sound to the loudspeakers such that
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
488 the sound from the different channels arrives at the listening position
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
489 simultaneously.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
490 It is only useful if you have more than 2 loudspeakers. This filter has a
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
491 variable number of parameters:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
492
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
493 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
494 <DT><CODE>d1:d2:d3...</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
495 <DD>are floating point numbers representing the delays in ms that should be
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
496 imposed on the different channels. The minimum delay is 0ms and the maximum
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
497 is 1000ms.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
498 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
499
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
500 <P>To calculate the required delay for the different channels do as follows:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
501
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
502 <OL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
503 <LI>Measure the distance to the loudspeakers in meters in relation to your
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
504 listening position, giving you the distances s1 to s5 (for a 5.1 system).
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
505 There is no point in compensating for the sub-woofer (you will not hear the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
506 difference anyway).</LI>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
507 <LI>Subtract the distances s1 to s5 from the maximum distance i.e.<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
508 s[i] = max(s) - s[i]; i = 1...5</LI>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
509 <LI>Calculated the required delays in ms as<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
510 d[i] = 1000*s[i]/342; i = 1...5 </LI>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
511 </OL>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
512
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
513 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
514 &nbsp;&nbsp;<CODE>mplayer -af delay=10.5:10.5:0:0:7:0 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
515
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
516 <P>would delay front left and right by 10.5ms, the two rear channels and the sub
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
517 by 0ms and the center channel by 7ms.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
518
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
519
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
520 <H4><A NAME="af_volume">2.3.2.3.5 Software volume control</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
521
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
522 <P>Software volume control is implemented by the <CODE>volume</CODE> audio
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
523 filter. Use this filter with caution since
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
524 it can reduce the signal to noise ratio of the sound. In most cases it is best
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
525 to set the level for the PCM sound to max, leave this filter out and control
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
526 the output level to your speakers with the master volume control of the mixer.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
527 In case your sound card has a digital PCM mixer instead of an analog one, and
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
528 you hear distortion, use the MASTER mixer instead.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
529 If there is an external amplifier connected to the computer (this is almost
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
530 always the case), the noise level can be minimized by adjusting the master
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
531 level and the volume knob on the amplifier until the hissing noise in the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
532 background is gone. This filter has two options:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
533
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
534 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
535 <DT><CODE>v &lt;-200 - +60&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
536 <DD>is a floating point number between <CODE>-200</CODE> and <CODE>+60</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
537 which represents the volume level in dB. The default level is 0dB.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
538
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
539 <DT><CODE>c</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
540 <DD>is a binary control that turns soft clipping on and off. Soft-clipping can
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
541 make the sound more smooth if very high volume levels are used. Enable this
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
542 option if the dynamic range of the loudspeakers is very low. Be aware that
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
543 this feature creates distortion and should be considered a last resort.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
544 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
545
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
546 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
547 &nbsp;&nbsp;<CODE>mplayer -af volume=10.1:0 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
548
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
549 <P>would amplify the sound by 10.1dB and hard-clip if the sound level is too
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
550 high.</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
551
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
552 <P>This filter has a second feature: It measures the overall maximum sound level
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
553 and prints out that level when MPlayer exits. This volume estimate can be used
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
554 for setting the sound level in MEncoder such that the maximum dynamic range is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
555 utilized.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
556
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
557
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
558 <H4><A NAME="af_equalizer">2.3.2.3.6 Equalizer</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
559
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
560 <P>The <CODE>equalizer</CODE> filter represents a 10 octave band graphic
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
561 equalizer, implemented using 10 IIR
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
562 band pass filters. This means that it works regardless of what type of audio
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
563 is being played back. The center frequencies for the 10 bands are:</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
564
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
565 <TABLE BORDER="0" WIDTH="100%">
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
566 <TR><TD>Band No.</TD><TD>Center frequency</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
567 <TR><TD>0</TD><TD>31.25 Hz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
568 <TR><TD>1</TD><TD>62.50 Hz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
569 <TR><TD>2</TD><TD>125.0 Hz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
570 <TR><TD>3</TD><TD>250.0 Hz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
571 <TR><TD>4</TD><TD>500.0 Hz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
572 <TR><TD>5</TD><TD>1.000 kHz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
573 <TR><TD>6</TD><TD>2.000 kHz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
574 <TR><TD>7</TD><TD>4.000 kHz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
575 <TR><TD>8</TD><TD>8.000 kHz</TD></TR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
576 <TR><TD>9</TD><TD>16.00 kHz</TD></TR>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
577 </TABLE>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
578
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
579 <P>If the sample rate of the sound being played back is lower than the center
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
580 frequency for a frequency band, then that band will be disabled. A known bug
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
581 with this filter is that the characteristics for the uppermost band are not
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
582 completely symmetric if the sample rate is close to the center frequency of
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
583 that band. This problem can be worked around by up-sampling the sound using
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
584 the resample filter before it reaches this filter. </P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
585
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
586 <P>This filter has 10 parameters:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
587
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
588 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
589 <DT><CODE>g1:g2:g3...g10</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
590 <DD>are floating point numbers between <CODE>-12</CODE> and <CODE>+12</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
591 representing the gain in dB for each frequency band.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
592 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
593
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
594 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
595 &nbsp;&nbsp;<CODE>mplayer -af equalizer=11:11:10:5:0:-12:0:5:12:12 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
596
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
597 <P>would amplify the sound in the upper and lower frequency region while
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
598 canceling it almost completely around 1kHz.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
599
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
600
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
601 <H4><A NAME="af_panning">2.3.2.3.7 Panning filter</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
602
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
603 <P>Use the <CODE>pan</CODE> filter to mix channels arbitrarily. It is basically
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
604 a combination of the volume control and the channels filter. There are two
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
605 major uses for this filter:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
606
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
607 <OL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
608 <LI>Down-mixing many channels to only a few, stereo to mono for example.</LI>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
609 <LI>Varying the "width" of the center speaker in a surround sound system.</LI>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
610 </OL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
611
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
612 <P>This filter is hard to use, and will require some tinkering before the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
613 desired result is obtained. The number of options for this filter depends on
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
614 the number of output channels:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
615
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
616 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
617 <DT><CODE>nch &lt;1-6&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
618 <DD>is an integer between <CODE>1</CODE> and <CODE>6</CODE> and is used for
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
619 setting the number of output channels. This option is required, leaving it
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
620 empty results in a runtime error.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
621
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
622 <DT><CODE>l00:l01:l02:..l10:l11:l12:...ln0:ln1:ln2:...</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
623 <DD>are floating point values between <CODE>0</CODE> and <CODE>1</CODE>.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
624 <CODE>l[i][j]</CODE> determines how much of input channel j is mixed into
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
625 output channel i.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
626 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
627
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
628 <P>Example 1:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
629 &nbsp;&nbsp;<CODE>mplayer -af pan=1:0.5:0.5 -channels 1 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
630
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
631 <P>would down-mix from stereo to mono.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
632
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
633 <P>Example 2:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
634 &nbsp;&nbsp;<CODE>mplayer -af pan=3:1:0:1:0.5:0.5 -channels 3 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
635
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
636 <P>would give 3 channel output leaving channels 0 and 1 intact, and mix channels
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
637 0 and 1 into output channel 2 (which could be sent to a sub-woofer for
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
638 example).</P>
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
639
3879
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
640
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
641 <H4><A NAME="af_sub">2.3.2.3.8 Sub-woofer</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
642
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
643 <P>The <CODE>sub</CODE> filter adds a sub woofer channel to the audio stream.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
644 The audio data
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
645 used for creating the sub-woofer channel is an average of the sound in channel
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
646 0 and channel 1. The resulting sound is then low-pass filtered by a 4th
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
647 order Butterworth filter with a default cutoff frequency of 60Hz and added to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
648 a separate channel in the audio stream. Warning: Disable this filter when you
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
649 are playing DVDs with Dolby Digital 5.1 sound, otherwise this filter will
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
650 disrupt the sound to the sub-woofer. This filter has two parameters:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
651
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
652 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
653 <DT><CODE>fc &lt;20-300&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
654 <DD>is an optional floating point number used for setting the cutoff frequency
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
655 for the filter in Hz. The valid range is 20Hz to 300Hz. For the best result
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
656 try setting the cutoff frequency as low as possible. This will improve the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
657 stereo or surround sound experience. The default cutoff frequency is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
658 60Hz.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
659
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
660 <DT><CODE>ch &lt;0-5&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
661 <DD>is an optional integer between <CODE>0</CODE> and <CODE>5</CODE> which
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
662 determines the channel number in which to insert the sub-channel audio.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
663 The default is channel number <CODE>5</CODE>. Observe that the number of
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
664 channels will automatically be increased to <CODE>ch</CODE> if
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
665 necessary.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
666 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
667
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
668 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
669 &nbsp;&nbsp;<CODE>mplayer -af sub=100:4 -channels 5 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
670
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
671 <P>would add a sub-woofer channel with a cutoff frequency of 100Hz to output
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
672 channel 4.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
673
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
674 <H4><A NAME="af_surround">2.3.2.3.9 Surround-sound decoder</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
675
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
676 <P>Matrix encoded surround sound can be decoded by the <CODE>surround</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
677 filter. Dolby Surround is
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
678 an example of a matrix encoded format. Many files with 2 channel audio
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
679 actually contain matrixed surround sound. To use this feature you need a sound
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
680 card supporting at least 4 channels. This filter has one parameter:</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
681
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
682 <DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
683 <DT><CODE>d &lt;0-1000&gt;</CODE></DT>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
684 <DD>is an optional floating point number between <CODE>0</CODE> and
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
685 <CODE>1000</CODE> used for setting the delay time in ms for the rear
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
686 speakers. This delay should be set as follows: if d1 is the distance from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
687 the listening position to the front speakers and d2 is the distance from
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
688 the listening position to the rear speakers, then the delay <CODE>d</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
689 should be set to 15ms if d1 &lt;= d2 and to 15 + 5*(d1-d2) if d1 &gt; d2.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
690 The default value for <CODE>d</CODE> is 20ms.</DD>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
691 </DL>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
692
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
693 <P>Example:<BR>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
694 &nbsp;&nbsp;<CODE>mplayer -af surround=15 -channels 4 media.avi</CODE></P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
695
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
696 <P>would add surround sound decoding with 15ms delay for the sound to the rear
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
697 speakers.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
698
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
699
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
700 <H4><A NAME="plugins">2.3.2.4 Audio plugins (deprecated)</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
701
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
702 <H2><STRONG>Note: Audio plugins have been deprecated by audio filters and will be
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
703 removed soon.</STRONG></H2>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
704
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
705 <P>MPlayer has support for audio plugins. Audio plugins can be used to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
706 change the properties of the audio data before it reaches the sound
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
707 card. They are enabled using the <CODE>-aop</CODE> option which takes a
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
708 <CODE>list=plugin1,plugin2,...</CODE> argument. The <CODE>list</CODE> argument
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
709 is required and determines which plugins should be used and in which order they
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
710 should be executed. Example:</P>
3879
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
711
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
712 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample,format</CODE></P>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
713
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
714 <P>would run the sound through the resampling plugin followed by the format
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
715 plugin.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
716
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
717 <P>The plugins can also have options that change their behavior. These
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
718 options are explained in detail in the sections below. A plugin will execute
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
719 using default settings if its options are omitted. Here is an example of how
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
720 to use plugins in combination with plugin specific options:</P>
3879
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
721
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
722 <P>&nbsp;&nbsp;<CODE>mplayer media.avi -aop
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
723 list=resample,format:fout=44100:format=0x8</CODE></P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
724
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
725 <P>would set the output frequency of the resample plugin to 44100Hz and the
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
726 output format of the format plugin to AFMT_U8.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
727
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
728 <P>Currently audio plugins cannot be used in MEncoder.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
729
3879
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
730
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
731 <H4><A NAME="resample">2.3.2.4.1 Up/Downsampling</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
732
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
733 <P>MPlayer fully supports up/downsampling of the sound. This plugin can
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
734 be used if you have a fixed frequency sound card or if you are
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
735 stuck with an old sound card that is only capable of max 44.1kHz.
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
736 MPlayer <EM>autodetects</EM> whether or not usage of this plugin is necessary.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
737 This plugin has one option, <CODE>fout</CODE>, which is used for setting the
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
738 desired output sample frequency. The value is given in Hz, and defaults to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
739 48kHz.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
740
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
741 <P>Usage:<BR>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
742 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=resample:fout=&lt;required
3879
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
743 frequency in Hz, like 44100&gt;</CODE></P>
ed33540a982b "updated documentation.html (and new chapter translated in it),
gabucino
parents: 3523
diff changeset
744
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
745 <P>Note that the output frequency should not be scaled up from the default value.
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
746 Scaling up will cause the audio and video streams to be played in slow motion
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
747 and cause audio distortion.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
748
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
749
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
750 <H4><A NAME="surround_decoding">2.3.2.4.2 Surround Sound decoding</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
751
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
752 <P>MPlayer has an audio plugin that can decode matrix encoded
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
753 surround sound. Dolby Surround is an example of a matrix encoded format.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
754 Many files with 2 channel audio actually contain matrixed surround sound.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
755 To use this feature you need a sound card supporting at least 4 channels.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
756
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
757 <P>Usage:<BR>
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
758 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=surround</CODE></P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
759
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
760
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
761 <H4><A NAME="format">2.3.2.3.3 Sample format converter</A></H4>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
762
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
763 <P>If your sound card driver does not support signed 16bit <CODE>int</CODE> data type,
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
764 this plugin can
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
765 be used to change the format to one which your sound card can understand. It
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
766 has one option, <CODE>format</CODE>, which can be set to one of the numbers
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
767 found in <CODE>libao2/afmt.h</CODE>. This plugin is hardly ever needed and is
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
768 intended for advanced users. Keep in mind that this plugin only changes the
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
769 sample format and not the sample frequency or the number of channels.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
770
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
771 <P>Usage:<BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
772 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
773 list=format:format=&lt;required output format&gt;</CODE></P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
774
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
775
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
776 <H4><A NAME="delay">2.3.2.4.4 Delay</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
777
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
778 <P>This plugin delays the sound and is intended as an example of how to develop
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
779 new plugins. It can not be used for anything useful from a users perspective
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
780 and is mentioned here for the sake of completeness only. Do not use this
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
781 plugin unless you are a developer.</P>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
782
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
783 <P>If you have a file with a consistent A/V sync fault, use the <CODE>+/-</CODE>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
784 keys to adjust timings on-the-fly instead. Usage of the OSD is recommended
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
785 to make this easier.</P>
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
786
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
787
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
788 <H4><A NAME="volume">2.3.2.4.5 Software volume control</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
789
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
790 <P>This plugin is a software replacement for the volume control, and
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
791 can be used on machines with a broken mixer device. It can also be
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
792 used if one wants to change the output volume of MPlayer
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
793 without changing the PCM volume setting in the mixer. It has one
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
794 option <CODE>volume</CODE> that is used for setting the initial
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
795 sound level. The initial sound level can be set to values between 0
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
796 and 255 and defaults to 101 which equals 0dB amplification. Use this
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
797 plugin with caution since it can reduce the signal to noise ratio of
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
798 the sound. In most cases it is best to set the level for the PCM
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
799 sound to max, leave this plugin out and control the output level to
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
800 your speakers with the MASTER volume control of the mixer.
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
801 In case your sound card has a digital PCM mixer instead of an analog one, and
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
802 you hear distortion, use the MASTER mixer instead.
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
803 external amplifier connected to the computer (this is almost always
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
804 the case), the noise level can be minimized by adjusting the master
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
805 level and the volume knob on the amplifier until the hissing noise
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
806 in the background is gone.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
807
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
808 <P>Usage:<BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
809 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
810 list=volume:volume=&lt;0-255&gt;</CODE></P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
811
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
812 <P>This plugin also has compressor or "soft-clipping" capabilities.
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
813 Compression can be used if the dynamic range of the sound is very
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
814 high or if the dynamic range of the loudspeakers is very
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
815 low. Be aware that this feature creates distortion and should be
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
816 considered a last resort.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
817
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
818 <P>Usage:<BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
819 &nbsp;&nbsp;<CODE>mplayer media.avi -aop
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
820 list=volume:softclip</CODE></P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
821
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
822
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
823 <H4><A NAME="extrastereo">2.3.2.4.6 Extrastereo</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
824
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
825 <P>This plugin (linearly) increases the difference between left and right
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
826 channels (like the XMMS extrastereo plugin) which gives some sort of "live"
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
827 effect to playback.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
828
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
829 <P>Usage:<BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
830 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo</CODE><BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
831 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=extrastereo:mul=3.45</CODE></P>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
832
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
833 <P>The default coefficient (<CODE>mul</CODE>) is a float number that defaults
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
834 to 2.5. If you set it to 0.0, you will have mono sound (average of both
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
835 channels). If you set it to 1.0, sound will be unchanged, if you set it to
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
836 -1.0, left and right channels will be swapped.</P>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
837
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
838
9779
6921cceaeacb race with time translating sound.html starts...
eyck
parents: 9332
diff changeset
839 <H4><A NAME="normalizer">2.3.2.4.7 Volume normalizer</A></H4>
6040
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
840
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
841 <P>This plugin maximizes the volume without distorting the sound.</P>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
842
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
843 <P>Usage:<BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
844 &nbsp;&nbsp;<CODE>mplayer media.avi -aop list=volnorm</CODE><BR>
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
845
d5c692754cf2 refresh and charset settings
nell
parents: 3879
diff changeset
846
3523
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
847 </BODY>
dadab20dc2b4 began updated translation by <nell@skrzynka.pl> (work-in-progress)
gabucino
parents:
diff changeset
848 </HTML>