annotate DOCS/xml/en/usage.xml @ 21596:f551403d82a9

replace " with ", better readability
author torinthiel
date Thu, 14 Dec 2006 13:49:57 +0000
parents b210a229fbcb
children e4cd9d683286
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20535
c0687e92d463 convert DOCS/xml/en and help_mp-en.h to UTF-8
kraymer
parents: 20433
diff changeset
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
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 <chapter id="usage">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 <title>Usage</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 <sect1 id="commandline">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7 <title>Command line</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <application>MPlayer</application> utilizes a complex playtree. It consists
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 of global options written as first, for example
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 <screen>mplayer -vfm 5</screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 and options written after filenames, that apply only to the given
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 filename/URL/whatever, for example:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
15 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
16 mplayer -vfm 5 <replaceable>movie1.avi</replaceable> <replaceable>movie2.avi</replaceable> -vfm 4
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
17 </screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
18 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 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
22 <literal>}</literal>. It is useful with option <option>-loop</option>:
10643
ec69923456d1 Fix '- loop' to '-loop' option into example
nauj27
parents: 10184
diff changeset
23 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 The above command will play files in this order: 1, 1, 2, 1, 1, 2, 1, 1, 2.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 Playing a file:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 --> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36 <para>
15463
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
37 Another way to play a file:
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
38 <synopsis>
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
39 <command>mplayer</command><!--
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
40 --> [<replaceable>options</replaceable>]<!--
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
41 --> <replaceable>file:///uri-escaped-path</replaceable>
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
42 </synopsis>
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
43 </para>
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
44
741b6a00782f Document new file:// syntax.
diego
parents: 14707
diff changeset
45 <para>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 Playing more files:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 <command>mplayer</command><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 --> [<replaceable>default options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 --> [<replaceable>options for filename1</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52 --> <replaceable>filename2</replaceable><!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 --> [<replaceable>options for filename2</replaceable>] ...
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 Playing VCD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 <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
61 --> vcd://<replaceable>trackno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 Playing DVD:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69 <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
70 --> dvd://<replaceable>titleno</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 --> [-dvd-device <replaceable>/dev/dvd</replaceable>]
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 Playing from the WWW:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 --> http://<replaceable>site.com/file.asf</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 (playlists can be used, too)
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 Playing from RTSP:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 <synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88 --> rtsp://<replaceable>server.example.com/streamName</replaceable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89 </synopsis>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 Examples:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
95 mplayer -vo x11 <replaceable>/mnt/Films/Contact/contact2.mpg</replaceable>
12833
lumag
parents: 12615
diff changeset
96 mplayer vcd://<replaceable>2</replaceable> -cdrom-device <replaceable>/dev/hdc</replaceable>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
97 mplayer -afm 3 <replaceable>/mnt/DVDtrailers/alien4.vob</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
98 mplayer dvd://<replaceable>1</replaceable> -dvd-device <replaceable>/dev/hdc</replaceable>
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
99 mplayer -abs 65536 -delay -0.4 -nobps <replaceable>~/movies/test.avi</replaceable><!--
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 --></screen>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
105 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
106
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
107
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
108 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
109
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
110
19822
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
111 <sect1 id="subosd">
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
112 <title>Subtitles and OSD</title>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
113
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
114 <para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
115 <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
116 Currently the following formats are supported:
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
117 <itemizedlist>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
118 <listitem><para>VOBsub</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
119 <listitem><para>OGM</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
120 <listitem><para>CC (closed caption)</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
121 <listitem><para>MicroDVD</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
122 <listitem><para>SubRip</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
123 <listitem><para>SubViewer</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
124 <listitem><para>Sami</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
125 <listitem><para>VPlayer</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
126 <listitem><para>RT</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
127 <listitem><para>SSA</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
128 <listitem><para>PJS (Phoenix Japanimation Society)</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
129 <listitem><para>MPsub</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
130 <listitem><para>AQTitle</para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
131 <listitem><para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
132 <ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
133 </para></listitem>
19822
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
134 </itemizedlist>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
135 </para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
136
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
137 <para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
138 <application>MPlayer</application> can dump the previously listed subtitle
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
139 formats (<emphasis role="bold">except the three first</emphasis>) into the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
140 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
141 <itemizedlist>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
142 <listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
143 <listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
144 <listitem><para>MicroDVD: <option>-dumpmicrodvdsub</option></para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
145 <listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
146 <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
147 </itemizedlist>
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
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
150 <para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
151 <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
152 <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
153 </para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
154
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 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
157 </para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
158
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
159 <formalpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
160 <title>VOBsub subtitles</title>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
161 <para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
162 VOBsub subtitles consist of a big (some megabytes) <filename>.SUB</filename>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
163 file, and optional <filename>.IDX</filename> and/or <filename>.IFO</filename>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
164 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
165 <filename><replaceable>sample.sub</replaceable></filename>,
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
166 <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
167 <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
168 <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
169 [-vobsubid <replaceable>id</replaceable>]</option> options
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
170 (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
171 <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
172 (languages) with it. In case that <option>-vobsubid</option> is omitted,
20433
a0bac6e6a6d1 Typo fix
torinthiel
parents: 20035
diff changeset
173 <application>MPlayer</application> will try to use the languages given by the
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
174 <option>-slang</option> option and fall back to the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
175 <systemitem>langidx</systemitem> in the <filename>.IDX</filename> file to set
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
176 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
177 </para>
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
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
180 <formalpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
181 <title>Other subtitles</title>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
182 <para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
183 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
184 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
185 <filename><replaceable>sample.txt</replaceable></filename>,
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
186 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
187 <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
188 </para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
189 </formalpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
190
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
191 <variablelist>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
192 <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
193 <varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
194 <term><option>-subdelay <replaceable>sec</replaceable></option></term>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
195 <listitem><simpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
196 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
197 Can be negative. The value is added to movie's time position counter.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
198 </simpara></listitem>
19822
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
199 </varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
200 <varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
201 <term><option>-subfps <replaceable>RATE</replaceable></option></term>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
202 <listitem><simpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
203 Specify frame/sec rate of subtitle file (float number).
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
204 </simpara></listitem>
19822
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
205 </varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
206 <varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
207 <term><option>-subpos <replaceable>0-100</replaceable></option></term>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
208 <listitem><simpara>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
209 Specify the position of subtitles.
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
210 </simpara></listitem>
19822
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
211 </varlistentry>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
212 </variablelist>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
213
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
214 <para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
215 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
216 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
217 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
218 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
219 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
220 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
221 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
222 <application>MPlayer</application> can do this
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
223 conversion for you:
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
224
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
225 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
226 mplayer -dumpmicrodvdsub -fps <replaceable>subtitles_fps</replaceable> -subfps <replaceable>avi_fps</replaceable> \
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
227 -sub <replaceable>subtitle_filename</replaceable> <replaceable>dummy.avi</replaceable>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
228 </screen>
19822
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
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 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
233 </para>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
234 </sect1>
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
235
db95db082c37 Move subtitles and OSD section from the installation to the usage chapter.
diego
parents: 19709
diff changeset
236
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
237 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
238
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
239
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
240 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
241
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
242
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
243 <sect1 id="control">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
244 <title>Control</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
245
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
246 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
247 <application>MPlayer</application> has a fully configurable, command
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
248 driven, control layer which lets you control
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
249 <application>MPlayer</application> with keyboard, mouse, joystick or remote
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
250 control (using LIRC). See the man page for the complete list of keyboard controls.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
251 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
252
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
253 <!-- ********** -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
254
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
255 <sect2 id="ctrl-cfg">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
256 <title>Controls configuration</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
257
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
258 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
259 <application>MPlayer</application> allows you bind any key/button to any
11540
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
260 <application>MPlayer</application> command using a simple config file.
d480f7e36b74 <application> attack
wight
parents: 11271
diff changeset
261 The syntax consist of a key name followed by a command. The default config file location is
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
262 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
263 using the <option>-input <replaceable>conf</replaceable></option> option
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
264 (relative path are relative to <filename>$HOME/.mplayer</filename>).
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
265 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
266
13717
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 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
269 <command>mplayer -input keylist</command>
10acb5e309e2 Remove incomplete key list and command list and update the other sections
diego
parents: 13710
diff changeset
270 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
271 <command>mplayer -input cmdlist</command>.
10acb5e309e2 Remove incomplete key list and command list and update the other sections
diego
parents: 13710
diff changeset
272 </para>
10acb5e309e2 Remove incomplete key list and command list and update the other sections
diego
parents: 13710
diff changeset
273
20035
e53a2222de61 Add IDs to some examples/tables.
diego
parents: 19822
diff changeset
274 <example id="input_control_file">
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
275 <title>A simple input control file</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
276 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
277 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
278 ## MPlayer input control file
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
279 ##
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
280
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
281 RIGHT seek +10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
282 LEFT seek -10
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
283 - audio_delay 0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
284 + audio_delay -0.100
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
285 q quit
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
286 &gt; pt_step 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
287 &lt; pt_step -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
288 ENTER pt_step 1 1<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
289 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
290 </example>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
291 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
292
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
293 <!-- ********** -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
294
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
295 <sect2 id="lirc">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
296 <title>Control from LIRC</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
297
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
298 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
299 Linux Infrared Remote Control - use an easy to build home-brewn IR-receiver,
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
300 an (almost) arbitrary remote control and control your Linux box with it!
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
301 More about it on the <ulink url="http://www.lirc.org">LIRC homepage</ulink>.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
302 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
303
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
304 <para>
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
305 If you have the LIRC package installed, <filename>configure</filename> will
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
306 autodetect it. If everything went fine, <application>MPlayer</application>
21596
f551403d82a9 replace &quot; with ", better readability
torinthiel
parents: 21521
diff changeset
307 will print "<systemitem>Setting up LIRC support...</systemitem>"
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
308 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
309 LIRC there is no support compiled in. That's it :-)
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
310 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
311
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
312 <para>
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
313 The application name for <application>MPlayer</application> is - surprise -
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
314 <filename>mplayer</filename>. You can use any <application>MPlayer</application>
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
315 commands and even pass more than one command by separating them with
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
316 <literal>\n</literal>.
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
317 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
318 it makes sense (seek, volume, etc). Here is an excerpt from a sample
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
319 <filename>.lircrc</filename>:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
320 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
321
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
322 <programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
323 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
324 button = VOLUME_PLUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
325 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
326 config = volume 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
327 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
328 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
329
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
330 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
331 button = VOLUME_MINUS
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
332 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
333 config = volume -1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
334 repeat = 1
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
335 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
336
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
337 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
338 button = CD_PLAY
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
339 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
340 config = pause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
341 end
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
342
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
343 begin
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
344 button = CD_STOP
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
345 prog = mplayer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
346 config = seek 0 1\npause
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
347 end<!--
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
348 --></programlisting>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
349
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
350 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
351 If you do not like the standard location for the lirc-config file
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
352 (<filename>~/.lircrc</filename>) use the <option>-lircconf
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
353 <replaceable>filename</replaceable></option> switch to specify another
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
354 file.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
355 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
356 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
357
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
358 <!-- ********** -->
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
359
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
360 <sect2 id="slave-mode">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
361 <title>Slave mode</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
362
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
363 <para>
13717
10acb5e309e2 Remove incomplete key list and command list and update the other sections
diego
parents: 13710
diff changeset
364 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
365 <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
366 <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
367 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
368 The commands are documented in the
10acb5e309e2 Remove incomplete key list and command list and update the other sections
diego
parents: 13710
diff changeset
369 <ulink url="../../tech/slave.txt">slave.txt</ulink> file.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
370 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
371 </sect2>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
372 </sect1>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
373
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
374 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
375
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
376 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
377
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
378
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
379 <sect1 id="streaming">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
380 <title>Streaming from network or pipes</title>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
381
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
382 <para>
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
383 <application>MPlayer</application> can play files from the network, using the
10755
diego
parents: 10643
diff changeset
384 HTTP, FTP, MMS or RTSP/RTP protocol.
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
385 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
386
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
387 <para>
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
388 Playing works simply by passing the URL on the command line.
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
389 <application>MPlayer</application> honors the <envar>http_proxy</envar>
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
390 environment variable, using a proxy if available. Proxies can also be forced:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
391 <screen>mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable></screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
392 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
393
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
394 <para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
395 <application>MPlayer</application> can read from stdin
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
396 (<emphasis>not</emphasis> named pipes). This can for example be used to
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
397 play from FTP:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
398 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -</screen>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
399 </para>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
400
11035
094e0838e5a7 <para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents: 10968
diff changeset
401 <note><para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
402 It is also recommended to enable <option>-cache</option> when playing
13873
89bbd098cfda slight grammar/wording/spelling/markup improvements
diego
parents: 13717
diff changeset
403 from the network:
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
404 <screen>wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -cache 8192 -</screen>
11035
094e0838e5a7 <para>Note:.... </para> really should be <note><para>....</para></note>
lumag
parents: 10968
diff changeset
405 </para></note>
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
406
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
407 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
408
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
409 <sect2 id="streaming-save">
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
410 <title>Saving streamed content</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
411
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
412 <para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
413 Once you succeed in making <application>MPlayer</application> play
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
414 your favorite internet stream, you can use the option
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
415 <option>-dumpstream</option> to save the stream into a file.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
416 For example:
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
417 <screen>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
418 mplayer <replaceable>http://217.71.208.37:8006</replaceable> -dumpstream -dumpfile <replaceable>stream.asf</replaceable>
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
419 </screen>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
420 will save the content streamed from
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
421 <replaceable>http://217.71.208.37:8006</replaceable> into
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
422 <replaceable>stream.asf</replaceable>.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
423 This works with all protocols supported by
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
424 <application>MPlayer</application>, like MMS, RSTP, and so forth.
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
425 </para>
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
426 </sect2>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
427 </sect1>
15499
4876278747dc Saving streamed content
gpoirier
parents: 15463
diff changeset
428
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
429 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
430
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
431 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
432
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
433
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
434 <sect1 id="mpst" xreflabel="Remote streams">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
435 <title>Remote streams</title>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
436
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
437 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
438 Remote streams allow you to access most <application>MPlayer</application>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
439 stream type from a remote host. The main purpose of this feature is to make
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
440 it possible to directly use the CD or DVD drive of another computer on the
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
441 network (provided you have the required bandwidth). On the downside some
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
442 stream type (currently TV and MF) are not usable remotely because they are
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
443 implemented at the demuxer level. It is sad for MF but TV stream would anyway
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
444 require an insane amount of bandwidth.
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
445 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
446
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
447 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
448
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
449 <sect2 id="compile_mpst_server">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
450 <title>Compiling the server</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
451
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
452 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
453 After having compiled <application>MPlayer</application> go to the
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
454 <filename>TOOLS/netstream</filename> directory and enter
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
455 <application>make</application> to build the server binary.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
456 You can then copy the <application>netstream</application> binary
9969
nicolas
parents: 9966
diff changeset
457 to the right place on your system (usually
nicolas
parents: 9966
diff changeset
458 <filename class="directory">/usr/local/bin</filename> on Linux).
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
459 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
460 </sect2>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
461
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
462 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
463
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
464 <sect2 id="use_mpst">
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
465 <title>Using remote streams</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
466
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
467 <para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
468 First you have to start the server on the computer you intend to remotely
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
469 access. Currently the server is very basic and does not have any commands
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
470 line arguments so just enter <filename>netstream</filename>. Now you can
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
471 for example play the second track of a VCD on the server with :
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
472 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
473 mplayer -cache 5000 <replaceable>mpst://servername/vcd://2</replaceable>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
474 </screen>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
475 You can also access files on this server :
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
476 <screen>
11713
a1bc8133084a <replaceable> tags' attack :P
paszczi
parents: 11542
diff changeset
477 mplayer -cache 5000 <replaceable>mpst://servername//usr/local/movies/lol.avi</replaceable>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
478 </screen>
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
479 Note that paths which aren't starting with a / will be relative to
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
480 the directory where the server is running. The <option>-cache</option> option
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
481 is not needed but highly recommended.
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
482 </para>
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
483
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
484 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
485 Be aware that currently the server is not secure at all. So do not complain
11271
252fb0cf331a spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents: 11143
diff changeset
486 about the numerous exploits which are possible through this. Instead send
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
487 some (good) patch to make it better or start writing your own server.
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
488 </para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
489 </sect2>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
490 </sect1>
9966
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
491
9aeb20839969 patch by Albeu, corrected by Diego Biurrun & me
nicolas
parents: 9675
diff changeset
492
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
493 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
494
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
495
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
496 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
497 <title>Edit Decision Lists (EDL)</title>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
498
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
499 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
500 The edit decision list (EDL) system allows you to automatically skip
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
501 or mute sections of videos during playback, based on a movie specific
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
502 EDL configuration file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
503 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
504
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
505 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
506 This is useful for those who may want to watch a film in "family-friendly"
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
507 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
508 according to your own personal preferences. Aside from this, there are other
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
509 uses, like automatically skipping over commercials in video files you watch.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
510 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
511
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
512 <para>
18959
dc4a1a985bb2 wording fix
diego
parents: 18912
diff changeset
513 The EDL file format is pretty bare-bones. There is one command per line that
dc4a1a985bb2 wording fix
diego
parents: 18912
diff changeset
514 indicates what to do (skip/mute) and when to do it (using pts in seconds).
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
515 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
516
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
517 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
518
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
519 <sect2 id="edl_using">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
520 <title>Using an EDL file</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
521
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
522 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
523 Include the <option>-edl &lt;filename&gt;</option> flag when you run
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
524 <application>MPlayer</application>, with the name of the EDL file you
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
525 want applied to the video.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
526 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
527 </sect2>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
528
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
529 <!-- ********** -->
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
530
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
531 <sect2 id="edl_making">
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
532 <title>Making an EDL file</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
533
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
534 <para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
535 The current EDL file format is:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
536 <programlisting>[begin second] [end second] [action]</programlisting>
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
537 Where the seconds are floating-point numbers and the action is either
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
538 <literal>0</literal> for skip or <literal>1</literal> for mute. Example:
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
539 <programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
540 5.3 7.1 0
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
541 15 16.7 1
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
542 420 422 0
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
543 </programlisting>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
544 This will skip from second 5.3 to second 7.1 of the video, then mute at
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
545 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
546 of the video. These actions will be performed when the playback timer
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
547 reaches the times given in the file.
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
548 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
549
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
550 <para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
551 To create an EDL file to work from, use the <option>-edlout
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
552 &lt;filename&gt;</option> flag. During playback, just hit <keycap>i</keycap> to
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
553 mark the beginning and end of a skip block.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
554 A corresponding entry will be written to the file for that time.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
555 You can then go back and fine-tune the generated EDL file as well as
18912
7ebb8863726d document the change on -edlout's behavior
reynaldo
parents: 17864
diff changeset
556 change the default operation which is to skip the block described by each line.
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
557 </para>
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
558 </sect2>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
559 </sect1>
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
560
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
561
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
562 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
11786
06474b60be53 EDL section moved into usage.
diego
parents: 11737
diff changeset
563
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
564
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
565 <sect1 id="advaudio" xreflabel="Advanced Audio">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
566 <title>Advanced audio</title>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
567
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
568 <sect2 id="advaudio-surround">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
569 <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
570
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
571 <sect3 id="advaudio-surround-DVD">
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
572 <title>DVDs</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
573
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
574 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
575 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
576 <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
577 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
578 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
579 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
580 <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
581 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
582 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
583 <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
584 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
585 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
586 <programlisting>channels=4</programlisting>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
587 <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
588 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
589 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
590 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
591
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
592
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
593 <sect3 id="advaudio-surround-stereoinfour">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
594 <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
595
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
596 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
597 <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
598 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
599 <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
600 See the section on
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
601 <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
602 explanation.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
603 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
604 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
605
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
606
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
607 <sect3 id="advaudio-surround-passthrough">
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
608 <title>AC3/DTS Passthrough</title>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
609
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
610 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
611 DVDs usually have surround audio encoded in AC3 (Dolby Digital) or DTS
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
612 (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
613 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
614 configured to relay the audio data without decoding it. This will only work if
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
615 you have a S/PDIF (Sony/Philips Digital Interface) jack in your sound card.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
616 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
617
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
618 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
619 If your audio equipment can decode both AC3 and DTS, you can safely enable
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
620 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
621 your equipment supports.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
622 </para>
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 <itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
625 <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
626 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
627 For AC3 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
628 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
629 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
630 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
631 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
632 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
633 For both AC3 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
634 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
635 </itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
636
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
637 <itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
638 <title>To enable passthrough in the <application>MPlayer</application>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
639 configuration file: </title>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
640 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
641 For AC3 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
642 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
643 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
644 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
645 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
646 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
647 For both AC3 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
648 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
649 </itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
650
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
651 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
652 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
653 <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
654 <application>MPlayer</application> fall back on the codecs it normally uses when
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
655 playing a file that does not have AC3 or DTS audio. <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
656 does not need a comma; <application>MPlayer</application> will fall back anyway
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
657 when an audio family is specified.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
658 </para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
659 </sect3>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
660
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
661
17432
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
662 <sect3 id="hwmpa-surround-passthrough">
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
663 <title>MPEG audio Passthrough</title>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
664
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
665 <para>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
666 Digital TV transmissions (such as DVB and ATSC) and some DVDs usually have
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
667 MPEG audio streams (in particular MP2).
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
668 Some MPEG hardware decoders such as full-featured DVB cards and DXR2
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
669 adapters can natively decode this format.
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
670 <application>MPlayer</application> can be configured to relay the audio data
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
671 without decoding it.
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
672 </para>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
673
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
674 <para>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
675 To use this codec:
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
676 <screen> mplayer -ac hwmpa </screen>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
677 </para>
e36a50f22aca documented audio codec hwmpa
nicodvb
parents: 16601
diff changeset
678 </sect3>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
679
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
680
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
681 <sect3 id="advaudio-surround-matrix">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
682 <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
683
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
684 <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
685 <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
686 </para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
687
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
688 <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
689 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
690 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
691 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
692 please send a message to the
19709
2c8c28415e89 fix some more mailman links
kraymer
parents: 18959
diff changeset
693 <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
694 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
695 </para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
696
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
697 <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
698 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
699 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
700
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
701 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
702 Good links:
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
703 <itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
704 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
705 <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
706 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
707 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
708 <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
709 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
710 </itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
711 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
712 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
713
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
714
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
715 <sect3 id="advaudio-surround-hrtf">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
716 <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
717
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
718 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
719 <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
720 Function) filter based on an
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
721 <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
722 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
723 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
724
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
725 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
726 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
727 <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
728 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
729 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
730 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
731 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
732 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
733 trying out.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
734 </para>
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 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
737 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
738 <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
739 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
740
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
741 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
742 <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
743 <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
744 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
745 <option>hrtf</option> you must resample it:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
746 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
747 mplayer <replaceable>filename</replaceable> -channels 6 -af resample=48000,hrtf
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
748 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
749 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
750 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
751
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 <sect3 id="advaudio-surround-troubleshooting">
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
754 <title>Troubleshooting</title>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
755
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
756 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
757 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
758 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
759 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
760 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
761 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
762 </sect2>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
763
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
764 <!-- ********** -->
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
765
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
766 <sect2 id="advaudio-channels">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
767 <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
768
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
769 <sect3 id="advaudio-channels-general">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
770 <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
771
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
772 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
773 Unfortunately, there is no standard for how channels are ordered. The orders
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
774 listed below are those of AC3 and are fairly typical; try them and see if your
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
775 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
776
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
777 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
778 <title>mono</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
779 <listitem override="0"><simpara>center</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
780 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
781
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
782 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
783 <title>stereo</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
784 <listitem override="0"><simpara>left</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
785 <listitem><simpara>right</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
786 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
787
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
788 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
789 <title>quadraphonic</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
790 <listitem override="0"><simpara>left front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
791 <listitem><simpara>right front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
792 <listitem><simpara>left rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
793 <listitem><simpara>right rear</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
794 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
795
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
796 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
797 <title>surround 4.0</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
798 <listitem override="0"><simpara>left front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
799 <listitem><simpara>right front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
800 <listitem><simpara>center rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
801 <listitem><simpara>center front</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
802 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
803
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
804 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
805 <title>surround 5.0</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
806 <listitem override="0"><simpara>left front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
807 <listitem><simpara>right front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
808 <listitem><simpara>left rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
809 <listitem><simpara>right rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
810 <listitem><simpara>center front</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
811 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
812
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
813 <orderedlist spacing="compact">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
814 <title>surround 5.1</title>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
815 <listitem override="0"><simpara>left front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
816 <listitem><simpara>right front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
817 <listitem><simpara>left rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
818 <listitem><simpara>right rear</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
819 <listitem><simpara>center front</simpara></listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
820 <listitem><simpara>subwoofer</simpara></listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
821 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
822 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
823
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
824 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
825 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
826 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
827 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
828 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
829 <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
830 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
831 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
832
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
833 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
834 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
835 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
836 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
837 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
838 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
839
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 <sect3 id="advaudio-channels-mono">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
842 <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
843
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
844 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
845 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
846 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
847 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
848 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
849 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
850 <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
851 <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
852 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
853
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
854 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
855 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
856 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
857 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
858 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
859 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
860 the right value. For example:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
861 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
862 mplayer <replaceable>filename</replaceable> -af extrastereo=0,volume=5
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
863 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
864 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
865 </sect3>
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
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
868 <sect3 id="advaudio-channels-copying">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
869 <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
870
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
871 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
872 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
873 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
874 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
875
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
876 <orderedlist spacing="compact">
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
877 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
878 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
879 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
880 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
881 Count how many channel moves you will do. This is the second suboption. Each
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
882 channel can be moved to several different channels at the same time, but keep
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
883 in mind that when a channel is moved (even if to only one destination) the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
884 source channel will be empty unless another channel is moved into it. To copy
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
885 a channel, keeping the source the same, simply move the channel into both the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
886 destination and the source. For example:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
887 <programlisting>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
888 channel 2 --> channel 3
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
889 channel 2 --> channel 2<!--
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
890 --></programlisting>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
891 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
892 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
893 Write out the channel copies as pairs of suboptions. Note that the first
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
894 channel is 0, the second is 1, etc. The order of these suboptions does not
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
895 matter as long as they are properly grouped into
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
896 <replaceable>source:destination</replaceable> pairs.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
897 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
898 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
899 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
900
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
901 <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
902 <para>
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
903 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
904 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
905 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
906 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
907 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
908 In order to provide an output channel for each of the two speakers, the first
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
909 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
910 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
911 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
912 The left channel needs to be moved to the right channel, and also must be
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
913 moved to itself so it won't be empty. This is a total of two moves, making
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
914 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
915 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
916 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
917 To move the left channel (channel 0) into the right channel (channel 1), the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
918 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
919 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
920 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
921 Putting that all together gives:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
922 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
923 mplayer <replaceable>filename</replaceable> -af channels=2:2:0:1:0:0
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
924 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
925 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
926
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
927 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
928 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
929 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
930 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
931 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
932 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
933
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
934 <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
935 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
936 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
937 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
938 <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
939 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
940 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
941 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
942 is on the left.
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
943 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
944
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
945 <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
946 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
947 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
948 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
949 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
950 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
951 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
952 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
953 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
954 Each of the two front channels needs to be moved to the corresponding rear
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
955 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
956 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
957 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
958 The left front (channel 0) needs to moved to the left rear (channel 2):
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
959 "0:2". The left front also needs to be moved to itself: "0:0". The right
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
960 front (channel 1) is moved to the right rear (channel 3): "1:3", and also to
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
961 itself: "1:1".
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
962 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
963 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
964 Combine all the suboptions to get:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
965 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
966 mplayer <replaceable>filename</replaceable> -af channels=4:4:0:2:0:0:1:3:1:1
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
967 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
968 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
969 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
970
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
971
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
972 <sect3 id="advaudio-channels-mixing">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
973 <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
974
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
975 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
976 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
977 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
978 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
979 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
980 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
981 Decide how many channels to work with. You may need to specify this with
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
982 <option>-channels</option> and/or <option>-af channels</option>.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
983 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
984 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
985 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
986 Decide how many channels to feed into <option>pan</option> (further decoded
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
987 channels are discarded). This is the first suboption, and it also controls how
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
988 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
989 </para></listitem>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
990 <listitem>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
991 <para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
992 The remaining suboptions specify how much of each channel gets mixed into each
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
993 other channel. This is the complicated part. To break the task down, split the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
994 suboptions into several sets, one set for each output channel. Each suboption
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
995 within a set corresponds to an input channel. The number you specify will be
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
996 the percentage of the input channel that gets mixed into the output channel.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
997 </para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
998 <para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
999 <option>pan</option> accepts values from 0 to 512, yielding 0% to 51200% of
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1000 the original volume. Be careful when using values greater than 1. Not only
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1001 can this give you very high volume, but if you exceed the sample range of
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1002 your sound card you may hear painful pops and clicks. If you want you can
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1003 follow <option>pan</option> with <option>,volume</option> to enable clipping,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1004 but it is best to keep the values of <option>pan</option> low enough that
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1005 clipping is not necessary.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1006 </para>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1007 </listitem>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1008 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1009 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1010
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1011 <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
1012 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1013 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
1014 the steps above:
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1015 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1016 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1017 <option>pan</option> should output two channels, so the first
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1018 suboption is "2".
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1019 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1020 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1021 Since we have two input channels, there will be two sets of suboptions.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1022 Since there are also two output channels,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1023 there will be two suboptions per set.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1024 The left channel from the file should go with full volume to
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1025 the new left and the right channels.
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1026 Thus the first set of suboptions is "1:1".
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1027 The right channel should be discarded, so the second would be "0:0".
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1028 Any 0 values at the end can be left out, but for ease of
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1029 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
1030 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1031 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1032 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
1033 <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
1034 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
1035 <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
1036 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1037
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1038
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1039 <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
1040 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1041 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
1042 left channel:
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1043 <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
1044 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
1045 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
1046 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
1047 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1048
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1049 <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
1050 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1051 <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
1052 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
1053 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1054 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1055 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
1056 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1057 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1058 With six input channels there will be six sets of options. Fortunately,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1059 since we only care about the output of the first two channels, we only need to
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1060 make two sets; the remaining four sets can be omitted. Beware that not all
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1061 multichannel audio files have the same channel order! This example
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1062 demonstrates downmixing a file with the same channels as AC3 5.1:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1063 <programlisting>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1064 0 - front left
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1065 1 - front right
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1066 2 - rear left
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1067 3 - rear right
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1068 4 - center front
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1069 5 - subwoofer<!--
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1070 --></programlisting>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1071 The first set of suboptions lists the percentages of the original volume, in
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1072 order, which each output channel should receive from the
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1073 front left channel: "1:0".
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1074 The front right channel should go into the right output: "0:1".
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1075 The same for the rear channels: "1:0" and "0:1".
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1076 The center channel goes into both output channels with half volume:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1077 "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
1078 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1079 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1080 Put all that together, for:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1081 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1082 mplayer <replaceable>6-channel.wav</replaceable> -af pan=2:1:0:0:1:1:0:0:1:0.5:0.5:1:1
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1083 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1084 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
1085 </para>
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 <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
1088 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1089 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
1090 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
1091 <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
1092 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
1093 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
1094 <option>pan</option>:
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1095 <orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1096 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1097 Since <option>pan</option> needs to examine all six channels, specify
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1098 <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
1099 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1100 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1101 <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
1102 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1103 <listitem><para>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1104 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
1105 <itemizedlist spacing="compact">
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1106 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1107 The left front channel only replicates onto itself:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1108 "1:0:0:0:0"
16513
68890ac57391 Reflect recent changes to the the pan audio filter syntax and behavior in
diego
parents: 16487
diff changeset
1109 </simpara></listitem>
68890ac57391 Reflect recent changes to the the pan audio filter syntax and behavior in
diego
parents: 16487
diff changeset
1110 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1111 Same for the right front channel:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1112 "0:1:0:0:0"
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1113 </simpara></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1114 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1115 Same for the left rear channel:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1116 "0:0:1:0:0"
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1117 </simpara></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1118 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1119 And also the same for the right rear channel:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1120 "0:0:0:1:0"
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1121 </simpara></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1122 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1123 Center front, too:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1124 "0:0:0:0:1"
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1125 </simpara></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1126 <listitem><simpara>
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1127 And now we have to decide what to do with the subwoofer,
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1128 e.g. half into front right and front left:
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1129 "0.5:0.5:0:0:0"
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1130 </simpara></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1131 </itemizedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1132 </para></listitem>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1133 </orderedlist>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1134 Combine all those options to get:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1135 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1136 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
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1137 </screen>
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1138 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1139 </sect3>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1140 </sect2>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1141
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1142 <!-- ********** -->
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1143
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1144 <sect2 id="advaudio-volume">
16407
ba2b36441de7 Avoid some short forms, some consistency, wording and typo fixes.
diego
parents: 16406
diff changeset
1145 <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
1146
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1147 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1148 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
1149 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
1150 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
1151 <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
1152 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
1153 <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
1154 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
1155 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
1156 The following example is a good start:
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1157 <screen>
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1158 mplayer <replaceable>quiet-file</replaceable> -softvol -softvol-max 300
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1159 </screen>
16406
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1160 The <option>-softvol-max</option> option specifies the maximum allowable output
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1161 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
1162 original volume. For example, <option>-softvol-max 200</option> would allow the
16406
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1163 volume to be adjusted up to twice its original level.
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1164 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
1165 <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
1166 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
1167 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
1168 maximum, you will not have as precise control when using the volume adjustment
16406
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1169 keys. Use a lower value with <option>-softvol-max</option> and/or specify
c2cd00bfa3c0 A few more details and grammar updates.
diego
parents: 16394
diff changeset
1170 <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
1171 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1172
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1173 <para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1174 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
1175 <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
1176 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
1177 <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
1178 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
1179 <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
1180 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
1181 for how much adjustment is required. Also, if you specify excessively high
21521
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1182 values, <option>volume</option> may need to clip the signal to avoid sending
b210a229fbcb General reformatting round:
torinthiel
parents: 20535
diff changeset
1183 your sound card data that is outside the allowable range; this will result in
16487
bafefab46f12 minor wording fix in the advanced audio guide
wanderer
parents: 16407
diff changeset
1184 distorted audio.
16391
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1185 </para>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1186 </sect2>
7a5d36c0633b MPlayer advanced audio usage guide by Corey Hickey < bugfood-ml AH fatooh POUM org>
gpoirier
parents: 15506
diff changeset
1187 </sect1>
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1188 </chapter>