annotate DOCS/xml/zh_CN/usage.xml @ 33257:40b298f9dc77

Remove some useless static and global zero initializations.
author cboesch
date Sun, 01 May 2011 16:44:58 +0000
parents ca216bfc52cf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
31885
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
31890
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
2 <!-- synced with cd-dvd.xml r21612 -->
31885
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
3 <chapter id="usage">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
4 <title>Usage</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
5
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
6 <sect1 id="commandline">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
7 <title>Command line</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
8
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
9 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
10 <application>MPlayer</application> utilizes a complex playtree. Options passed
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
11 on the command line can apply to all files/URLs or just to specific ones
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
12 depending on their position. For example
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
13 <screen>mplayer -vfm ffmpeg movie1.avi movie2.avi</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
14 will use FFmpeg decoders for both files, but
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
15 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
16 mplayer -vfm ffmpeg <replaceable>movie1.avi</replaceable> <replaceable>movie2.avi</replaceable> -vfm dmo
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
17 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
18 will play the second file with a DMO decoder.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
19 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
20
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
21 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
22 You can group filenames/URLs together using <literal>{</literal> and
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
23 <literal>}</literal>. It is useful with option <option>-loop</option>:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
24 <screen>mplayer { 1.avi -loop 2 2.avi } -loop 3</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
25 The above command will play files in this order: 1, 1, 2, 1, 1, 2, 1, 1, 2.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
26 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
27
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
28 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
29 Playing a file:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
30 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
31 <command>mplayer</command><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
32 --> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
33 --> [<replaceable>path</replaceable>/]<replaceable>filename</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
34 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
35 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
36
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
37 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
38 Another way to play a file:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
39 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
40 <command>mplayer</command><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
41 --> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
42 --> <replaceable>file:///uri-escaped-path</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
43 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
44 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
45
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
46 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
47 Playing more files:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
48 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
49 <command>mplayer</command><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
50 --> [<replaceable>default options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
51 --> [<replaceable>path</replaceable>/]<replaceable>filename1</replaceable><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
52 --> [<replaceable>options for filename1</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
53 --> <replaceable>filename2</replaceable><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
54 --> [<replaceable>options for filename2</replaceable>] ...
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
55 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
56 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
57
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
58 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
59 Playing VCD:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
60 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
61 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
62 --> vcd://<replaceable>trackno</replaceable><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
63 --> [-cdrom-device <replaceable>/dev/cdrom</replaceable>]
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
64 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
65 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
66
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
67 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
68 Playing DVD:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
69 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
70 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
71 --> dvd://<replaceable>titleno</replaceable><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
72 --> [-dvd-device <replaceable>/dev/dvd</replaceable>]
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
73 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
74 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
75
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
76 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
77 Playing from the WWW:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
78 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
79 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
80 --> http://<replaceable>site.com/file.asf</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
81 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
82 (playlists can be used, too)
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
83 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
84
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
85 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
86 Playing from RTSP:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
87 <synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
88 <command>mplayer</command> [<replaceable>options</replaceable>]<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
89 --> rtsp://<replaceable>server.example.com/streamName</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
90 </synopsis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
91 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
92
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
93 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
94 Examples:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
95 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
96 mplayer -vo x11 <replaceable>/mnt/Films/Contact/contact2.mpg</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
97 mplayer vcd://<replaceable>2</replaceable> -cdrom-device <replaceable>/dev/hdc</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
98 mplayer -afm 3 <replaceable>/mnt/DVDtrailers/alien4.vob</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
99 mplayer dvd://<replaceable>1</replaceable> -dvd-device <replaceable>/dev/hdc</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
100 mplayer -abs 65536 -delay -0.4 -nobps <replaceable>~/movies/test.avi</replaceable><!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
101 --></screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
102 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
103 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
104
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
105
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
106 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
107
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
108
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
109 <sect1 id="subosd">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
110 <title>Subtitles and OSD</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
111
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
112 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
113 <application>MPlayer</application> can display subtitles along with movie files.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
114 Currently the following formats are supported:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
115 <itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
116 <listitem><para>VOBsub</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
117 <listitem><para>OGM</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
118 <listitem><para>CC (closed caption)</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
119 <listitem><para>MicroDVD</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
120 <listitem><para>SubRip</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
121 <listitem><para>SubViewer</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
122 <listitem><para>Sami</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
123 <listitem><para>VPlayer</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
124 <listitem><para>RT</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
125 <listitem><para>SSA</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
126 <listitem><para>PJS (Phoenix Japanimation Society)</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
127 <listitem><para>MPsub</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
128 <listitem><para>AQTitle</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
129 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
130 <ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
131 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
132 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
133 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
134
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
135 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
136 <application>MPlayer</application> can dump the previously listed subtitle
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
137 formats (<emphasis role="bold">except the three first</emphasis>) into the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
138 following destination formats, with the given options:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
139 <itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
140 <listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
141 <listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
142 <listitem><para>MicroDVD: <option>-dumpmicrodvdsub</option></para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
143 <listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
144 <listitem><para>Sami: <option>-dumpsami</option></para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
145 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
146 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
147
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
148 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
149 <application>MEncoder</application> can dump DVD subtitles into
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
150 <link linkend="menc-feat-extractsub">VOBsub</link> format.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
151 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
152
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
153 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
154 The command line options differ slightly for the different formats:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
155 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
156
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
157 <formalpara>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
158 <title>VOBsub subtitles</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
159 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
160 VOBsub subtitles consist of a big (some megabytes) <filename>.SUB</filename>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
161 file, and optional <filename>.IDX</filename> and/or <filename>.IFO</filename>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
162 files. If you have files like
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
163 <filename><replaceable>sample.sub</replaceable></filename>,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
164 <filename><replaceable>sample.ifo</replaceable></filename> (optional),
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
165 <filename><replaceable>sample.idx</replaceable></filename> - you have to pass
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
166 <application>MPlayer</application> the <option>-vobsub sample
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
167 [-vobsubid <replaceable>id</replaceable>]</option> options
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
168 (full path optional). The <option>-vobsubid</option> option is like
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
169 <option>-sid</option> for DVDs, you can choose between subtitle tracks
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
170 (languages) with it. In case that <option>-vobsubid</option> is omitted,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
171 <application>MPlayer</application> will try to use the languages given by the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
172 <option>-slang</option> option and fall back to the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
173 <systemitem>langidx</systemitem> in the <filename>.IDX</filename> file to set
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
174 the subtitle language. If it fails, there will be no subtitles.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
175 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
176 </formalpara>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
177
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
178 <formalpara>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
179 <title>Other subtitles</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
180 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
181 The other formats consist of a single text file containing timing,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
182 placement and text information. Usage: If you have a file like
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
183 <filename><replaceable>sample.txt</replaceable></filename>,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
184 you have to pass the option <option>-sub
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
185 <replaceable>sample.txt</replaceable></option> (full path optional).
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
186 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
187 </formalpara>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
188
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
189 <variablelist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
190 <title>Adjusting subtitle timing and placement:</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
191 <varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
192 <term><option>-subdelay <replaceable>sec</replaceable></option></term>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
193 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
194 Delays subtitles by <option><replaceable>sec</replaceable></option> seconds.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
195 Can be negative. The value is added to movie's time position counter.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
196 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
197 </varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
198 <varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
199 <term><option>-subfps <replaceable>RATE</replaceable></option></term>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
200 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
201 Specify frame/sec rate of subtitle file (float number).
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
202 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
203 </varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
204 <varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
205 <term><option>-subpos <replaceable>0-100</replaceable></option></term>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
206 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
207 Specify the position of subtitles.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
208 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
209 </varlistentry>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
210 </variablelist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
211
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
212 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
213 If you experience a growing delay between the movie and the subtitles when
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
214 using a MicroDVD subtitle file, most likely the framerate of the movie and
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
215 the subtitle file are different. Please note that the MicroDVD subtitle
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
216 format uses absolute frame numbers for its timing, but there is no fps
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
217 information in it, and therefore the <option>-subfps</option> option should
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
218 be used with this format. If you like to solve this problem permanently,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
219 you have to manually convert the subtitle file framerate.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
220 <application>MPlayer</application> can do this
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
221 conversion for you:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
222
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
223 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
224 mplayer -dumpmicrodvdsub -fps <replaceable>subtitles_fps</replaceable> -subfps <replaceable>avi_fps</replaceable> \
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
225 -sub <replaceable>subtitle_filename</replaceable> <replaceable>dummy.avi</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
226 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
227 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
228
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
229 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
230 About DVD subtitles, read the <link linkend="dvd">DVD</link> section.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
231 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
232 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
233
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
234
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
235 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
236
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
237
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
238 <sect1 id="control">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
239 <title>Control</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
240
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
241 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
242 <application>MPlayer</application> has a fully configurable, command
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
243 driven, control layer which lets you control
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
244 <application>MPlayer</application> with keyboard, mouse, joystick or remote
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
245 control (using LIRC). See the man page for the complete list of keyboard controls.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
246 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
247
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
248 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
249
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
250 <sect2 id="ctrl-cfg">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
251 <title>Controls configuration</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
252
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
253 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
254 <application>MPlayer</application> allows you bind any key/button to any
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
255 <application>MPlayer</application> command using a simple config file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
256 The syntax consist of a key name followed by a command. The default config file location is
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
257 <filename>$HOME/.mplayer/input.conf</filename> but it can be overridden
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
258 using the <option>-input <replaceable>conf</replaceable></option> option
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
259 (relative path are relative to <filename>$HOME/.mplayer</filename>).
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
260 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
261
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
262 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
263 You can get a full list of supported key names by running
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
264 <command>mplayer -input keylist</command>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
265 and a full list of available commands by running
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
266 <command>mplayer -input cmdlist</command>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
267 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
268
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
269 <example id="input_control_file">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
270 <title>A simple input control file</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
271 <programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
272 ##
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
273 ## MPlayer input control file
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
274 ##
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
275
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
276 RIGHT seek +10
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
277 LEFT seek -10
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
278 - audio_delay 0.100
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
279 + audio_delay -0.100
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
280 q quit
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
281 &gt; pt_step 1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
282 &lt; pt_step -1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
283 ENTER pt_step 1 1<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
284 --></programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
285 </example>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
286 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
287
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
288 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
289
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
290 <sect2 id="lirc">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
291 <title>Control from LIRC</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
292
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
293 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
294 Linux Infrared Remote Control - use an easy to build home-brewed IR-receiver,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
295 an (almost) arbitrary remote control and control your Linux box with it!
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
296 More about it on the <ulink url="http://www.lirc.org">LIRC homepage</ulink>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
297 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
298
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
299 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
300 If you have the LIRC package installed, <filename>configure</filename> will
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
301 autodetect it. If everything went fine, <application>MPlayer</application>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
302 will print "<systemitem>Setting up LIRC support...</systemitem>"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
303 on startup. If an error occurs it will tell you. If there is no message about
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
304 LIRC there is no support compiled in. That's it :-)
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
305 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
306
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
307 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
308 The application name for <application>MPlayer</application> is - surprise -
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
309 <filename>mplayer</filename>. You can use any <application>MPlayer</application>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
310 commands and even pass more than one command by separating them with
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
311 <literal>\n</literal>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
312 Do not forget to enable the repeat flag in <filename>.lircrc</filename> when
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
313 it makes sense (seek, volume, etc). Here is an excerpt from a sample
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
314 <filename>.lircrc</filename>:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
315 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
316
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
317 <programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
318 begin
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
319 button = VOLUME_PLUS
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
320 prog = mplayer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
321 config = volume 1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
322 repeat = 1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
323 end
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
324
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
325 begin
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
326 button = VOLUME_MINUS
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
327 prog = mplayer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
328 config = volume -1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
329 repeat = 1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
330 end
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
331
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
332 begin
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
333 button = CD_PLAY
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
334 prog = mplayer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
335 config = pause
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
336 end
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
337
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
338 begin
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
339 button = CD_STOP
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
340 prog = mplayer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
341 config = seek 0 1\npause
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
342 end<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
343 --></programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
344
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
345 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
346 If you do not like the standard location for the lirc-config file
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
347 (<filename>~/.lircrc</filename>) use the <option>-lircconf
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
348 <replaceable>filename</replaceable></option> switch to specify another
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
349 file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
350 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
351 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
352
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
353 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
354
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
355 <sect2 id="slave-mode">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
356 <title>Slave mode</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
357
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
358 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
359 The slave mode allows you to build simple frontends to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
360 <application>MPlayer</application>. When run with the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
361 <option>-slave</option> option <application>MPlayer</application> will
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
362 read commands separated by a newline (\n) from stdin.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
363 The commands are documented in the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
364 <ulink url="../../tech/slave.txt">slave.txt</ulink> file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
365 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
366 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
367 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
368
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
369
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
370 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
371
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
372
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
373 <sect1 id="streaming">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
374 <title>Streaming from network or pipes</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
375
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
376 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
377 <application>MPlayer</application> can play files from the network, using the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
378 HTTP, FTP, MMS or RTSP/RTP protocol.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
379 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
380
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
381 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
382 Playing works simply by passing the URL on the command line.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
383 <application>MPlayer</application> honors the <envar>http_proxy</envar>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
384 environment variable, using a proxy if available. Proxies can also be forced:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
385 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
386 mplayer <replaceable>http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
387 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
388 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
389
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
390 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
391 <application>MPlayer</application> can read from stdin
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
392 (<emphasis>not</emphasis> named pipes). This can for example be used to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
393 play from FTP:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
394 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
395 wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
396 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
397 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
398
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
399 <note><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
400 It is also recommended to enable <option>-cache</option> when playing
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
401 from the network:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
402 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
403 wget <replaceable>ftp://micorsops.com/something.avi</replaceable> -O - | mplayer -cache 8192 -
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
404 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
405 </para></note>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
406
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
407 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
408
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
409 <sect2 id="streaming-save">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
410 <title>Saving streamed content</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
411
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
412 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
413 Once you succeed in making <application>MPlayer</application> play
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
414 your favorite internet stream, you can use the option
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
415 <option>-dumpstream</option> to save the stream into a file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
416 For example:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
417 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
418 mplayer <replaceable>http://217.71.208.37:8006</replaceable> -dumpstream -dumpfile <replaceable>stream.asf</replaceable>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
419 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
420 will save the content streamed from
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
421 <replaceable>http://217.71.208.37:8006</replaceable> into
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
422 <replaceable>stream.asf</replaceable>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
423 This works with all protocols supported by
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
424 <application>MPlayer</application>, like MMS, RTSP, and so forth.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
425 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
426 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
427 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
428
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
429
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
430 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
431
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
432
31890
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
433 <sect1 id="drives">
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
434 <title>CD/DVD驱动器</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
435
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
436 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
437 现代的CD-ROM驱动器能达到很高的速度,然而一些CD-ROM也可以在降低速度下运行。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
438 有几条原因可能使你考虑改变CD-ROM的读盘速度:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
439 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
440
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
441 <itemizedlist>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
442 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
443 有报告称告诉读取可产生错误,尤其是制作恶劣的CD-ROM。降低速度可以防止这些
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
444 情况下的数据丢失。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
445 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
446
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
447 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
448 许多CD-ROM驱动器有很讨厌的噪音,低俗可以降低这些噪音。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
449 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
450 </itemizedlist>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
451
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
452 <!-- ********** -->
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
453
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
454 <sect2 id="drives_linux">
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
455 <title>Linux</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
456
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
457 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
458 你可以使用<command>hdparm</command>,<command>setcd</command>或
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
459 <command>cdctl</command>以减慢IDE CD-ROM的驱动器。使用方法如下:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
460 <screen>hdparm -E <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
461 <screen>setcd -x <replaceable>[speed]</replaceable> <replaceable>[cdrom device]</replaceable></screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
462 <screen>cdctl -bS <replaceable>[speed]</replaceable></screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
463 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
464
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
465 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
466 如果你使用SCSI模拟,你必须把设置应用到真正的IDE驱动器,不是被
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
467 模拟的SCSI设备。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
468 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
469
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
470 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
471 如果你有root权限,下面的命令也可能有帮助:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
472 <screen>echo file_readahead:2000000 &gt; /proc/ide/<replaceable>[cdrom device]</replaceable>/settings</screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
473 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
474
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
475 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
476 这将预读取的文件设置为2MB,这对有划痕的CD-ROM有帮助。如果你设置
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
477 的太大,驱动器会不断来回转动,极大降低性能。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
478 推荐你使用<command>hdparm</command>调整你的CD-ROM:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
479 <screen>hdparm -d1 -a8 -u1 <replaceable>[cdrom device]</replaceable></screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
480 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
481
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
482 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
483 这开启了DMA读取,预读,以及IRQ遮盖(对于详细解释阅读
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
484 <command>hdparm</command>man页)。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
485 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
486
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
487 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
488 请阅读
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
489 "<filename>/proc/ide/<replaceable>[cdrom device]</replaceable>/settings</filename>"
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
490 以很好调整你的CD-ROM。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
491 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
492
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
493 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
494 SCSI驱动器没有统一设置参数的方法(你知道?告诉我们!),有一个工具
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
495 <ulink url="http://das.ist.org/~georg/">Plextor SCSI drives</ulink>可参照。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
496 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
497 </sect2>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
498
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
499 <!-- ********** -->
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
500
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
501 <sect2 id="drives_freebsd">
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
502 <title>FreeBSD</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
503
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
504 <para>speed:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
505 <screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
506 cdcontrol [-f <replaceable>device</replaceable>] speed <replaceable>[speed]</replaceable>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
507 </screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
508 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
509
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
510 <para>DMA:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
511 <screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
512 sysctl hw.ata.atapi_dma=1
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
513 </screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
514 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
515
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
516 </sect2>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
517
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
518 </sect1>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
519
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
520
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
521 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
522
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
523
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
524 <sect1 id="dvd">
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
525 <title>DVD回放</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
526
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
527 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
528 对于完整的可用选项,请阅读man页。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
529 播放标准DVD的语法如下:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
530 <screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
531 mplayer dvd://<replaceable>&lt;track&gt;</replaceable> [-dvd-device <replaceable>&lt;device&gt;</replaceable>]
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
532 </screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
533 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
534
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
535 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
536 例如:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
537 <screen>mplayer dvd://1 -dvd-device /dev/hdc</screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
538 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
539
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
540 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
541 如果你使用dvdnav支持编译<application>MPlayer</application>,语法是一样的,但你要用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
542 dvdnav://而不用dvd://。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
543 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
544
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
545 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
546 默认的DVD设备是<filename>/dev/dvd</filename>。如果你的设置不同,创建
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
547 个连接或者在命令行中用<option>-dvd-device</option>指定正确的设备。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
548 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
549
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
550 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
551 对于DVD回放及解密,<application>MPlayer</application>使用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
552 <systemitem>libdvdread</systemitem>及<systemitem>libdvdcss</systemitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
553 这两个库在
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
554 <application>MPlayer</application>的源码树中,你不必单独安装。你也可以使用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
555 全系统可用的版本,但这种做法不被推荐,因为它能导致错误,库不兼容以及更慢的
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
556 速度。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
557 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
558
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
559 <note><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
560 对于DVD解码问题,尝试禁用supermount,或者其它相应特性。一些RPC-2驱动器
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
561 可能还需要设置区域代码。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
562 </para></note>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
563
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
564 <formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
565 <title>DVD结构</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
566 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
567 DVD磁盘的每个簇有带有ECC/CRC的2048字节。每个轨上采用UDF文件格式,包含各种文
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
568 件(小的.IFO及.BUK文件以极大的(1GB)的.VOB文件)。它们是真正的文件能从被挂
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
569 载的未加密的DVD中复制/播放。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
570 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
571 </formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
572
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
573 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
574 .IFO文件包含电影的浏览信息(章/标题/视角图,语言表等),它们被用于读及解析
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
575 .VOB的内容(影片)。.BUK文件是它们的备份。他们到处使用<emphasis role="bold">簇</emphasis>,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
576 所以你需要指定光盘上真正的簇地址以完成DVD浏览或对内容进行解密。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
577 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
578
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
579 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
580 DVD支持通过原始的对设备基于簇的访问。不幸的是,(在Linux中)要得到一个文件
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
581 的簇地址,你必须是超级用户。那就是我们不使用内核的文件系统的原因,我们在用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
582 户层对此进行了重新实现。<systemitem>libdvdread</systemitem> 0.9.x完成了此项
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
583 工作。我们并不需要内核中的UDF文件系统驱动因为它们已经有了自己内置的UDF文件
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
584 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
585
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
586 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
587 有时<filename>/dev/dvd</filename>对用户不可读,所以
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
588 <systemitem>libdvdread</systemitem>的作者实现了一个模拟层,其实现了将簇地址
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
589 提交到文件名+偏移量中,以模拟在挂载的文件系统甚至是硬盘上的直接访问。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
590 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
591
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
592 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
593 <systemitem>libdvdread</systemitem>对于直接访问甚至支持挂载点而不是设备名并
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
594 检查<filename>/proc/mounts</filename>以得到设备名称。其被开发在Solaris上,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
595 在那系统上设备名是动态分配的。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
596 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
597
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
598 <formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
599 <title>DVD解密</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
600 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
601 DVD解密通过<systemitem>libdvdcss</systemitem>完成。这个方法可以通过
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
602 <envar>DVDCSS_METHOD</envar>环境变量设置,具体细节参考man页。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
603 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
604 </formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
605
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
606 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
607 RPC-1 DVD驱动器只使用软件对区域设置进行保护。RPC-2驱动器有一个硬件保护,只准
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
608 许做5次更改。你可能需要或被推荐把firmware升级到RPC-1,如果你有个RPC-2 DVD驱动
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
609 器。你可以在因特网上寻找firmware的升级,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
610 <ulink url="http://forum.rpc-1.com/dl_all.php">此firmware论坛</ulink>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
611 对你的搜索可能是个好起点。如果没有针对你的设备的firmware升级,使用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
612 <ulink url="http://linvdr.org/projects/regionset/">区域工具</ulink>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
613 来设置你DVD的区域码(在Linux下)。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
614 <emphasis role="bold">警告</emphasis>:你只可以设置5次区域。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
615 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
616 </sect1>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
617
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
618
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
619 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
620
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
621
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
622 <sect1 id="vcd">
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
623 <title>VCD回放</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
624
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
625 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
626 对于可用选项的详细列表,请阅读man页。对于标准视频CD (VCD)的语法如下:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
627 <screen>mplayer vcd://<replaceable>&lt;track&gt;</replaceable> [-cdrom-device <replaceable>&lt;device&gt;</replaceable>]</screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
628 例如:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
629 <screen>mplayer vcd://2 -cdrom-device /dev/hdc</screen>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
630 默认的VCD设备是<filename>/dev/cdrom</filename>。如果你的设置不同,建
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
631 立个连接或者在命令行通过<option>-cdrom-device</option>选项指定正确设备。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
632 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
633
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
634 <note><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
635 至少Plextor及一些Toshiba SCSI CD-ROM驱动器对读取VCD有着恐怖的性能。这是因为
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
636 针对这些设备的CDROMREADRAW <systemitem>ioctl</systemitem>没有完成。如果你有
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
637 SCSI编程知识,请<ulink url="../../tech/patches.txt">帮我们</ulink>实现对SCSI
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
638 VCD的支持。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
639 </para></note>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
640
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
641 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
642 同时,你可以通过
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
643 In the meantime you can extract data from VCDs with
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
644 <ulink url="http://ftp.ntut.edu.tw/ftp/OS/Linux/packages/X/viewers/readvcd/">readvcd</ulink>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
645 从VCD提取数据并用<application>MPlayer</application>播放最终文件。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
646 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
647
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
648 <formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
649 <title>VCD结构</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
650 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
651 视频CD (VCD)由CD-ROM XA簇组成,例如CD-ROM 模式 2
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
652 表格1及2轨:
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
653 <itemizedlist>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
654 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
655 第一个轨道处于模式2表格2格式下,这意味着他使用L2错误恢复。此轨道含有
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
656 ISO-9660文件系统,其拥有2048字节/簇。此文件系统含有VCD属性数据信息,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
657 以及经常用于菜单上的静态桢。对菜单的MPEG块也能存于这第一个轨道上,但
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
658 MPEG不得不被分散成一系列的150个簇的块。ISO-9660文件系统可以包含其它
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
659 对于VCD操作不重要的文件或程序。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
660 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
661
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
662 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
663 第二及余下的轨道通常是原始的2324字节/簇的MPEG(影片)轨道,每个簇包含
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
664 一个MPEG PS数据包。这些处于模式2表格1格式,所以他们没簇存储更多数据,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
665 损失了一些纠错。在一个VCD的第一个轨道后也包含CD-DA轨道也是合法的。在
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
666 一些操作系统中,有些技巧是这些非ISO-9660轨道出现在文件系统中。在另外
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
667 一些操作系统中如GNU/Linux,这还(未)被实现。在此,MPEG数据
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
668 <emphasis role="bold">不能被挂载</emphasis>。因为大部分电影在这种轨道
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
669 内,你应先试<option>vcd://2</option>。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
670 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
671
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
672 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
673 还存在没有第一个轨道的VCD(单一轨道根本没有文件系统)。他们仍然是可
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
674 播放的,但不能被挂载。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
675 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
676
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
677 <listitem><para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
678 视频CD的定义被称为Philips"白皮书",它通常并不出现在网上因为它要从
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
679 Philips购买。对于视频CD更详细的资料可从
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
680 <ulink url="http://www.vcdimager.org/pub/vcdimager/manuals/0.7/vcdimager.html#SEC4">vcdimager文档</ulink>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
681 获取。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
682 </para></listitem>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
683 </itemizedlist>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
684 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
685 </formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
686
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
687 <formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
688 <title>关于.DAT文件</title>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
689 <para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
690 被挂载的VCD上处于第一个轨道上的~600MB的文件并不是真正的文件!它是所谓的ISO网
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
691 关,其被创建以便Windows处理这些轨道(Windows根本不允许应用程序直接访问原始设
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
692 备)。在Linux下你不能复制或播放这些文件(它们包含垃圾)。在Windows下,这是可
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
693 能的因为他的iso9660驱动模拟了在文件内直接读取轨道。要播放.DAT文件,你需要内核
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
694 驱动,岂可再PowerDVD的Linux版本中找到。其有一个更改的iso9660文件系统
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
695 (<filename>vcdfs/isofs-2.4.X.o</filename>)驱动,你可以通过<application>MPlayer</application>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
696 复制甚至播放.DAT文件。但在Linux内核的标准的iso9660驱动上它不能工作!另外使用
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
697 使用<option>vcd://</option>。对于VCD复制另外的方法是内核新的
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
698 <ulink url="http://www.elis.rug.ac.be/~ronsse/cdfs/">cdfs</ulink>驱动(不是
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
699 官方内核的一部分)其将CD会话显示为镜像文件及<ulink url="http://cdrdao.sf.net/">cdrdao</ulink>,
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
700 一个逐位的CD抓轨/复制程序。
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
701 </para>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
702 </formalpara>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
703 </sect1>
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
704
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
705
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
706 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
707
d335ceb31507 Merge CD/DVD chapter into the usage chapter for all translations.
diego
parents: 31885
diff changeset
708
31885
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
709 <sect1 id="edl" xreflabel="Edit Decision Lists (EDL)">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
710 <title>Edit Decision Lists (EDL)</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
711
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
712 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
713 The edit decision list (EDL) system allows you to automatically skip
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
714 or mute sections of videos during playback, based on a movie specific
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
715 EDL configuration file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
716 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
717
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
718 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
719 This is useful for those who may want to watch a film in "family-friendly"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
720 mode. You can cut out any violence, profanity, Jar-Jar Binks .. from a movie
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
721 according to your own personal preferences. Aside from this, there are other
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
722 uses, like automatically skipping over commercials in video files you watch.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
723 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
724
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
725 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
726 The EDL file format is pretty bare-bones. There is one command per line that
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
727 indicates what to do (skip/mute) and when to do it (using pts in seconds).
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
728 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
729
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
730 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
731
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
732 <sect2 id="edl_using">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
733 <title>Using an EDL file</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
734
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
735 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
736 Include the <option>-edl &lt;filename&gt;</option> flag when you run
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
737 <application>MPlayer</application>, with the name of the EDL file you
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
738 want applied to the video.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
739 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
740 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
741
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
742 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
743
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
744 <sect2 id="edl_making">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
745 <title>Making an EDL file</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
746
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
747 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
748 The current EDL file format is:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
749 <programlisting>[begin second] [end second] [action]</programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
750 Where the seconds are floating-point numbers and the action is either
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
751 <literal>0</literal> for skip or <literal>1</literal> for mute. Example:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
752 <programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
753 5.3 7.1 0
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
754 15 16.7 1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
755 420 422 0
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
756 </programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
757 This will skip from second 5.3 to second 7.1 of the video, then mute at
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
758 15 seconds, unmute at 16.7 seconds and skip from second 420 to second 422
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
759 of the video. These actions will be performed when the playback timer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
760 reaches the times given in the file.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
761 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
762
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
763 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
764 To create an EDL file to work from, use the <option>-edlout
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
765 &lt;filename&gt;</option> flag. During playback, just hit <keycap>i</keycap> to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
766 mark the beginning and end of a skip block.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
767 A corresponding entry will be written to the file for that time.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
768 You can then go back and fine-tune the generated EDL file as well as
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
769 change the default operation which is to skip the block described by each line.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
770 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
771 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
772 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
773
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
774
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
775 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
776
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
777
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
778 <sect1 id="advaudio-surround">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
779 <title>Surround/Multichannel playback</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
780
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
781 <sect2 id="advaudio-surround-DVD">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
782 <title>DVDs</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
783
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
784 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
785 Most DVDs and many other files include surround sound.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
786 <application>MPlayer</application> supports surround playback but does not
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
787 enable it by default because stereo equipment is by far more common. To play a
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
788 file that has more than two channels of audio use <option>-channels</option>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
789 For example, to play a DVD with 5.1 audio:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
790 <screen>mplayer dvd://1 -channels 6</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
791 Note that despite the name "5.1" there are actually six discrete channels.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
792 If you have surround sound equipment it is safe to put the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
793 <option>channels</option> option in your <application>MPlayer</application>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
794 configuration file <filename>~/.mplayer/config</filename>. For example, to make
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
795 quadraphonic playback the default, add this line:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
796 <programlisting>channels=4</programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
797 <application>MPlayer</application> will then output audio in four channels when
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
798 all four channels are available.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
799 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
800 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
801
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
802
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
803 <sect2 id="advaudio-surround-stereoinfour">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
804 <title>Playing stereo files to four speakers</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
805
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
806 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
807 <application>MPlayer</application> does not duplicate any channels by default,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
808 and neither do most audio drivers. If you want to do that manually:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
809 <screen>mplayer <replaceable>filename</replaceable> -af channels=2:2:0:1:0:0</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
810 See the section on
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
811 <link linkend="advaudio-channels-copying">channel copying</link> for an
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
812 explanation.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
813 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
814 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
815
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
816
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
817 <sect2 id="advaudio-surround-passthrough">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
818 <title>AC-3/DTS Passthrough</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
819
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
820 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
821 DVDs usually have surround audio encoded in AC-3 (Dolby Digital) or DTS
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
822 (Digital Theater System) format. Some modern audio equipment is capable of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
823 decoding these formats internally. <application>MPlayer</application> can be
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
824 configured to relay the audio data without decoding it. This will only work if
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
825 you have a S/PDIF (Sony/Philips Digital Interface) jack in your sound card, or
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
826 if you are passing audio over HDMI.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
827 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
828
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
829 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
830 If your audio equipment can decode both AC-3 and DTS, you can safely enable
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
831 passthrough for both formats. Otherwise, enable passthrough for only the format
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
832 your equipment supports.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
833 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
834
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
835 <itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
836 <title>To enable passthrough on the command line:</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
837 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
838 For AC-3 only, use <option>-ac hwac3</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
839 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
840 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
841 For DTS only, use <option>-ac hwdts</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
842 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
843 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
844 For both AC-3 and DTS, use <option>-afm hwac3</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
845 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
846 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
847
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
848 <itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
849 <title>To enable passthrough in the <application>MPlayer</application>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
850 configuration file: </title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
851 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
852 For AC-3 only, use <option>ac=hwac3,</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
853 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
854 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
855 For DTS only, use <option>ac=hwdts,</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
856 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
857 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
858 For both AC-3 and DTS, use <option>afm=hwac3</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
859 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
860 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
861
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
862 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
863 Note that there is a comma (",") at the end of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
864 <option>ac=hwac3,</option> and <option>ac=hwdts,</option>. This will make
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
865 <application>MPlayer</application> fall back on the codecs it normally uses when
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
866 playing a file that does not have AC-3 or DTS audio.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
867 <option>afm=hwac3</option> does not need a comma;
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
868 <application>MPlayer</application> will fall back anyway when an audio family
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
869 is specified.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
870 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
871 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
872
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
873
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
874 <sect2 id="hwmpa-surround-passthrough">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
875 <title>MPEG audio Passthrough</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
876
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
877 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
878 Digital TV transmissions (such as DVB and ATSC) and some DVDs usually have
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
879 MPEG audio streams (in particular MP2).
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
880 Some MPEG hardware decoders such as full-featured DVB cards and DXR2
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
881 adapters can natively decode this format.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
882 <application>MPlayer</application> can be configured to relay the audio data
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
883 without decoding it.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
884 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
885
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
886 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
887 To use this codec:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
888 <screen> mplayer -ac hwmpa </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
889 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
890 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
891
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
892
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
893 <sect2 id="advaudio-surround-matrix">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
894 <title>Matrix-encoded audio</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
895
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
896 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
897 <emphasis>***TODO***</emphasis>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
898 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
899
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
900 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
901 This section has yet to be written and cannot be completed until somebody
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
902 provides sample files for us to test. If you have any matrix-encoded audio
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
903 files, know where to find some, or have any information that could be helpful,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
904 please send a message to the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
905 <ulink url="http://lists.mplayerhq.hu/mailman/listinfo/mplayer-docs">MPlayer-DOCS</ulink>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
906 mailing list. Put "[matrix-encoded audio]" in the subject line.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
907 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
908
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
909 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
910 If no files or further information are forthcoming this section will be dropped.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
911 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
912
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
913 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
914 Good links:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
915 <itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
916 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
917 <ulink url="http://electronics.howstuffworks.com/surround-sound5.htm">http://electronics.howstuffworks.com/surround-sound5.htm</ulink>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
918 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
919 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
920 <ulink url="http://www.extremetech.com/article2/0,1697,1016875,00.asp">http://www.extremetech.com/article2/0,1697,1016875,00.asp</ulink>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
921 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
922 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
923 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
924 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
925
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
926
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
927 <sect2 id="advaudio-surround-hrtf">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
928 <title>Surround emulation in headphones</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
929
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
930 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
931 <application>MPlayer</application> includes an HRTF (Head Related Transfer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
932 Function) filter based on an
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
933 <ulink url="http://sound.media.mit.edu/KEMAR.html">MIT project</ulink>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
934 wherein measurements were taken from microphones mounted on a dummy human head.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
935 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
936
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
937 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
938 Although it is not possible to exactly imitate a surround system,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
939 <application>MPlayer</application>'s HRTF filter does provide more spatially
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
940 immersive audio in 2-channel headphones. Regular downmixing simply combines all
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
941 the channels into two; besides combining the channels, <option>hrtf</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
942 generates subtle echoes, increases the stereo separation slightly, and alters
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
943 the volume of some frequencies. Whether HRTF sounds better may be dependent on
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
944 the source audio and a matter of personal taste, but it is definitely worth
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
945 trying out.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
946 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
947
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
948 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
949 To play a DVD with HRTF:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
950 <screen>mplayer dvd://1 -channels 6 -af hrtf</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
951 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
952
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
953 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
954 <option>hrtf</option> only works well with 5 or 6 channels. Also,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
955 <option>hrtf</option> requires 48 kHz audio. DVD audio is already 48 kHz, but if
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
956 you have a file with a different sampling rate that you want to play using
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
957 <option>hrtf</option> you must resample it:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
958 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
959 mplayer <replaceable>filename</replaceable> -channels 6 -af resample=48000,hrtf
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
960 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
961 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
962 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
963
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
964
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
965 <sect2 id="advaudio-surround-troubleshooting">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
966 <title>Troubleshooting</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
967
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
968 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
969 If you do not hear any sound out of your surround channels, check your mixer
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
970 settings with a mixer program such as <application>alsamixer</application>;
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
971 audio outputs are often muted and set to zero volume by default.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
972 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
973 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
974 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
975
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
976 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
977
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
978 <sect1 id="advaudio-channels">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
979 <title>Channel manipulation</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
980
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
981 <sect2 id="advaudio-channels-general">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
982 <title>General information</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
983
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
984 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
985 Unfortunately, there is no standard for how channels are ordered. The orders
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
986 listed below are those of AC-3 and are fairly typical; try them and see if your
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
987 source matches. Channels are numbered starting with 0.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
988
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
989 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
990 <title>mono</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
991 <listitem override="0"><para>center</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
992 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
993
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
994 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
995 <title>stereo</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
996 <listitem override="0"><para>left</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
997 <listitem><para>right</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
998 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
999
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1000 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1001 <title>quadraphonic</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1002 <listitem override="0"><para>left front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1003 <listitem><para>right front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1004 <listitem><para>left rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1005 <listitem><para>right rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1006 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1007
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1008 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1009 <title>surround 4.0</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1010 <listitem override="0"><para>left front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1011 <listitem><para>right front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1012 <listitem><para>center rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1013 <listitem><para>center front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1014 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1015
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1016 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1017 <title>surround 5.0</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1018 <listitem override="0"><para>left front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1019 <listitem><para>right front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1020 <listitem><para>left rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1021 <listitem><para>right rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1022 <listitem><para>center front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1023 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1024
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1025 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1026 <title>surround 5.1</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1027 <listitem override="0"><para>left front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1028 <listitem><para>right front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1029 <listitem><para>left rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1030 <listitem><para>right rear</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1031 <listitem><para>center front</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1032 <listitem><para>subwoofer</para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1033 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1034 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1035
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1036 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1037 The <option>-channels</option> option is used to request the number of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1038 channels from the audio decoder. Some audio codecs use the number of specified
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1039 channels to decide if downmixing the source is necessary. Note that this does
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1040 not always affect the number of output channels. For example, using
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1041 <option>-channels 4</option> to play a stereo MP3 file will still result in
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1042 2-channel output since the MP3 codec will not produce the extra channels.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1043 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1044
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1045 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1046 The <option>channels</option> audio filter can be used to create or remove
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1047 channels and is useful for controlling the number of channels sent to the sound
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1048 card. See the following sections for more information on channel manipulation.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1049 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1050 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1051
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1052
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1053 <sect2 id="advaudio-channels-mono">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1054 <title>Playing mono with two speakers</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1055
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1056 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1057 Mono sounds a lot better when played through two speakers - especially when
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1058 using headphones. Audio files that truly have one channel are automatically
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1059 played through two speakers; unfortunately, most files with mono sound are
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1060 actually encoded as stereo with one channel silent. The easiest and most
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1061 foolproof way to make both speakers output the same audio is the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1062 <option>extrastereo</option> filter:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1063 <screen>mplayer <replaceable>filename</replaceable> -af extrastereo=0</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1064 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1065
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1066 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1067 This averages both channels, resulting in both channels being half as loud as
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1068 the original. The next sections have examples of other ways to do this without a
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1069 volume decrease, but they are more complex and require different options
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1070 depending on which channel to keep. If you really need to maintain the volume,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1071 it may be easier to experiment with the <option>volume</option> filter and find
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1072 the right value. For example:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1073 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1074 mplayer <replaceable>filename</replaceable> -af extrastereo=0,volume=5
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1075 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1076 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1077 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1078
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1079
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1080 <sect2 id="advaudio-channels-copying">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1081 <title>Channel copying/moving</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1082
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1083 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1084 The <option>channels</option> filter can move any or all channels.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1085 Setting up all the suboptions for the <option>channels</option>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1086 filter can be complicated and takes a little care.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1087
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1088 <orderedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1089 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1090 Decide how many output channels you need. This is the first suboption.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1091 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1092 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1093 Count how many channel moves you will do. This is the second suboption. Each
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1094 channel can be moved to several different channels at the same time, but keep
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1095 in mind that when a channel is moved (even if to only one destination) the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1096 source channel will be empty unless another channel is moved into it. To copy
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1097 a channel, keeping the source the same, simply move the channel into both the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1098 destination and the source. For example:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1099 <programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1100 channel 2 --> channel 3
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1101 channel 2 --> channel 2<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1102 --></programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1103 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1104 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1105 Write out the channel copies as pairs of suboptions. Note that the first
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1106 channel is 0, the second is 1, etc. The order of these suboptions does not
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1107 matter as long as they are properly grouped into
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1108 <replaceable>source:destination</replaceable> pairs.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1109 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1110 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1111 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1112
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1113 <bridgehead>Example: one channel in two speakers</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1114 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1115 Here is an example of another way to play one channel in both speakers. Suppose
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1116 for this example that the left channel should be played and the right channel
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1117 discarded. Following the steps above:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1118 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1119 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1120 In order to provide an output channel for each of the two speakers, the first
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1121 suboption must be "2".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1122 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1123 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1124 The left channel needs to be moved to the right channel, and also must be
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1125 moved to itself so it won't be empty. This is a total of two moves, making
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1126 the second suboption "2" as well.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1127 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1128 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1129 To move the left channel (channel 0) into the right channel (channel 1), the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1130 suboption pair is "0:1", "0:0" moves the left channel onto itself.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1131 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1132 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1133 Putting that all together gives:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1134 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1135 mplayer <replaceable>filename</replaceable> -af channels=2:2:0:1:0:0
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1136 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1137 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1138
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1139 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1140 The advantage this example has over <option>extrastereo</option> is that the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1141 volume of each output channel is the same as the input channel. The disadvantage
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1142 is that the suboptions must be changed to "2:2:1:0:1:1" when the desired audio
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1143 is in the right channel. Also, it is more difficult to remember and type.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1144 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1145
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1146 <bridgehead>Example: left channel in two speakers shortcut</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1147 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1148 There is actually a much easier way to use the <option>channels</option> filter
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1149 for playing the left channel in both speakers:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1150 <screen>mplayer <replaceable>filename</replaceable> -af channels=1</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1151 The second channel is discarded and, with no further suboptions, the single
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1152 remaining channel is left alone. Sound card drivers automatically play
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1153 single-channel audio in both speakers. This only works when the desired channel
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1154 is on the left.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1155 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1156
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1157 <bridgehead>Example: duplicate front channels to the rear</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1158 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1159 Another common operation is to duplicate the front channels and play them back
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1160 on the rear speakers of a quadraphonic setup.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1161 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1162 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1163 There should be four output channels. The first suboption is "4".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1164 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1165 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1166 Each of the two front channels needs to be moved to the corresponding rear
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1167 channel and also to itself. This is four moves, so the second suboption is "4".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1168 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1169 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1170 The left front (channel 0) needs to moved to the left rear (channel 2):
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1171 "0:2". The left front also needs to be moved to itself: "0:0". The right
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1172 front (channel 1) is moved to the right rear (channel 3): "1:3", and also to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1173 itself: "1:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1174 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1175 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1176 Combine all the suboptions to get:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1177 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1178 mplayer <replaceable>filename</replaceable> -af channels=4:4:0:2:0:0:1:3:1:1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1179 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1180 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1181 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1182
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1183
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1184 <sect2 id="advaudio-channels-mixing">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1185 <title>Channel mixing</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1186
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1187 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1188 The <option>pan</option> filter can mix channels in user-specified proportions.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1189 This allows for everything the <option>channels</option> filter can do and
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1190 more. Unfortunately, the suboptions are much more complicated.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1191 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1192 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1193 Decide how many channels to work with. You may need to specify this with
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1194 <option>-channels</option> and/or <option>-af channels</option>.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1195 Later examples will show when to use which.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1196 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1197 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1198 Decide how many channels to feed into <option>pan</option> (further decoded
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1199 channels are discarded). This is the first suboption, and it also controls how
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1200 many channels to employ for output.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1201 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1202 <listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1203 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1204 The remaining suboptions specify how much of each channel gets mixed into each
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1205 other channel. This is the complicated part. To break the task down, split the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1206 suboptions into several sets, one set for each input channel. Each suboption
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1207 within a set corresponds to an output channel. The number you specify will be
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1208 the percentage of the input channel that gets mixed into the output channel.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1209 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1210 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1211 <option>pan</option> accepts values from 0 to 512, yielding 0% to 51200% of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1212 the original volume. Be careful when using values greater than 1. Not only
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1213 can this give you very high volume, but if you exceed the sample range of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1214 your sound card you may hear painful pops and clicks. If you want you can
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1215 follow <option>pan</option> with <option>,volume</option> to enable clipping,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1216 but it is best to keep the values of <option>pan</option> low enough that
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1217 clipping is not necessary.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1218 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1219 </listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1220 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1221 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1222
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1223 <bridgehead>Example: one channel in two speakers</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1224 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1225 Here is yet another example for playing the left channel in two speakers. Follow
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1226 the steps above:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1227 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1228 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1229 <option>pan</option> should output two channels, so the first
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1230 suboption is "2".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1231 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1232 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1233 Since we have two input channels, there will be two sets of suboptions.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1234 Since there are also two output channels,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1235 there will be two suboptions per set.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1236 The left channel from the file should go with full volume to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1237 the new left and the right channels.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1238 Thus the first set of suboptions is "1:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1239 The right channel should be discarded, so the second would be "0:0".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1240 Any 0 values at the end can be left out, but for ease of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1241 understanding we will keep them.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1242 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1243 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1244 Putting those options together gives:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1245 <screen>mplayer <replaceable>filename</replaceable> -af pan=2:1:1:0:0</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1246 If the right channel is desired instead of the left, the suboptions to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1247 <option>pan</option> will be "2:0:0:1:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1248 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1249
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1250
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1251 <bridgehead>Example: left channel in two speakers shortcut</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1252 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1253 As with <option>channels</option>, there is a shortcut that only works with the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1254 left channel:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1255 <screen>mplayer <replaceable>filename</replaceable> -af pan=1:1</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1256 Since <option>pan</option> has only one channel of input (the other channel is
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1257 discarded), there is only one set with one suboption, which specifies that the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1258 only channel gets 100% of itself.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1259 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1260
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1261 <bridgehead>Example: downmixing 6-channel PCM</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1262 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1263 <application>MPlayer</application>'s decoder for 6-channel PCM is not capable of
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1264 downmixing. Here is a way to downmix PCM using <option>pan</option>:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1265 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1266 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1267 The number of output channels is 2, so the first suboption is "2".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1268 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1269 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1270 With six input channels there will be six sets of options. Fortunately,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1271 since we only care about the output of the first two channels, we only need to
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1272 make two sets; the remaining four sets can be omitted. Beware that not all
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1273 multichannel audio files have the same channel order! This example
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1274 demonstrates downmixing a file with the same channels as AC-3 5.1:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1275 <programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1276 0 - front left
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1277 1 - front right
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1278 2 - rear left
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1279 3 - rear right
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1280 4 - center front
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1281 5 - subwoofer<!--
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1282 --></programlisting>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1283 The first set of suboptions lists the percentages of the original volume, in
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1284 order, which each output channel should receive from the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1285 front left channel: "1:0".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1286 The front right channel should go into the right output: "0:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1287 The same for the rear channels: "1:0" and "0:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1288 The center channel goes into both output channels with half volume:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1289 "0.5:0.5", and the subwoofer goes into both with full volume: "1:1".
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1290 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1291 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1292 Put all that together, for:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1293 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1294 mplayer <replaceable>6-channel.wav</replaceable> -af pan=2:1:0:0:1:1:0:0:1:0.5:0.5:1:1
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1295 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1296 The percentages listed above are only a rough example. Feel free to tweak them.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1297 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1298
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1299 <bridgehead>Example: Playing 5.1 audio on big speakers without a subwoofer</bridgehead>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1300 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1301 If you have a huge pair of front speakers you may not want to waste any money on
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1302 buying a subwoofer for a complete 5.1 sound system. If you use
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1303 <option>-channels 5</option> to request that liba52 decode 5.1 audio in 5.0,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1304 the subwoofer channel is simply discarded. If you want to distribute the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1305 subwoofer channel yourself you need to downmix manually with
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1306 <option>pan</option>:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1307 <orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1308 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1309 Since <option>pan</option> needs to examine all six channels, specify
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1310 <option>-channels 6</option> so liba52 decodes them all.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1311 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1312 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1313 <option>pan</option> outputs to only five channels, the first suboption is 5.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1314 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1315 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1316 Six input channels and five output channels means six sets of five suboptions.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1317 <itemizedlist spacing="compact">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1318 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1319 The left front channel only replicates onto itself:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1320 "1:0:0:0:0"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1321 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1322 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1323 Same for the right front channel:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1324 "0:1:0:0:0"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1325 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1326 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1327 Same for the left rear channel:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1328 "0:0:1:0:0"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1329 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1330 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1331 And also the same for the right rear channel:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1332 "0:0:0:1:0"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1333 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1334 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1335 Center front, too:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1336 "0:0:0:0:1"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1337 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1338 <listitem><para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1339 And now we have to decide what to do with the subwoofer,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1340 e.g. half into front right and front left:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1341 "0.5:0.5:0:0:0"
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1342 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1343 </itemizedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1344 </para></listitem>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1345 </orderedlist>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1346 Combine all those options to get:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1347 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1348 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
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1349 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1350 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1351 </sect2>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1352 </sect1>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1353
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1354 <!-- ********** -->
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1355
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1356 <sect1 id="advaudio-volume">
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1357 <title>Software Volume adjustment</title>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1358
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1359 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1360 Some audio tracks are too quiet to be heard comfortably without amplification.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1361 This becomes a problem when your audio equipment cannot amplify the signal for
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1362 you. The <option>-softvol</option> option directs
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1363 <application>MPlayer</application> to use an internal mixer. You can then use
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1364 the volume adjustment keys (by default <keycap>9</keycap> and
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1365 <keycap>0</keycap>) to reach much higher volume levels. Note that this does not
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1366 bypass your sound card's mixer; <application>MPlayer</application> only
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1367 amplifies the signal before sending it to your sound card.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1368 The following example is a good start:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1369 <screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1370 mplayer <replaceable>quiet-file</replaceable> -softvol -softvol-max 300
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1371 </screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1372 The <option>-softvol-max</option> option specifies the maximum allowable output
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1373 volume as a percentage of the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1374 original volume. For example, <option>-softvol-max 200</option> would allow the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1375 volume to be adjusted up to twice its original level.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1376 It is safe to specify a large value with
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1377 <option>-softvol-max</option>; the higher volume will not be used until you
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1378 use the volume adjustment keys. The only disadvantage of a large value is that,
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1379 since <application>MPlayer</application> adjusts volume by a percentage of the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1380 maximum, you will not have as precise control when using the volume adjustment
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1381 keys. Use a lower value with <option>-softvol-max</option> and/or specify
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1382 <option>-volstep 1</option> if you need higher precision.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1383 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1384
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1385 <para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1386 The <option>-softvol</option> option works by controlling the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1387 <option>volume</option> audio filter. If you want to play a file at a certain
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1388 volume from the beginning you can specify <option>volume</option> manually:
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1389 <screen>mplayer <replaceable>quiet-file</replaceable> -af volume=10</screen>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1390 This will play the file with a ten decibel gain. Be careful when using the
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1391 <option>volume</option> filter - you could easily hurt your ears if you use
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1392 too high a value. Start low and work your way up gradually until you get a feel
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1393 for how much adjustment is required. Also, if you specify excessively high
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1394 values, <option>volume</option> may need to clip the signal to avoid sending
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1395 your sound card data that is outside the allowable range; this will result in
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1396 distorted audio.
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1397 </para>
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1398 </sect1>
31897
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1399
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1400 <!-- ********** -->
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1401
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1402 <sect1 id="tv-input" xreflabel="TV input">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1403 <title>TV input</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1404
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1405 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1406 This section is about how to enable <emphasis role="bold">watching/grabbing
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1407 from V4L compatible TV tuner</emphasis>. See the man page for a description
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1408 of TV options and keyboard controls.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1409 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1410
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1411 <sect2 id="tv-tips">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1412 <title>Usage tips</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1413
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1414 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1415 The full listing of the options is available on the manual page.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1416 Here are just a few tips:
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1417
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1418 <itemizedlist>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1419 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1420 Make sure your tuner works with another TV software in Linux, for
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1421 example <application>XawTV</application>.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1422 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1423 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1424 Use the <option>channels</option> option. An example:
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1425 <screen>-tv channels=26-MTV1,23-TV2</screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1426 Explanation: Using this option, only the 26 and 23 channels will be usable,
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1427 and there will be a nice OSD text upon channel switching, displaying the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1428 channel's name. Spaces in the channel name must be replaced by the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1429 "_" character.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1430 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1431 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1432 Choose some sane image dimensions. The dimensions of the resulting image
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1433 should be divisible by 16.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1434 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1435 <listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1436 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1437 If you capture the video with the vertical resolution higher than half
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1438 of the full resolution (i.e. 288 for PAL or 240 for NTSC), then the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1439 'frames' you get will really be interleaved pairs of fields.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1440 Depending on what you want to do with the video you may leave it in
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1441 this form, destructively deinterlace, or break the pairs apart into
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1442 individual fields.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1443 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1444 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1445 Otherwise you'll get a movie which is distorted during
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1446 fast-motion scenes and the bitrate controller will be probably even unable
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1447 to retain the specified bitrate as the interlacing artifacts produce high
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1448 amount of detail and thus consume lot of bandwidth. You can enable
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1449 deinterlacing with <option>-vf pp=DEINT_TYPE</option>.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1450 Usually <option>pp=lb</option> does a good job, but it can be matter of
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1451 personal preference.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1452 See other deinterlacing algorithms in the manual and give it a try.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1453 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1454 </listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1455 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1456 Crop out the dead space. When you capture the video, the areas at the edges
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1457 are usually black or contain some noise. These again consume lots of
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1458 unnecessary bandwidth. More precisely it's not the black areas themselves
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1459 but the sharp transitions between the black and the brighter video image
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1460 which do but that's not important for now. Before you start capturing,
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1461 adjust the arguments of the <option>crop</option> option so that all the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1462 crap at the margins is cropped out. Again, don't forget to keep the resulting
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1463 dimensions sane.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1464 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1465 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1466 Watch out for CPU load. It shouldn't cross the 90% boundary for most of the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1467 time. If you have a large capture buffer, <application>MEncoder</application>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1468 can survive an overload for few seconds but nothing more. It's better to
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1469 turn off the 3D OpenGL screensavers and similar stuff.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1470 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1471 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1472 Don't mess with the system clock. <application>MEncoder</application> uses the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1473 system clock for doing A/V sync. If you adjust the system clock (especially
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1474 backwards in time), <application>MEncoder</application> gets confused and you
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1475 will lose frames. This is an important issue if you are hooked to a network
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1476 and run some time synchronization software like NTP. You have to turn NTP
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1477 off during the capture process if you want to capture reliably.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1478 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1479 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1480 Don't change the <option>outfmt</option> unless you know what you are doing
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1481 or your card/driver really doesn't support the default (YV12 colorspace).
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1482 In the older versions of <application>MPlayer</application>/
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1483 <application>MEncoder</application> it was necessary to specify the output
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1484 format. This issue should be fixed in the current releases and
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1485 <option>outfmt</option> isn't required anymore, and the default suits the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1486 most purposes. For example, if you are capturing into DivX using
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1487 <systemitem class="library">libavcodec</systemitem> and specify
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1488 <option>outfmt=RGB24</option> in order to increase the quality of the captured
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1489 images, the captured image will be actually later converted back into YV12 so
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1490 the only thing you achieve is a massive waste of CPU power.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1491 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1492 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1493 There are several ways of capturing audio. You can grab the sound either using
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1494 your sound card via an external cable connection between video card and
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1495 line-in, or using the built-in ADC in the bt878 chip. In the latter case, you
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1496 have to load the <emphasis role="bold">btaudio</emphasis> driver. Read the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1497 <filename>linux/Documentation/sound/btaudio</filename> file (in the kernel
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1498 tree, not <application>MPlayer</application>'s) for some instructions on using
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1499 this driver.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1500 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1501 <listitem><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1502 If <application>MEncoder</application> cannot open the audio device, make
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1503 sure that it is really available. There can be some trouble with the sound
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1504 servers like aRts (KDE) or ESD (GNOME). If you have a full duplex sound card
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1505 (almost any decent card supports it today), and you are using KDE, try to
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1506 check the "full duplex" option in the sound server preference menu.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1507 </para></listitem>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1508 </itemizedlist>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1509 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1510 </sect2>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1511
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1512 <sect2 id="tv-examples">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1513 <title>Examples</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1514
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1515 <informalexample><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1516 Dummy output, to AAlib :)
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1517 <screen>mplayer -tv driver=dummy:width=640:height=480 -vo aa tv://</screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1518 </para></informalexample>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1519
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1520 <informalexample><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1521 Input from standard V4L:
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1522 <screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1523 mplayer -tv driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv tv://
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1524 </screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1525 </para></informalexample>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1526
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1527 <informalexample><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1528 A more sophisticated example. This makes <application>MEncoder</application>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1529 capture the full PAL image, crop the margins, and deinterlace the picture
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1530 using a linear blend algorithm. Audio is compressed with a constant bitrate
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1531 of 64kbps, using LAME codec. This setup is suitable for capturing movies.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1532 <screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1533 mencoder -tv driver=v4l:width=768:height=576 -oac mp3lame -lameopts cbr:br=64\
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1534 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 \
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1535 -vf crop=720:544:24:16,pp=lb -o <replaceable>output.avi</replaceable> tv://
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1536 </screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1537 </para></informalexample>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1538
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1539 <informalexample><para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1540 This will additionally rescale the image to 384x288 and compresses the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1541 video with the bitrate of 350kbps in high quality mode. The vqmax option
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1542 looses the quantizer and allows the video compressor to actually reach so
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1543 low bitrate even at the expense of the quality. This can be used for
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1544 capturing long TV series, where the video quality isn't so important.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1545 <screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1546 mencoder -tv driver=v4l:width=768:height=576 \
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1547 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=350:vhq:vqmax=31:keyint=300 \
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1548 -oac mp3lame -lameopts cbr:br=48 -sws 1 -o <replaceable>output.avi</replaceable>\
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1549 -vf crop=720:540:24:18,pp=lb,scale=384:288 tv://
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1550 </screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1551 It's also possible to specify smaller image dimensions in the
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1552 <option>-tv</option> option and omit the software scaling but this approach
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1553 uses the maximum available information and is a little more resistant to noise.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1554 The bt8x8 chips can do the pixel averaging only in the horizontal direction due
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1555 to a hardware limitation.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1556 </para></informalexample>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1557 </sect2>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1558 </sect1>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1559
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1560 <!-- ********** -->
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1561
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1562 <sect1 id="tv-teletext">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1563 <title>Teletext</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1564
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1565 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1566 Teletext is currently available only in <application>MPlayer</application>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1567 for v4l and v4l2 drivers.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1568 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1569
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1570 <sect2 id="tv-teletext-implementation-notes">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1571 <title>Implementation notes</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1572
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1573 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1574 <application>MPlayer</application> supports regular text, graphics and navigation links.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1575 Unfortunately, colored pages are not fully supported yet - all pages are shown as grayscaled.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1576 Subtitle pages (also known as Closed Captions) are supported, too.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1577 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1578
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1579 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1580 <application>MPlayer</application> starts caching all teletext pages upon
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1581 starting to receive TV input, so you do not need to wait until the requested page is loaded.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1582 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1583
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1584 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1585 Note: Using teletext with <option>-vo xv</option> causes strange colors.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1586 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1587 </sect2>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1588
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1589 <sect2 id="tv-teletext-usage">
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1590 <title>Using teletext</title>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1591
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1592 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1593 To enable teletext decoding you must specify the VBI device to get teletext data
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1594 from (usually <filename>/dev/vbi0</filename> for Linux). This can be done by specifying
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1595 <option>tdevice</option> in your configuration file, like shown below:
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1596 <screen>tv=tdevice=/dev/vbi0</screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1597 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1598
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1599 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1600 You might need to specify the teletext language code for your country.
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1601 To list all available country codes use
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1602 <screen>tv=tdevice=/dev/vbi0:tlang=<replaceable>-1</replaceable></screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1603 Here is an example for Russian:
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1604 <screen>tv=tdevice=/dev/vbi0:tlang=<replaceable>33</replaceable></screen>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1605 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1606
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1607 <para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1608 </para>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1609 </sect2>
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1610
219aa324be06 Merge TV input and TV teletext chapter into the usage chapter.
diego
parents: 31890
diff changeset
1611 </sect1>
31899
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1612
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1613
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1614 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1615
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1616
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1617 <sect1 id="radio">
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1618 <title>广播电台</title>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1619
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1620 <sect2 id="radio-input" xreflabel="Radio input">
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1621 <title>电台输入</title>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1622
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1623 <para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1624 这一部分将说明如何从V4L兼容的电台调谐器收听电台广播。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1625 请阅读手册中关于电台的可选项和键盘控制的描述。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1626 </para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1627
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1628 <!-- ********** -->
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1629
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1630 <sect3 id="radio-compilation">
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1631 <title>编译</title>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1632
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1633 <procedure>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1634 <step><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1635 首先, 你需要重新编译MPlayer, 使用<filename>./configure</filename>带上选项
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1636 <option>--enable-radio</option> 和(如果你想要支持捕捉)
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1637 <option>--enable-radio-capture</option>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1638 </para></step>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1639 <step><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1640 确认你的电台调谐器可以和Linux的其他收音软件工作。 比如<application>XawTV</application>。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1641 </para></step>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1642 </procedure>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1643 </sect3>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1644
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1645 <!-- ********** -->
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1646
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1647 <sect3 id="radio-tips">
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1648 <title>使用技巧</title>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1649
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1650 <para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1651 可用选项的完整列表在手册中有列出。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1652 这里只给出一些技巧:
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1653
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1654 <itemizedlist>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1655 <listitem><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1656 使用<option>channels</option>选项。 例子:
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1657 <screen>-radio channels=104.4-Sibir,103.9-Maximum</screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1658 解释: 使用该选项, 则只可使用104.4和103.9电台。 在频道切换时, 将会有个不错的OSD文字,
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1659 显示频道的名字。 频道的名字中的空格必须替换成下划线("_")。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1660 </para></listitem>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1661 <listitem><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1662 有好几种方法可以捕捉声音。 为捕捉音频, 你可以通过连接视频卡和音频输入的外接线用你的声卡捕捉,
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1663 也可以使用saa7134芯片内置的ADC。 在后一种情况下, 你要加载<systemitem>saa7134-alsa</systemitem>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1664 或<systemitem>saa7134-oss</systemitem>驱动。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1665 </para></listitem>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1666 <listitem><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1667 <application>MEncoder</application>不能用于音频捕捉,
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1668 因为它需要视频流才工作。 因此你可以, 或使用ALSA项目的<application>arecord</application>,
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1669 或者使用选项<option>-ao pcm:file=file.wav</option>。 在后一种情况下,
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1670 你将听不到任何声音 (除非你用了输入线, 并且关闭了输入线静音)。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1671 </para></listitem>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1672 </itemizedlist>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1673 </para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1674 </sect3>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1675
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1676 <!-- ********** -->
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1677
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1678 <sect3 id="radio-examples">
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1679 <title>例子</title>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1680
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1681 <informalexample><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1682 从标准的V4L输入 (使用输入线, 捕捉开关关闭):
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1683 <screen>mplayer radio://104.4</screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1684 </para></informalexample>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1685
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1686 <informalexample><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1687 从标准的V4L输入 (使用输入线, 捕捉开关关闭, V4Lv1接口):
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1688 <screen>mplayer -radio driver=v4l radio://104.4</screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1689 </para></informalexample>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1690
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1691 <informalexample><para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1692 播放频道列表中的第二个频道:
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1693 <screen>mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2</screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1694 </para></informalexample>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1695
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1696 <informalexample>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1697 <para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1698 把声音从收音卡的内置ADC传到PCI总线。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1699 在这个例子中, 调谐器被用成是第二块声卡(ALSA device hw:1,0)。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1700 对于基于saa7134的卡, 必须加载 saa7134-alsa 或 saa7134-oss 模块。
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1701 <screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1702 mplayer -rawaudio rate=32000 radio://2/capture \
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1703 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1704 </screen>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1705 <note><para>当使用ALSA设备名时, 冒号(:)必须替换成等号(=),
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1706 逗号(,)要替换成句点(.)
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1707 </para></note>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1708 </para>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1709 </informalexample>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1710 </sect3>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1711 </sect2>
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1712
ca216bfc52cf Merge radio chapter into the usage chapter.
diego
parents: 31897
diff changeset
1713 </sect1>
31885
79f6bdd5e1e2 Add copy of English usage.xml file to Chinese translation.
diego
parents:
diff changeset
1714 </chapter>