Mercurial > mplayer.hg
annotate DOCS/xml/en/usage.xml @ 31311:9ce59b78dbfd
Remove mp_msg related GUI hacks.
author | reimar |
---|---|
date | Sun, 13 Jun 2010 11:17:26 +0000 |
parents | 4400019c6ae2 |
children | ec2388db0566 |
rev | line source |
---|---|
20535 | 1 <?xml version="1.0" encoding="utf-8"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10755
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <chapter id="usage"> |
4 <title>Usage</title> | |
5 | |
6 <sect1 id="commandline"> | |
7 <title>Command line</title> | |
8 | |
9 <para> | |
25118 | 10 <application>MPlayer</application> utilizes a complex playtree. Options passed |
11 on the command line can apply to all files/URLs or just to specific ones | |
12 depending on their position. For example | |
13 <screen>mplayer -vfm ffmpeg movie1.avi movie2.avi</screen> | |
14 will use FFmpeg decoders for both files, but | |
21521 | 15 <screen> |
25118 | 16 mplayer -vfm ffmpeg <replaceable>movie1.avi</replaceable> <replaceable>movie2.avi</replaceable> -vfm dmo |
21521 | 17 </screen> |
25118 | 18 will play the second file with a DMO decoder. |
9675 | 19 </para> |
20 | |
21 <para> | |
22 You can group filenames/URLs together using <literal>{</literal> and | |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
23 <literal>}</literal>. It is useful with option <option>-loop</option>: |
10643 | 24 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen> |
9675 | 25 The above command will play files in this order: 1, 1, 2, 1, 1, 2, 1, 1, 2. |
26 </para> | |
27 | |
28 <para> | |
29 Playing a file: | |
30 <synopsis> | |
31 <command>mplayer</command><!-- | |
32 --> [<replaceable>options</replaceable>]<!-- | |
33 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable> | |
34 </synopsis> | |
35 </para> | |
36 | |
37 <para> | |
15463 | 38 Another way to play a file: |
39 <synopsis> | |
40 <command>mplayer</command><!-- | |
41 --> [<replaceable>options</replaceable>]<!-- | |
42 --> <replaceable>file:///uri-escaped-path</replaceable> | |
43 </synopsis> | |
44 </para> | |
45 | |
46 <para> | |
9675 | 47 Playing more files: |
48 <synopsis> | |
49 <command>mplayer</command><!-- | |
50 --> [<replaceable>default options</replaceable>]<!-- | |
51 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!-- | |
52 --> [<replaceable>options for filename1</replaceable>]<!-- | |
53 --> <replaceable>filename2</replaceable><!-- | |
54 --> [<replaceable>options for filename2</replaceable>] ... | |
55 </synopsis> | |
56 </para> | |
57 | |
58 <para> | |
59 Playing VCD: | |
60 <synopsis> | |
61 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
10184
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
10144
diff
changeset
|
62 --> vcd://<replaceable>trackno</replaceable><!-- |
9675 | 63 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>] |
64 </synopsis> | |
65 </para> | |
66 | |
67 <para> | |
68 Playing DVD: | |
69 <synopsis> | |
70 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
10184
b6c63ab184a4
Changed a few remaining -dvd and -vcd options to dvd:// and vcd://.
diego
parents:
10144
diff
changeset
|
71 --> dvd://<replaceable>titleno</replaceable><!-- |
9675 | 72 --> [-dvd-device <replaceable>/dev/dvd</replaceable>] |
73 </synopsis> | |
74 </para> | |
75 | |
76 <para> | |
77 Playing from the WWW: | |
78 <synopsis> | |
79 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
80 --> http://<replaceable>site.com/file.asf</replaceable> | |
81 </synopsis> | |
82 (playlists can be used, too) | |
83 </para> | |
84 | |
85 <para> | |
86 Playing from RTSP: | |
87 <synopsis> | |
88 <command>mplayer</command> [<replaceable>options</replaceable>]<!-- | |
89 --> rtsp://<replaceable>server.example.com/streamName</replaceable> | |
90 </synopsis> | |
91 </para> | |
92 | |
93 <para> | |
94 Examples: | |
95 <screen> | |
11713 | 96 mplayer -vo x11 <replaceable>/mnt/Films/Contact/contact2.mpg</replaceable> |
12833 | 97 mplayer vcd://<replaceable>2</replaceable> -cdrom-device <replaceable>/dev/hdc</replaceable> |
11713 | 98 mplayer -afm 3 <replaceable>/mnt/DVDtrailers/alien4.vob</replaceable> |
99 mplayer dvd://<replaceable>1</replaceable> -dvd-device <replaceable>/dev/hdc</replaceable> | |
100 mplayer -abs 65536 -delay -0.4 -nobps <replaceable>~/movies/test.avi</replaceable><!-- | |
9675 | 101 --></screen> |
102 </para> | |
103 </sect1> | |
104 | |
105 | |
21521 | 106 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
107 | |
108 | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
109 <sect1 id="subosd"> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
110 <title>Subtitles and OSD</title> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
111 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
112 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
113 <application>MPlayer</application> can display subtitles along with movie files. |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
114 Currently the following formats are supported: |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
115 <itemizedlist> |
21521 | 116 <listitem><para>VOBsub</para></listitem> |
117 <listitem><para>OGM</para></listitem> | |
118 <listitem><para>CC (closed caption)</para></listitem> | |
119 <listitem><para>MicroDVD</para></listitem> | |
120 <listitem><para>SubRip</para></listitem> | |
121 <listitem><para>SubViewer</para></listitem> | |
122 <listitem><para>Sami</para></listitem> | |
123 <listitem><para>VPlayer</para></listitem> | |
124 <listitem><para>RT</para></listitem> | |
125 <listitem><para>SSA</para></listitem> | |
126 <listitem><para>PJS (Phoenix Japanimation Society)</para></listitem> | |
127 <listitem><para>MPsub</para></listitem> | |
128 <listitem><para>AQTitle</para></listitem> | |
129 <listitem><para> | |
130 <ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink> | |
131 </para></listitem> | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
132 </itemizedlist> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
133 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
134 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
135 <para> |
21521 | 136 <application>MPlayer</application> can dump the previously listed subtitle |
137 formats (<emphasis role="bold">except the three first</emphasis>) into the | |
138 following destination formats, with the given options: | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
139 <itemizedlist> |
21521 | 140 <listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem> |
141 <listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem> | |
142 <listitem><para>MicroDVD: <option>-dumpmicrodvdsub</option></para></listitem> | |
143 <listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem> | |
144 <listitem><para>Sami: <option>-dumpsami</option></para></listitem> | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
145 </itemizedlist> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
146 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
147 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
148 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
149 <application>MEncoder</application> can dump DVD subtitles into |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
150 <link linkend="menc-feat-extractsub">VOBsub</link> format. |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
151 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
152 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
153 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
154 The command line options differ slightly for the different formats: |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
155 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
156 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
157 <formalpara> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
158 <title>VOBsub subtitles</title> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
159 <para> |
21521 | 160 VOBsub subtitles consist of a big (some megabytes) <filename>.SUB</filename> |
161 file, and optional <filename>.IDX</filename> and/or <filename>.IFO</filename> | |
162 files. If you have files like | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
163 <filename><replaceable>sample.sub</replaceable></filename>, |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
164 <filename><replaceable>sample.ifo</replaceable></filename> (optional), |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
165 <filename><replaceable>sample.idx</replaceable></filename> - you have to pass |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
166 <application>MPlayer</application> the <option>-vobsub sample |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
167 [-vobsubid <replaceable>id</replaceable>]</option> options |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
168 (full path optional). The <option>-vobsubid</option> option is like |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
169 <option>-sid</option> for DVDs, you can choose between subtitle tracks |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
170 (languages) with it. In case that <option>-vobsubid</option> is omitted, |
20433 | 171 <application>MPlayer</application> will try to use the languages given by the |
21521 | 172 <option>-slang</option> option and fall back to the |
173 <systemitem>langidx</systemitem> in the <filename>.IDX</filename> file to set | |
174 the subtitle language. If it fails, there will be no subtitles. | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
175 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
176 </formalpara> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
177 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
178 <formalpara> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
179 <title>Other subtitles</title> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
180 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
181 The other formats consist of a single text file containing timing, |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
182 placement and text information. Usage: If you have a file like |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
183 <filename><replaceable>sample.txt</replaceable></filename>, |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
184 you have to pass the option <option>-sub |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
185 <replaceable>sample.txt</replaceable></option> (full path optional). |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
186 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
187 </formalpara> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
188 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
189 <variablelist> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
190 <title>Adjusting subtitle timing and placement:</title> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
191 <varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
192 <term><option>-subdelay <replaceable>sec</replaceable></option></term> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
193 <listitem><para> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
194 Delays subtitles by <option><replaceable>sec</replaceable></option> seconds. |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
195 Can be negative. The value is added to movie's time position counter. |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
196 </para></listitem> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
197 </varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
198 <varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
199 <term><option>-subfps <replaceable>RATE</replaceable></option></term> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
200 <listitem><para> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
201 Specify frame/sec rate of subtitle file (float number). |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
202 </para></listitem> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
203 </varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
204 <varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
205 <term><option>-subpos <replaceable>0-100</replaceable></option></term> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
206 <listitem><para> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
207 Specify the position of subtitles. |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
208 </para></listitem> |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
209 </varlistentry> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
210 </variablelist> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
211 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
212 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
213 If you experience a growing delay between the movie and the subtitles when |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
214 using a MicroDVD subtitle file, most likely the framerate of the movie and |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
215 the subtitle file are different. Please note that the MicroDVD subtitle |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
216 format uses absolute frame numbers for its timing, but there is no fps |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
217 information in it, and therefore the <option>-subfps</option> option should |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
218 be used with this format. If you like to solve this problem permanently, |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
219 you have to manually convert the subtitle file framerate. |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
220 <application>MPlayer</application> can do this |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
221 conversion for you: |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
222 |
21521 | 223 <screen> |
224 mplayer -dumpmicrodvdsub -fps <replaceable>subtitles_fps</replaceable> -subfps <replaceable>avi_fps</replaceable> \ | |
225 -sub <replaceable>subtitle_filename</replaceable> <replaceable>dummy.avi</replaceable> | |
226 </screen> | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
227 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
228 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
229 <para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
230 About DVD subtitles, read the <link linkend="dvd">DVD</link> section. |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
231 </para> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
232 </sect1> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
233 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19709
diff
changeset
|
234 |
21521 | 235 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> |
236 | |
237 | |
9675 | 238 <sect1 id="control"> |
239 <title>Control</title> | |
240 | |
241 <para> | |
242 <application>MPlayer</application> has a fully configurable, command | |
243 driven, control layer which lets you control | |
244 <application>MPlayer</application> with keyboard, mouse, joystick or remote | |
245 control (using LIRC). See the man page for the complete list of keyboard controls. | |
246 </para> | |
247 | |
21521 | 248 <!-- ********** --> |
9675 | 249 |
250 <sect2 id="ctrl-cfg"> | |
251 <title>Controls configuration</title> | |
252 | |
253 <para> | |
254 <application>MPlayer</application> allows you bind any key/button to any | |
11540 | 255 <application>MPlayer</application> command using a simple config file. |
256 The syntax consist of a key name followed by a command. The default config file location is | |
9675 | 257 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden |
258 using the <option>-input <replaceable>conf</replaceable></option> option | |
259 (relative path are relative to <filename>$HOME/.mplayer</filename>). | |
260 </para> | |
261 | |
13717
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
262 <para> |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
263 You can get a full list of supported key names by running |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
264 <command>mplayer -input keylist</command> |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
265 and a full list of available commands by running |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
266 <command>mplayer -input cmdlist</command>. |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
267 </para> |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
268 |
20035 | 269 <example id="input_control_file"> |
9675 | 270 <title>A simple input control file</title> |
271 <programlisting> | |
272 ## | |
273 ## MPlayer input control file | |
274 ## | |
275 | |
276 RIGHT seek +10 | |
277 LEFT seek -10 | |
278 - audio_delay 0.100 | |
279 + audio_delay -0.100 | |
280 q quit | |
281 > pt_step 1 | |
282 < pt_step -1 | |
283 ENTER pt_step 1 1<!-- | |
284 --></programlisting> | |
285 </example> | |
286 </sect2> | |
287 | |
21521 | 288 <!-- ********** --> |
9675 | 289 |
290 <sect2 id="lirc"> | |
291 <title>Control from LIRC</title> | |
292 | |
293 <para> | |
26958 | 294 Linux Infrared Remote Control - use an easy to build home-brewed IR-receiver, |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
295 an (almost) arbitrary remote control and control your Linux box with it! |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
296 More about it on the <ulink url="http://www.lirc.org">LIRC homepage</ulink>. |
9675 | 297 </para> |
298 | |
299 <para> | |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
300 If you have the LIRC package installed, <filename>configure</filename> will |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
301 autodetect it. If everything went fine, <application>MPlayer</application> |
21596 | 302 will print "<systemitem>Setting up LIRC support...</systemitem>" |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
303 on startup. If an error occurs it will tell you. If there is no message about |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
304 LIRC there is no support compiled in. That's it :-) |
9675 | 305 </para> |
306 | |
307 <para> | |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
308 The application name for <application>MPlayer</application> is - surprise - |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
309 <filename>mplayer</filename>. You can use any <application>MPlayer</application> |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
310 commands and even pass more than one command by separating them with |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
311 <literal>\n</literal>. |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
312 Do not forget to enable the repeat flag in <filename>.lircrc</filename> when |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
313 it makes sense (seek, volume, etc). Here is an excerpt from a sample |
9675 | 314 <filename>.lircrc</filename>: |
315 </para> | |
316 | |
317 <programlisting> | |
318 begin | |
319 button = VOLUME_PLUS | |
320 prog = mplayer | |
321 config = volume 1 | |
322 repeat = 1 | |
323 end | |
324 | |
325 begin | |
326 button = VOLUME_MINUS | |
327 prog = mplayer | |
328 config = volume -1 | |
329 repeat = 1 | |
330 end | |
331 | |
332 begin | |
333 button = CD_PLAY | |
334 prog = mplayer | |
335 config = pause | |
336 end | |
337 | |
338 begin | |
339 button = CD_STOP | |
340 prog = mplayer | |
341 config = seek 0 1\npause | |
342 end<!-- | |
343 --></programlisting> | |
344 | |
345 <para> | |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
346 If you do not like the standard location for the lirc-config file |
9675 | 347 (<filename>~/.lircrc</filename>) use the <option>-lircconf |
348 <replaceable>filename</replaceable></option> switch to specify another | |
349 file. | |
350 </para> | |
351 </sect2> | |
352 | |
21521 | 353 <!-- ********** --> |
9675 | 354 |
355 <sect2 id="slave-mode"> | |
356 <title>Slave mode</title> | |
21521 | 357 |
9675 | 358 <para> |
13717
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
359 The slave mode allows you to build simple frontends to |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
360 <application>MPlayer</application>. When run with the |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
361 <option>-slave</option> option <application>MPlayer</application> will |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
362 read commands separated by a newline (\n) from stdin. |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
363 The commands are documented in the |
10acb5e309e2
Remove incomplete key list and command list and update the other sections
diego
parents:
13710
diff
changeset
|
364 <ulink url="../../tech/slave.txt">slave.txt</ulink> file. |
9675 | 365 </para> |
366 </sect2> | |
367 </sect1> | |
368 | |
21521 | 369 |
370 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
371 | |
9675 | 372 |
373 <sect1 id="streaming"> | |
374 <title>Streaming from network or pipes</title> | |
375 | |
376 <para> | |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
377 <application>MPlayer</application> can play files from the network, using the |
10755 | 378 HTTP, FTP, MMS or RTSP/RTP protocol. |
9675 | 379 </para> |
380 | |
381 <para> | |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
382 Playing works simply by passing the URL on the command line. |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
383 <application>MPlayer</application> honors the <envar>http_proxy</envar> |
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
384 environment variable, using a proxy if available. Proxies can also be forced: |
21732 | 385 <screen> |
386 mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable> | |
387 </screen> | |
9675 | 388 </para> |
389 | |
390 <para> | |
391 <application>MPlayer</application> can read from stdin | |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
392 (<emphasis>not</emphasis> named pipes). This can for example be used to |
9675 | 393 play from FTP: |
21732 | 394 <screen> |
395 wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer - | |
396 </screen> | |
9675 | 397 </para> |
398 | |
11035
094e0838e5a7
<para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents:
10968
diff
changeset
|
399 <note><para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
400 It is also recommended to enable <option>-cache</option> when playing |
13873
89bbd098cfda
slight grammar/wording/spelling/markup improvements
diego
parents:
13717
diff
changeset
|
401 from the network: |
21732 | 402 <screen> |
403 wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -cache 8192 - | |
404 </screen> | |
11035
094e0838e5a7
<para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents:
10968
diff
changeset
|
405 </para></note> |
15499 | 406 |
21521 | 407 <!-- ********** --> |
408 | |
15499 | 409 <sect2 id="streaming-save"> |
410 <title>Saving streamed content</title> | |
21521 | 411 |
15499 | 412 <para> |
21521 | 413 Once you succeed in making <application>MPlayer</application> play |
414 your favorite internet stream, you can use the option | |
415 <option>-dumpstream</option> to save the stream into a file. | |
416 For example: | |
15499 | 417 <screen> |
21521 | 418 mplayer <replaceable>http://217.71.208.37:8006</replaceable> -dumpstream -dumpfile <replaceable>stream.asf</replaceable> |
15499 | 419 </screen> |
21521 | 420 will save the content streamed from |
421 <replaceable>http://217.71.208.37:8006</replaceable> into | |
422 <replaceable>stream.asf</replaceable>. | |
423 This works with all protocols supported by | |
26958 | 424 <application>MPlayer</application>, like MMS, RTSP, and so forth. |
15499 | 425 </para> |
426 </sect2> | |
21521 | 427 </sect1> |
15499 | 428 |
21521 | 429 |
430 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
431 | |
9966 | 432 |
11786 | 433 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)"> |
434 <title>Edit Decision Lists (EDL)</title> | |
435 | |
436 <para> | |
437 The edit decision list (EDL) system allows you to automatically skip | |
438 or mute sections of videos during playback, based on a movie specific | |
439 EDL configuration file. | |
440 </para> | |
441 | |
442 <para> | |
443 This is useful for those who may want to watch a film in "family-friendly" | |
444 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie | |
445 according to your own personal preferences. Aside from this, there are other | |
446 uses, like automatically skipping over commercials in video files you watch. | |
447 </para> | |
448 | |
449 <para> | |
18959 | 450 The EDL file format is pretty bare-bones. There is one command per line that |
451 indicates what to do (skip/mute) and when to do it (using pts in seconds). | |
11786 | 452 </para> |
453 | |
21521 | 454 <!-- ********** --> |
455 | |
11786 | 456 <sect2 id="edl_using"> |
457 <title>Using an EDL file</title> | |
21521 | 458 |
11786 | 459 <para> |
460 Include the <option>-edl <filename></option> flag when you run | |
461 <application>MPlayer</application>, with the name of the EDL file you | |
462 want applied to the video. | |
463 </para> | |
464 </sect2> | |
465 | |
21521 | 466 <!-- ********** --> |
467 | |
11786 | 468 <sect2 id="edl_making"> |
469 <title>Making an EDL file</title> | |
21521 | 470 |
11786 | 471 <para> |
472 The current EDL file format is: | |
21521 | 473 <programlisting>[begin second] [end second] [action]</programlisting> |
11786 | 474 Where the seconds are floating-point numbers and the action is either |
475 <literal>0</literal> for skip or <literal>1</literal> for mute. Example: | |
476 <programlisting> | |
477 5.3 7.1 0 | |
478 15 16.7 1 | |
479 420 422 0 | |
480 </programlisting> | |
481 This will skip from second 5.3 to second 7.1 of the video, then mute at | |
482 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422 | |
483 of the video. These actions will be performed when the playback timer | |
484 reaches the times given in the file. | |
485 </para> | |
486 | |
487 <para> | |
21521 | 488 To create an EDL file to work from, use the <option>-edlout |
489 <filename></option> flag. During playback, just hit <keycap>i</keycap> to | |
490 mark the beginning and end of a skip block. | |
491 A corresponding entry will be written to the file for that time. | |
492 You can then go back and fine-tune the generated EDL file as well as | |
18912 | 493 change the default operation which is to skip the block described by each line. |
11786 | 494 </para> |
495 </sect2> | |
21521 | 496 </sect1> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
497 </chapter> |
11786 | 498 |
21521 | 499 |
500 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
11786 | 501 |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
502 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
503 <chapter id="advaudio" xreflabel="Advanced Audio"> |
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
504 <title>Advanced audio usage</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
505 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
506 <sect1 id="advaudio-surround"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
507 <title>Surround/Multichannel playback</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
508 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
509 <sect2 id="advaudio-surround-DVD"> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
510 <title>DVDs</title> |
21521 | 511 |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
512 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
513 Most DVDs and many other files include surround sound. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
514 <application>MPlayer</application> supports surround playback but does not |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
515 enable it by default because stereo equipment is by far more common. To play a |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
516 file that has more than two channels of audio use <option>-channels</option>. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
517 For example, to play a DVD with 5.1 audio: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
518 <screen>mplayer dvd://1 -channels 6</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
519 Note that despite the name "5.1" there are actually six discrete channels. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
520 If you have surround sound equipment it is safe to put the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
521 <option>channels</option> option in your <application>MPlayer</application> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
522 configuration file <filename>~/.mplayer/config</filename>. For example, to make |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
523 quadraphonic playback the default, add this line: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
524 <programlisting>channels=4</programlisting> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
525 <application>MPlayer</application> will then output audio in four channels when |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
526 all four channels are available. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
527 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
528 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
529 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
530 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
531 <sect2 id="advaudio-surround-stereoinfour"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
532 <title>Playing stereo files to four speakers</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
533 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
534 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
535 <application>MPlayer</application> does not duplicate any channels by default, |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
536 and neither do most audio drivers. If you want to do that manually: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
537 <screen>mplayer <replaceable>filename</replaceable> -af channels=2:2:0:1:0:0</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
538 See the section on |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
539 <link linkend="advaudio-channels-copying">channel copying</link> for an |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
540 explanation. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
541 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
542 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
543 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
544 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
545 <sect2 id="advaudio-surround-passthrough"> |
24036 | 546 <title>AC-3/DTS Passthrough</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
547 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
548 <para> |
24036 | 549 DVDs usually have surround audio encoded in AC-3 (Dolby Digital) or DTS |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
550 (Digital Theater System) format. Some modern audio equipment is capable of |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
551 decoding these formats internally. <application>MPlayer</application> can be |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
552 configured to relay the audio data without decoding it. This will only work if |
30672
4400019c6ae2
Clarify that AC3/DTS passthrough is also possible with HDMI.
tack
parents:
30407
diff
changeset
|
553 you have a S/PDIF (Sony/Philips Digital Interface) jack in your sound card, or |
4400019c6ae2
Clarify that AC3/DTS passthrough is also possible with HDMI.
tack
parents:
30407
diff
changeset
|
554 if you are passing audio over HDMI. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
555 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
556 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
557 <para> |
24036 | 558 If your audio equipment can decode both AC-3 and DTS, you can safely enable |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
559 passthrough for both formats. Otherwise, enable passthrough for only the format |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
560 your equipment supports. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
561 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
562 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
563 <itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
564 <title>To enable passthrough on the command line:</title> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
565 <listitem><para> |
24036 | 566 For AC-3 only, use <option>-ac hwac3</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
567 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
568 <listitem><para> |
21521 | 569 For DTS only, use <option>-ac hwdts</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
570 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
571 <listitem><para> |
24036 | 572 For both AC-3 and DTS, use <option>-afm hwac3</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
573 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
574 </itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
575 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
576 <itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
577 <title>To enable passthrough in the <application>MPlayer</application> |
21732 | 578 configuration file: </title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
579 <listitem><para> |
24036 | 580 For AC-3 only, use <option>ac=hwac3,</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
581 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
582 <listitem><para> |
21521 | 583 For DTS only, use <option>ac=hwdts,</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
584 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
585 <listitem><para> |
24036 | 586 For both AC-3 and DTS, use <option>afm=hwac3</option> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
587 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
588 </itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
589 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
590 <para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
591 Note that there is a comma (",") at the end of |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
592 <option>ac=hwac3,</option> and <option>ac=hwdts,</option>. This will make |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
593 <application>MPlayer</application> fall back on the codecs it normally uses when |
24036 | 594 playing a file that does not have AC-3 or DTS audio. |
21732 | 595 <option>afm=hwac3</option> does not need a comma; |
596 <application>MPlayer</application> will fall back anyway when an audio family | |
597 is specified. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
598 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
599 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
600 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
601 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
602 <sect2 id="hwmpa-surround-passthrough"> |
17432 | 603 <title>MPEG audio Passthrough</title> |
604 | |
605 <para> | |
28966 | 606 Digital TV transmissions (such as DVB and ATSC) and some DVDs usually have |
17432 | 607 MPEG audio streams (in particular MP2). |
28966 | 608 Some MPEG hardware decoders such as full-featured DVB cards and DXR2 |
609 adapters can natively decode this format. | |
610 <application>MPlayer</application> can be configured to relay the audio data | |
17432 | 611 without decoding it. |
612 </para> | |
613 | |
614 <para> | |
615 To use this codec: | |
616 <screen> mplayer -ac hwmpa </screen> | |
617 </para> | |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
618 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
619 |
21521 | 620 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
621 <sect2 id="advaudio-surround-matrix"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
622 <title>Matrix-encoded audio</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
623 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
624 <para> |
16394
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
625 <emphasis>***TODO***</emphasis> |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
626 </para> |
21521 | 627 |
16394
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
628 <para> |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
629 This section has yet to be written and cannot be completed until somebody |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
630 provides sample files for us to test. If you have any matrix-encoded audio |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
631 files, know where to find some, or have any information that could be helpful, |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
632 please send a message to the |
19709 | 633 <ulink url="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs">MPlayer-DOCS</ulink> |
16394
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
634 mailing list. Put "[matrix-encoded audio]" in the subject line. |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
635 </para> |
21521 | 636 |
16394
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
637 <para> |
21c16d991b81
rewrite the little we-want-matrix-files section, patch by Corey Hickey < bugfood-ml AT fatooh DOT org >
wanderer
parents:
16391
diff
changeset
|
638 If no files or further information are forthcoming this section will be dropped. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
639 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
640 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
641 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
642 Good links: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
643 <itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
644 <listitem><para> |
21521 | 645 <ulink url="http://electronics.howstuffworks.com/surround-sound5.htm">http://electronics.howstuffworks.com/surround-sound5.htm</ulink> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
646 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
647 <listitem><para> |
21521 | 648 <ulink url="http://www.extremetech.com/article2/0,1697,1016875,00.asp">http://www.extremetech.com/article2/0,1697,1016875,00.asp</ulink> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
649 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
650 </itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
651 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
652 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
653 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
654 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
655 <sect2 id="advaudio-surround-hrtf"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
656 <title>Surround emulation in headphones</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
657 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
658 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
659 <application>MPlayer</application> includes an HRTF (Head Related Transfer |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
660 Function) filter based on an |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
661 <ulink url="http://sound.media.mit.edu/KEMAR.html">MIT project</ulink> |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
662 wherein measurements were taken from microphones mounted on a dummy human head. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
663 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
664 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
665 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
666 Although it is not possible to exactly imitate a surround system, |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
667 <application>MPlayer</application>'s HRTF filter does provide more spatially |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
668 immersive audio in 2-channel headphones. Regular downmixing simply combines all |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
669 the channels into two; besides combining the channels, <option>hrtf</option> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
670 generates subtle echoes, increases the stereo separation slightly, and alters |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
671 the volume of some frequencies. Whether HRTF sounds better may be dependent on |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
672 the source audio and a matter of personal taste, but it is definitely worth |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
673 trying out. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
674 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
675 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
676 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
677 To play a DVD with HRTF: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
678 <screen>mplayer dvd://1 -channels 6 -af hrtf</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
679 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
680 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
681 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
682 <option>hrtf</option> only works well with 5 or 6 channels. Also, |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
683 <option>hrtf</option> requires 48 kHz audio. DVD audio is already 48 kHz, but if |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
684 you have a file with a different sampling rate that you want to play using |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
685 <option>hrtf</option> you must resample it: |
21521 | 686 <screen> |
687 mplayer <replaceable>filename</replaceable> -channels 6 -af resample=48000,hrtf | |
688 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
689 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
690 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
691 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
692 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
693 <sect2 id="advaudio-surround-troubleshooting"> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
694 <title>Troubleshooting</title> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
695 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
696 <para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
697 If you do not hear any sound out of your surround channels, check your mixer |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
698 settings with a mixer program such as <application>alsamixer</application>; |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
699 audio outputs are often muted and set to zero volume by default. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
700 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
701 </sect2> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
702 </sect1> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
703 |
21521 | 704 <!-- ********** --> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
705 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
706 <sect1 id="advaudio-channels"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
707 <title>Channel manipulation</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
708 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
709 <sect2 id="advaudio-channels-general"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
710 <title>General information</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
711 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
712 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
713 Unfortunately, there is no standard for how channels are ordered. The orders |
24036 | 714 listed below are those of AC-3 and are fairly typical; try them and see if your |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
715 source matches. Channels are numbered starting with 0. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
716 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
717 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
718 <title>mono</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
719 <listitem override="0"><para>center</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
720 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
721 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
722 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
723 <title>stereo</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
724 <listitem override="0"><para>left</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
725 <listitem><para>right</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
726 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
727 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
728 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
729 <title>quadraphonic</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
730 <listitem override="0"><para>left front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
731 <listitem><para>right front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
732 <listitem><para>left rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
733 <listitem><para>right rear</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
734 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
735 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
736 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
737 <title>surround 4.0</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
738 <listitem override="0"><para>left front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
739 <listitem><para>right front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
740 <listitem><para>center rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
741 <listitem><para>center front</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
742 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
743 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
744 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
745 <title>surround 5.0</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
746 <listitem override="0"><para>left front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
747 <listitem><para>right front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
748 <listitem><para>left rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
749 <listitem><para>right rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
750 <listitem><para>center front</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
751 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
752 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
753 <orderedlist spacing="compact"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
754 <title>surround 5.1</title> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
755 <listitem override="0"><para>left front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
756 <listitem><para>right front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
757 <listitem><para>left rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
758 <listitem><para>right rear</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
759 <listitem><para>center front</para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
760 <listitem><para>subwoofer</para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
761 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
762 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
763 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
764 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
765 The <option>-channels</option> option is used to request the number of |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
766 channels from the audio decoder. Some audio codecs use the number of specified |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
767 channels to decide if downmixing the source is necessary. Note that this does |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
768 not always affect the number of output channels. For example, using |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
769 <option>-channels 4</option> to play a stereo MP3 file will still result in |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
770 2-channel output since the MP3 codec will not produce the extra channels. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
771 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
772 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
773 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
774 The <option>channels</option> audio filter can be used to create or remove |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
775 channels and is useful for controlling the number of channels sent to the sound |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
776 card. See the following sections for more information on channel manipulation. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
777 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
778 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
779 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
780 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
781 <sect2 id="advaudio-channels-mono"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
782 <title>Playing mono with two speakers</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
783 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
784 <para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
785 Mono sounds a lot better when played through two speakers - especially when |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
786 using headphones. Audio files that truly have one channel are automatically |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
787 played through two speakers; unfortunately, most files with mono sound are |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
788 actually encoded as stereo with one channel silent. The easiest and most |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
789 foolproof way to make both speakers output the same audio is the |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
790 <option>extrastereo</option> filter: |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
791 <screen>mplayer <replaceable>filename</replaceable> -af extrastereo=0</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
792 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
793 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
794 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
795 This averages both channels, resulting in both channels being half as loud as |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
796 the original. The next sections have examples of other ways to do this without a |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
797 volume decrease, but they are more complex and require different options |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
798 depending on which channel to keep. If you really need to maintain the volume, |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
799 it may be easier to experiment with the <option>volume</option> filter and find |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
800 the right value. For example: |
21521 | 801 <screen> |
802 mplayer <replaceable>filename</replaceable> -af extrastereo=0,volume=5 | |
803 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
804 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
805 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
806 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
807 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
808 <sect2 id="advaudio-channels-copying"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
809 <title>Channel copying/moving</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
810 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
811 <para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
812 The <option>channels</option> filter can move any or all channels. |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
813 Setting up all the suboptions for the <option>channels</option> |
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
814 filter can be complicated and takes a little care. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
815 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
816 <orderedlist spacing="compact"> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
817 <listitem><para> |
21521 | 818 Decide how many output channels you need. This is the first suboption. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
819 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
820 <listitem><para> |
21521 | 821 Count how many channel moves you will do. This is the second suboption. Each |
822 channel can be moved to several different channels at the same time, but keep | |
823 in mind that when a channel is moved (even if to only one destination) the | |
824 source channel will be empty unless another channel is moved into it. To copy | |
825 a channel, keeping the source the same, simply move the channel into both the | |
826 destination and the source. For example: | |
827 <programlisting> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
828 channel 2 --> channel 3 |
21521 | 829 channel 2 --> channel 2<!-- |
830 --></programlisting> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
831 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
832 <listitem><para> |
21521 | 833 Write out the channel copies as pairs of suboptions. Note that the first |
834 channel is 0, the second is 1, etc. The order of these suboptions does not | |
835 matter as long as they are properly grouped into | |
21732 | 836 <replaceable>source:destination</replaceable> pairs. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
837 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
838 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
839 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
840 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
841 <bridgehead>Example: one channel in two speakers</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
842 <para> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
843 Here is an example of another way to play one channel in both speakers. Suppose |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
844 for this example that the left channel should be played and the right channel |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
845 discarded. Following the steps above: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
846 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
847 <listitem><para> |
21521 | 848 In order to provide an output channel for each of the two speakers, the first |
849 suboption must be "2". | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
850 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
851 <listitem><para> |
21521 | 852 The left channel needs to be moved to the right channel, and also must be |
853 moved to itself so it won't be empty. This is a total of two moves, making | |
854 the second suboption "2" as well. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
855 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
856 <listitem><para> |
21521 | 857 To move the left channel (channel 0) into the right channel (channel 1), the |
858 suboption pair is "0:1", "0:0" moves the left channel onto itself. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
859 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
860 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
861 Putting that all together gives: |
21521 | 862 <screen> |
863 mplayer <replaceable>filename</replaceable> -af channels=2:2:0:1:0:0 | |
864 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
865 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
866 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
867 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
868 The advantage this example has over <option>extrastereo</option> is that the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
869 volume of each output channel is the same as the input channel. The disadvantage |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
870 is that the suboptions must be changed to "2:2:1:0:1:1" when the desired audio |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
871 is in the right channel. Also, it is more difficult to remember and type. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
872 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
873 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
874 <bridgehead>Example: left channel in two speakers shortcut</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
875 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
876 There is actually a much easier way to use the <option>channels</option> filter |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
877 for playing the left channel in both speakers: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
878 <screen>mplayer <replaceable>filename</replaceable> -af channels=1</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
879 The second channel is discarded and, with no further suboptions, the single |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
880 remaining channel is left alone. Sound card drivers automatically play |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
881 single-channel audio in both speakers. This only works when the desired channel |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
882 is on the left. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
883 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
884 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
885 <bridgehead>Example: duplicate front channels to the rear</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
886 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
887 Another common operation is to duplicate the front channels and play them back |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
888 on the rear speakers of a quadraphonic setup. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
889 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
890 <listitem><para> |
21521 | 891 There should be four output channels. The first suboption is "4". |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
892 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
893 <listitem><para> |
21521 | 894 Each of the two front channels needs to be moved to the corresponding rear |
895 channel and also to itself. This is four moves, so the second suboption is "4". | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
896 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
897 <listitem><para> |
21521 | 898 The left front (channel 0) needs to moved to the left rear (channel 2): |
899 "0:2". The left front also needs to be moved to itself: "0:0". The right | |
900 front (channel 1) is moved to the right rear (channel 3): "1:3", and also to | |
901 itself: "1:1". | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
902 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
903 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
904 Combine all the suboptions to get: |
21521 | 905 <screen> |
906 mplayer <replaceable>filename</replaceable> -af channels=4:4:0:2:0:0:1:3:1:1 | |
907 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
908 </para> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
909 </sect2> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
910 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
911 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
912 <sect2 id="advaudio-channels-mixing"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
913 <title>Channel mixing</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
914 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
915 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
916 The <option>pan</option> filter can mix channels in user-specified proportions. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
917 This allows for everything the <option>channels</option> filter can do and |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
918 more. Unfortunately, the suboptions are much more complicated. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
919 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
920 <listitem><para> |
21521 | 921 Decide how many channels to work with. You may need to specify this with |
922 <option>-channels</option> and/or <option>-af channels</option>. | |
923 Later examples will show when to use which. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
924 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
925 <listitem><para> |
21521 | 926 Decide how many channels to feed into <option>pan</option> (further decoded |
927 channels are discarded). This is the first suboption, and it also controls how | |
928 many channels to employ for output. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
929 </para></listitem> |
21521 | 930 <listitem> |
931 <para> | |
932 The remaining suboptions specify how much of each channel gets mixed into each | |
933 other channel. This is the complicated part. To break the task down, split the | |
30407
f645f4ef40dc
Fix input/output channel mixup in the pan filter description.
diego
parents:
28966
diff
changeset
|
934 suboptions into several sets, one set for each input channel. Each suboption |
f645f4ef40dc
Fix input/output channel mixup in the pan filter description.
diego
parents:
28966
diff
changeset
|
935 within a set corresponds to an output channel. The number you specify will be |
21521 | 936 the percentage of the input channel that gets mixed into the output channel. |
937 </para> | |
938 <para> | |
939 <option>pan</option> accepts values from 0 to 512, yielding 0% to 51200% of | |
940 the original volume. Be careful when using values greater than 1. Not only | |
941 can this give you very high volume, but if you exceed the sample range of | |
942 your sound card you may hear painful pops and clicks. If you want you can | |
943 follow <option>pan</option> with <option>,volume</option> to enable clipping, | |
944 but it is best to keep the values of <option>pan</option> low enough that | |
945 clipping is not necessary. | |
946 </para> | |
947 </listitem> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
948 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
949 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
950 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
951 <bridgehead>Example: one channel in two speakers</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
952 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
953 Here is yet another example for playing the left channel in two speakers. Follow |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
954 the steps above: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
955 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
956 <listitem><para> |
21521 | 957 <option>pan</option> should output two channels, so the first |
958 suboption is "2". | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
959 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
960 <listitem><para> |
21521 | 961 Since we have two input channels, there will be two sets of suboptions. |
962 Since there are also two output channels, | |
963 there will be two suboptions per set. | |
964 The left channel from the file should go with full volume to | |
965 the new left and the right channels. | |
966 Thus the first set of suboptions is "1:1". | |
967 The right channel should be discarded, so the second would be "0:0". | |
968 Any 0 values at the end can be left out, but for ease of | |
969 understanding we will keep them. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
970 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
971 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
972 Putting those options together gives: |
16513
68890ac57391
Reflect recent changes to the the pan audio filter syntax and behavior in
diego
parents:
16487
diff
changeset
|
973 <screen>mplayer <replaceable>filename</replaceable> -af pan=2:1:1:0:0</screen> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
974 If the right channel is desired instead of the left, the suboptions to |
16513
68890ac57391
Reflect recent changes to the the pan audio filter syntax and behavior in
diego
parents:
16487
diff
changeset
|
975 <option>pan</option> will be "2:0:0:1:1". |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
976 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
977 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
978 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
979 <bridgehead>Example: left channel in two speakers shortcut</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
980 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
981 As with <option>channels</option>, there is a shortcut that only works with the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
982 left channel: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
983 <screen>mplayer <replaceable>filename</replaceable> -af pan=1:1</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
984 Since <option>pan</option> has only one channel of input (the other channel is |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
985 discarded), there is only one set with one suboption, which specifies that the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
986 only channel gets 100% of itself. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
987 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
988 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
989 <bridgehead>Example: downmixing 6-channel PCM</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
990 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
991 <application>MPlayer</application>'s decoder for 6-channel PCM is not capable of |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
992 downmixing. Here is a way to downmix PCM using <option>pan</option>: |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
993 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
994 <listitem><para> |
21521 | 995 The number of output channels is 2, so the first suboption is "2". |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
996 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
997 <listitem><para> |
21521 | 998 With six input channels there will be six sets of options. Fortunately, |
999 since we only care about the output of the first two channels, we only need to | |
1000 make two sets; the remaining four sets can be omitted. Beware that not all | |
1001 multichannel audio files have the same channel order! This example | |
24036 | 1002 demonstrates downmixing a file with the same channels as AC-3 5.1: |
21521 | 1003 <programlisting> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1004 0 - front left |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1005 1 - front right |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1006 2 - rear left |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1007 3 - rear right |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1008 4 - center front |
21521 | 1009 5 - subwoofer<!-- |
1010 --></programlisting> | |
1011 The first set of suboptions lists the percentages of the original volume, in | |
1012 order, which each output channel should receive from the | |
1013 front left channel: "1:0". | |
1014 The front right channel should go into the right output: "0:1". | |
1015 The same for the rear channels: "1:0" and "0:1". | |
1016 The center channel goes into both output channels with half volume: | |
1017 "0.5:0.5", and the subwoofer goes into both with full volume: "1:1". | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1018 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1019 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1020 Put all that together, for: |
21521 | 1021 <screen> |
1022 mplayer <replaceable>6-channel.wav</replaceable> -af pan=2:1:0:0:1:1:0:0:1:0.5:0.5:1:1 | |
1023 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1024 The percentages listed above are only a rough example. Feel free to tweak them. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1025 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1026 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1027 <bridgehead>Example: Playing 5.1 audio on big speakers without a subwoofer</bridgehead> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1028 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1029 If you have a huge pair of front speakers you may not want to waste any money on |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1030 buying a subwoofer for a complete 5.1 sound system. If you use |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1031 <option>-channels 5</option> to request that liba52 decode 5.1 audio in 5.0, |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1032 the subwoofer channel is simply discarded. If you want to distribute the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1033 subwoofer channel yourself you need to downmix manually with |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1034 <option>pan</option>: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1035 <orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1036 <listitem><para> |
21521 | 1037 Since <option>pan</option> needs to examine all six channels, specify |
1038 <option>-channels 6</option> so liba52 decodes them all. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1039 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1040 <listitem><para> |
21521 | 1041 <option>pan</option> outputs to only five channels, the first suboption is 5. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1042 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1043 <listitem><para> |
21521 | 1044 Six input channels and five output channels means six sets of five suboptions. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1045 <itemizedlist spacing="compact"> |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1046 <listitem><para> |
21521 | 1047 The left front channel only replicates onto itself: |
1048 "1:0:0:0:0" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1049 </para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1050 <listitem><para> |
21521 | 1051 Same for the right front channel: |
1052 "0:1:0:0:0" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1053 </para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1054 <listitem><para> |
21521 | 1055 Same for the left rear channel: |
1056 "0:0:1:0:0" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1057 </para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1058 <listitem><para> |
21521 | 1059 And also the same for the right rear channel: |
1060 "0:0:0:1:0" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1061 </para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1062 <listitem><para> |
21521 | 1063 Center front, too: |
1064 "0:0:0:0:1" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1065 </para></listitem> |
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1066 <listitem><para> |
21521 | 1067 And now we have to decide what to do with the subwoofer, |
1068 e.g. half into front right and front left: | |
1069 "0.5:0.5:0:0:0" | |
21725
e4cd9d683286
Massive <simpara> -> <para>, as no <simpara>'s are actually needed.
torinthiel
parents:
21596
diff
changeset
|
1070 </para></listitem> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1071 </itemizedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1072 </para></listitem> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1073 </orderedlist> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1074 Combine all those options to get: |
21521 | 1075 <screen> |
1076 mplayer <replaceable>dvd://1</replaceable> -channels 6 -af pan=5:1:0:0:0:0:0:1:0:0:0:0:0:1:0:0:0:0:0:1:0:0:0:0:0:1:0.5:0.5:0:0:0 | |
1077 </screen> | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1078 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1079 </sect2> |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
1080 </sect1> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1081 |
21521 | 1082 <!-- ********** --> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1083 |
28497
aa7a9636fde5
Convert "advanced audio usage" into from a subsection to a chapter.
diego
parents:
26958
diff
changeset
|
1084 <sect1 id="advaudio-volume"> |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
1085 <title>Software Volume adjustment</title> |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1086 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1087 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1088 Some audio tracks are too quiet to be heard comfortably without amplification. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1089 This becomes a problem when your audio equipment cannot amplify the signal for |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1090 you. The <option>-softvol</option> option directs |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1091 <application>MPlayer</application> to use an internal mixer. You can then use |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1092 the volume adjustment keys (by default <keycap>9</keycap> and |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1093 <keycap>0</keycap>) to reach much higher volume levels. Note that this does not |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1094 bypass your sound card's mixer; <application>MPlayer</application> only |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1095 amplifies the signal before sending it to your sound card. |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1096 The following example is a good start: |
21521 | 1097 <screen> |
1098 mplayer <replaceable>quiet-file</replaceable> -softvol -softvol-max 300 | |
1099 </screen> | |
16406 | 1100 The <option>-softvol-max</option> option specifies the maximum allowable output |
1101 volume as a percentage of the | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1102 original volume. For example, <option>-softvol-max 200</option> would allow the |
16406 | 1103 volume to be adjusted up to twice its original level. |
1104 It is safe to specify a large value with | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1105 <option>-softvol-max</option>; the higher volume will not be used until you |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1106 use the volume adjustment keys. The only disadvantage of a large value is that, |
16407
ba2b36441de7
Avoid some short forms, some consistency, wording and typo fixes.
diego
parents:
16406
diff
changeset
|
1107 since <application>MPlayer</application> adjusts volume by a percentage of the |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1108 maximum, you will not have as precise control when using the volume adjustment |
16406 | 1109 keys. Use a lower value with <option>-softvol-max</option> and/or specify |
1110 <option>-volstep 1</option> if you need higher precision. | |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1111 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1112 |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1113 <para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1114 The <option>-softvol</option> option works by controlling the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1115 <option>volume</option> audio filter. If you want to play a file at a certain |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1116 volume from the beginning you can specify <option>volume</option> manually: |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1117 <screen>mplayer <replaceable>quiet-file</replaceable> -af volume=10</screen> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1118 This will play the file with a ten decibel gain. Be careful when using the |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1119 <option>volume</option> filter - you could easily hurt your ears if you use |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1120 too high a value. Start low and work your way up gradually until you get a feel |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1121 for how much adjustment is required. Also, if you specify excessively high |
21521 | 1122 values, <option>volume</option> may need to clip the signal to avoid sending |
1123 your sound card data that is outside the allowable range; this will result in | |
16487 | 1124 distorted audio. |
16391
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1125 </para> |
7a5d36c0633b
MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents:
15506
diff
changeset
|
1126 </sect1> |
9675 | 1127 </chapter> |