comparison DOCS/xml/en/install.xml @ 21521:b210a229fbcb

General reformatting round: - fix some " -> &quot; - reindent with more consistency - visual markup of <sect?> tags - break overly long lines - add missing <replaceable> tags in examples - cola truck standing by
author torinthiel
date Fri, 08 Dec 2006 11:38:06 +0000
parents 4438f2ef4283
children 43f41347aab0
comparison
equal deleted inserted replaced
21520:0977cf2eb136 21521:b210a229fbcb
15 necessarily be hard. If you experience a behavior different from this 15 necessarily be hard. If you experience a behavior different from this
16 description, please search through this documentation and you'll find your 16 description, please search through this documentation and you'll find your
17 answers. 17 answers.
18 </para> 18 </para>
19 19
20
21 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
22
23
20 <sect1 id="softreq"> 24 <sect1 id="softreq">
21 <title>Software requirements</title> 25 <title>Software requirements</title>
22 26
23 <itemizedlist> 27 <itemizedlist>
24 <listitem><para> 28 <listitem><para>
27 </para></listitem> 31 </para></listitem>
28 <listitem><para> 32 <listitem><para>
29 <emphasis role="bold">gcc</emphasis> - recommended versions are 2.95 33 <emphasis role="bold">gcc</emphasis> - recommended versions are 2.95
30 and 3.4+. 2.96 and 3.0.x are known to generate faulty code, 3.1 and 34 and 3.4+. 2.96 and 3.0.x are known to generate faulty code, 3.1 and
31 3.2 also had problems, 3.3 some minor ones. On PowerPC, use 4.x. 35 3.2 also had problems, 3.3 some minor ones. On PowerPC, use 4.x.
32 </para></listitem> 36 </para></listitem>
33 <listitem><para> 37 <listitem><para>
34 <emphasis role="bold">Xorg/XFree86</emphasis> - recommended version is 38 <emphasis role="bold">Xorg/XFree86</emphasis> - recommended version is
35 4.3 or later. Make sure the 39 4.3 or later. Make sure the
36 <emphasis role="bold">development packages</emphasis> are installed, 40 <emphasis role="bold">development packages</emphasis> are installed,
37 too, otherwise it won't work. 41 too, otherwise it won't work.
38 You don't absolutely need X, some video output drivers work without it. 42 You don't absolutely need X, some video output drivers work without it.
39 </para></listitem> 43 </para></listitem>
40 <listitem><para> 44 <listitem><para>
41 <emphasis role="bold">make</emphasis> - recommended version is 45 <emphasis role="bold">make</emphasis> - recommended version is
42 3.79.x or later. To build the XML documentation you need 3.80. 46 3.79.x or later. To build the XML documentation you need 3.80.
43 </para></listitem> 47 </para></listitem>
44 <listitem><para> 48 <listitem><para>
45 <emphasis role="bold">FreeType</emphasis> - optional, 49 <emphasis role="bold">FreeType</emphasis> - optional,
46 required to have a font for the OSD and subtitles. At least 2.0.9 is required. 50 required to have a font for the OSD and subtitles. At least 2.0.9 is required.
47 </para></listitem> 51 </para></listitem>
48 <listitem><para> 52 <listitem><para>
49 <emphasis role="bold">libjpeg</emphasis> - optional JPEG en/decoder, 53 <emphasis role="bold">libjpeg</emphasis> - optional JPEG en/decoder,
50 required for the JPEG video output driver and decoding MJPEG video 54 required for the JPEG video output driver and decoding MJPEG video
51 </para></listitem> 55 </para></listitem>
52 <listitem><para> 56 <listitem><para>
53 <emphasis role="bold">libpng</emphasis> - optional (M)PNG en/decoder, 57 <emphasis role="bold">libpng</emphasis> - optional (M)PNG en/decoder,
54 required for the GUI and the PNG video output driver 58 required for the GUI and the PNG video output driver
55 </para></listitem> 59 </para></listitem>
56 <listitem><para> 60 <listitem><para>
57 <emphasis role="bold">lame</emphasis> - 3.90 or later is recommended, 61 <emphasis role="bold">lame</emphasis> - 3.90 or later is recommended,
58 necessary for encoding MP3 audio with <application>MEncoder</application>. 62 necessary for encoding MP3 audio with <application>MEncoder</application>.
59 </para></listitem> 63 </para></listitem>
60 <listitem><para> 64 <listitem><para>
61 <emphasis role="bold">zlib</emphasis> - recommended, necessary for compressed 65 <emphasis role="bold">zlib</emphasis> - recommended, necessary for compressed
62 MOV header and PNG support 66 MOV header and PNG support
63 </para></listitem> 67 </para></listitem>
64 <listitem><para> 68 <listitem><para>
65 <emphasis role="bold"><ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink></emphasis> 69 <emphasis role="bold"><ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink></emphasis>
66 - optional, needed for some RTSP/RTP streams 70 - optional, needed for some RTSP/RTP streams
67 </para></listitem> 71 </para></listitem>
68 <listitem><para> 72 <listitem><para>
69 <emphasis role="bold">directfb</emphasis> - optional, use 0.9.13 or later. 73 <emphasis role="bold">directfb</emphasis> - optional, use 0.9.13 or later.
70 </para></listitem> 74 </para></listitem>
71 <listitem><para> 75 <listitem><para>
72 <emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support 76 <emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support
73 </para></listitem> 77 </para></listitem>
74 <listitem><para> 78 <listitem><para>
75 <emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin 79 <emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin
76 support. At least 1.2.7 is required. 80 support. At least 1.2.7 is required.
77 </para></listitem> 81 </para></listitem>
78 <listitem><para> 82 <listitem><para>
79 <emphasis role="bold">libsmb</emphasis> - optional, for smb networking support 83 <emphasis role="bold">libsmb</emphasis> - optional, for smb networking support
80 </para></listitem> 84 </para></listitem>
81 <listitem><para> 85 <listitem><para>
82 <emphasis role="bold">ALSA</emphasis> - optional, for ALSA audio output 86 <emphasis role="bold">ALSA</emphasis> - optional, for ALSA audio output
83 support. At least 0.9.0rc4 is required. 87 support. At least 0.9.0rc4 is required.
84 </para></listitem> 88 </para></listitem>
85 </itemizedlist> 89 </itemizedlist>
86 </sect1> 90 </sect1>
87 91
88 92
93 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
94
95
89 <sect1 id="features"> 96 <sect1 id="features">
90 <title>Features</title> 97 <title>Features</title>
91 98
92 <itemizedlist> 99 <itemizedlist>
93 <listitem><para> 100 <listitem><para>
94 Decide if you need GUI. If you do, see the <link linkend="gui">GUI</link> 101 Decide if you need GUI. If you do, see the <link linkend="gui">GUI</link>
95 section before compiling. 102 section before compiling.
96 </para></listitem> 103 </para></listitem>
97 <listitem><para> 104 <listitem><para>
98 If you want to install <application>MEncoder</application> (our great 105 If you want to install <application>MEncoder</application> (our great
99 all-purpose encoder), see the 106 all-purpose encoder), see the
100 <link linkend="mencoder"><application>MEncoder</application></link> section. 107 <link linkend="mencoder"><application>MEncoder</application></link> section.
101 </para></listitem> 108 </para></listitem>
102 <listitem><para> 109 <listitem><para>
103 If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card, 110 If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card,
104 and wish to watch/grab and encode movies with <application>MPlayer</application>, 111 and wish to watch/grab and encode movies with
112 <application>MPlayer</application>,
105 read the <link linkend="tv-input">TV input</link> section. 113 read the <link linkend="tv-input">TV input</link> section.
106 </para></listitem> 114 </para></listitem>
107 <listitem><para> 115 <listitem><para>
108 If you have a V4L compatible <emphasis role="bold">radio tuner</emphasis> card, 116 If you have a V4L compatible <emphasis role="bold">radio tuner</emphasis>
109 and wish to listen and capture sound with <application>MPlayer</application>, 117 card, and wish to listen and capture sound with
118 <application>MPlayer</application>,
110 read the <link linkend="radio">radio</link> section. 119 read the <link linkend="radio">radio</link> section.
111 </para></listitem> 120 </para></listitem>
112 <listitem><para> 121 <listitem><para>
113 There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be 122 There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be
114 used. Check the <link linkend="subosd">OSD menu</link> section. 123 used. Check the <link linkend="subosd">OSD menu</link> section.
115 </para></listitem> 124 </para></listitem>
116 </itemizedlist> 125 </itemizedlist>
117 126
118 <para> 127 <para>
119 Then build <application>MPlayer</application>: 128 Then build <application>MPlayer</application>:
120 <screen> 129 <screen>
121 ./configure 130 ./configure
122 make 131 make
123 make install</screen> 132 make install
133 </screen>
124 </para> 134 </para>
125 135
126 <para> 136 <para>
127 At this point, <application>MPlayer</application> is ready to use. The 137 At this point, <application>MPlayer</application> is ready to use. The
128 directory <filename class="directory">$PREFIX/share/mplayer</filename> 138 directory <filename class="directory">$PREFIX/share/mplayer</filename>
139 Note that if you have a <filename>codecs.conf</filename> in 149 Note that if you have a <filename>codecs.conf</filename> in
140 <filename>~/.mplayer/</filename>, the builtin and system 150 <filename>~/.mplayer/</filename>, the builtin and system
141 <filename>codecs.conf</filename> will be ignored completely. 151 <filename>codecs.conf</filename> will be ignored completely.
142 Do not do this unless you want to fiddle with <application>MPlayer</application> 152 Do not do this unless you want to fiddle with <application>MPlayer</application>
143 internals as this can can cause many problems. If you want to change the codecs 153 internals as this can can cause many problems. If you want to change the codecs
144 search order, use the <option>-vc</option>, <option>-ac</option>, <option>-vfm</option>, 154 search order, use the <option>-vc</option>, <option>-ac</option>,
145 or <option>-afm</option> options either on the command line or in your 155 <option>-vfm</option>, or <option>-afm</option> options either on the command
146 config file (see the manual page). 156 line or in your config file (see the manual page).
147 </para> 157 </para>
148
149 158
150 <para> 159 <para>
151 Debian users can build a .deb package for themselves, it's very simple. 160 Debian users can build a .deb package for themselves, it's very simple.
152 Just exec 161 Just exec
153 <screen>fakeroot debian/rules binary</screen> 162 <screen>fakeroot debian/rules binary</screen>
171 Though not mandatory, the fonts should be installed in order to gain OSD, 180 Though not mandatory, the fonts should be installed in order to gain OSD,
172 and subtitle functionality. The recommended method is installing a TTF 181 and subtitle functionality. The recommended method is installing a TTF
173 font file and telling <application>MPlayer</application> to use it. 182 font file and telling <application>MPlayer</application> to use it.
174 See the <link linkend="subosd">Subtitles and OSD</link> section for details. 183 See the <link linkend="subosd">Subtitles and OSD</link> section for details.
175 </para> 184 </para>
176
177 </sect1> 185 </sect1>
178 186
179 <!-- ********** --> 187
188 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
189
180 190
181 <sect1 id="gui"> 191 <sect1 id="gui">
182 <title>What about the GUI?</title> 192 <title>What about the GUI?</title>
183 193
184 <para> 194 <para>
185 The GUI needs GTK 1.2.x or GTK 2.0 (it isn't fully GTK, but the panels are). 195 The GUI needs GTK 1.2.x or GTK 2.0 (it isn't fully GTK, but the panels are).
186 The skins are stored in PNG format, so GTK, <systemitem class="library">libpng</systemitem> 196 The skins are stored in PNG format, so GTK,
187 (and their devel stuff, usually called <systemitem class="library">gtk-dev</systemitem> 197 <systemitem class="library">libpng</systemitem> (and their devel stuff, usually
198 called <systemitem class="library">gtk-dev</systemitem>
188 and <systemitem class="library">libpng-dev</systemitem>) has to be installed. 199 and <systemitem class="library">libpng-dev</systemitem>) has to be installed.
189 You can build it by specifying <option>--enable-gui</option> during 200 You can build it by specifying <option>--enable-gui</option> during
190 <filename>./configure</filename>. Then, to turn on GUI mode, you have to 201 <filename>./configure</filename>. Then, to turn on GUI mode, you have to
191 execute the <command>gmplayer</command> binary. 202 execute the <command>gmplayer</command> binary.
192 </para> 203 </para>
205 the skin in <filename class="directory">*/skins/newskin</filename> 216 the skin in <filename class="directory">*/skins/newskin</filename>
206 directory. 217 directory.
207 </para> 218 </para>
208 </sect1> 219 </sect1>
209 220
210 <!-- ********** --> 221
222 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
223
211 224
212 <sect1 id="fonts-osd"> 225 <sect1 id="fonts-osd">
213 <title>Fonts and OSD</title> 226 <title>Fonts and OSD</title>
214 227
215 <para> 228 <para>
218 work. However, TrueType fonts are recommended as they look far better, 231 work. However, TrueType fonts are recommended as they look far better,
219 can be properly scaled to the movie size and cope better with different 232 can be properly scaled to the movie size and cope better with different
220 encodings. 233 encodings.
221 </para> 234 </para>
222 235
236 <!-- ********** -->
223 237
224 <sect2 id="truetype-fonts"> 238 <sect2 id="truetype-fonts">
225 <title>TrueType fonts</title> 239 <title>TrueType fonts</title>
226 240
227 <para> 241 <para>
251 <systemitem class="library">fontconfig</systemitem>, 265 <systemitem class="library">fontconfig</systemitem>,
252 use <command>fc-list</command>. 266 use <command>fc-list</command>.
253 </para> 267 </para>
254 </sect2> 268 </sect2>
255 269
270 <!-- ********** -->
256 271
257 <sect2 id="bitmap-fonts"> 272 <sect2 id="bitmap-fonts">
258 <title>bitmap fonts</title> 273 <title>bitmap fonts</title>
259 274
260 <para> 275 <para>
282 subtitle text. Another solution is to have UTF-8-encoded subtitles 297 subtitle text. Another solution is to have UTF-8-encoded subtitles
283 and use the <option>-utf8</option> option or give the subtitles 298 and use the <option>-utf8</option> option or give the subtitles
284 file the same name as your video file with a <filename>.utf</filename> 299 file the same name as your video file with a <filename>.utf</filename>
285 extension and have it in the same directory as the video file. 300 extension and have it in the same directory as the video file.
286 </para> 301 </para>
287
288 </sect2> 302 </sect2>
289 303
304 <!-- ********** -->
290 305
291 <sect2 id="osdmenu"> 306 <sect2 id="osdmenu">
292 <title>OSD menu</title> 307 <title>OSD menu</title>
293 308
294 <para> 309 <para>
295 <application>MPlayer</application> has a completely user definiable OSD Menu interface. 310 <application>MPlayer</application> has a completely user definiable
311 OSD Menu interface.
296 </para> 312 </para>
297 313
298 <note><simpara> 314 <note><simpara>
299 the Preferences menu is currently UNIMPLEMENTED! 315 the Preferences menu is currently UNIMPLEMENTED!
300 </simpara></note> 316 </simpara></note>
301 317
302 <orderedlist> 318 <orderedlist>
303 <title>Installation</title> 319 <title>Installation</title>
304 <listitem><simpara> 320 <listitem><simpara>
305 compile <application>MPlayer</application> by passing the <option>--enable-menu</option> 321 compile <application>MPlayer</application> by passing the
306 to <filename>./configure</filename> 322 <option>--enable-menu</option> to <filename>./configure</filename>
307 </simpara></listitem> 323 </simpara></listitem>
308 <listitem><simpara> 324 <listitem><simpara>
309 make sure you have an OSD font installed 325 make sure you have an OSD font installed
310 </simpara></listitem> 326 </simpara></listitem>
311 <listitem><simpara> 327 <listitem><simpara>
312 copy <filename>etc/menu.conf</filename> to your 328 copy <filename>etc/menu.conf</filename> to your
313 <filename class="directory">.mplayer</filename> directory 329 <filename class="directory">.mplayer</filename> directory
314 </simpara></listitem> 330 </simpara></listitem>
315 <listitem><simpara> 331 <listitem><simpara>
316 copy <filename>etc/input.conf</filename> to your 332 copy <filename>etc/input.conf</filename> to your
317 <filename class="directory">.mplayer</filename> directory, or to the system-wide 333 <filename class="directory">.mplayer</filename> directory, or to the
318 <application>MPlayer</application> config dir (default: 334 system-wide <application>MPlayer</application> config dir (default:
319 <filename class="directory">/usr/local/etc/mplayer</filename>) 335 <filename class="directory">/usr/local/etc/mplayer</filename>)
320 </simpara></listitem> 336 </simpara></listitem>
321 <listitem><simpara> 337 <listitem><simpara>
322 check and edit <filename>input.conf</filename> to enable menu movement keys 338 check and edit <filename>input.conf</filename> to enable menu movement keys
323 (it is described there). 339 (it is described there).
324 </simpara></listitem> 340 </simpara></listitem>
325 <listitem><para> 341 <listitem><para>
326 start <application>MPlayer</application> by the following example: 342 start <application>MPlayer</application> by the following example:
327 <screen>$ mplayer -menu <replaceable>file.avi</replaceable></screen> 343 <screen>$ mplayer -menu <replaceable>file.avi</replaceable></screen>
328 </para></listitem> 344 </para></listitem>
329 <listitem><simpara> 345 <listitem><simpara>
330 push any menu key you defined 346 push any menu key you defined
331 </simpara></listitem> 347 </simpara></listitem>
332 </orderedlist> 348 </orderedlist>
333
334 </sect2> 349 </sect2>
335 </sect1> 350 </sect1>
336 351
337 <!-- ********** --> 352
353 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
354
338 355
339 <sect1 id="rtc"> 356 <sect1 id="rtc">
340 <title>RTC</title> 357 <title>RTC</title>
358
341 <para> 359 <para>
342 There are three timing methods in <application>MPlayer</application>. 360 There are three timing methods in <application>MPlayer</application>.
343 361
344 <itemizedlist> 362 <itemizedlist>
345 <listitem><simpara> 363 <listitem><simpara>
346 <emphasis role="bold">To use the old method</emphasis>, you don't have to do 364 <emphasis role="bold">To use the old method</emphasis>, you don't have to do
347 anything. It uses <systemitem>usleep()</systemitem> to tune 365 anything. It uses <systemitem>usleep()</systemitem> to tune
348 A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be 366 A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be
349 tuned even finer. 367 tuned even finer.
350 </simpara></listitem> 368 </simpara></listitem>
351 <listitem><para> 369 <listitem>
352 <emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock) 370 <para>
353 for this task, because it has precise 1ms timers. The <option>-rtc</option> 371 <emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime
354 option enables it, but a properly set up kernel is required. 372 Clock) for this task, because it has precise 1ms timers.
373 The <option>-rtc</option> option enables it,
374 but a properly set up kernel is required.
355 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC 375 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC
356 frequency for normal users through the <systemitem class="systemname">/proc 376 frequency for normal users through the <systemitem class="systemname">/proc
357 </systemitem> filesystem. Use one of the following two commands to 377 </systemitem> filesystem. Use one of the following two commands to
358 enable RTC for normal users: 378 enable RTC for normal users:
359 <screen>echo 1024 &gt; /proc/sys/dev/rtc/max-user-freq</screen> 379 <screen>echo 1024 &gt; /proc/sys/dev/rtc/max-user-freq</screen>
360 <screen>sysctl dev/rtc/max-user-freq=1024</screen> 380 <screen>sysctl dev/rtc/max-user-freq=1024</screen>
361 You can make this setting permanent by adding the latter to 381 You can make this setting permanent by adding the latter to
362 <filename>/etc/sysctl.conf</filename>. 382 <filename>/etc/sysctl.conf</filename>.
363 </para> 383 </para>
364 <para> 384 <para>
365 You can see the new timer's efficiency in the status line. 385 You can see the new timer's efficiency in the status line.
366 The power management functions of some notebook BIOSes with speedstep CPUs 386 The power management functions of some notebook BIOSes with speedstep CPUs
367 interact badly with RTC. Audio and video may get out of sync. Plugging the 387 interact badly with RTC. Audio and video may get out of sync. Plugging the
368 external power connector in before you power up your notebook seems to help. 388 external power connector in before you power up your notebook seems to help.
369 In some hardware combinations (confirmed during usage of non-DMA DVD drive 389 In some hardware combinations (confirmed during usage of non-DMA DVD drive
370 on an ALi1541 board) usage of the RTC timer causes skippy playback. It's 390 on an ALi1541 board) usage of the RTC timer causes skippy playback. It's
371 recommended to use the third method in these cases. 391 recommended to use the third method in these cases.
372 </para></listitem> 392 </para>
373 <listitem><simpara> 393 </listitem>
394 <listitem><para>
374 <emphasis role="bold">The third timer code</emphasis> is turned on with the 395 <emphasis role="bold">The third timer code</emphasis> is turned on with the
375 <option>-softsleep</option> option. It has the efficiency of the RTC, but it 396 <option>-softsleep</option> option. It has the efficiency of the RTC, but it
376 doesn't use RTC. On the other hand, it requires more CPU. 397 doesn't use RTC. On the other hand, it requires more CPU.
377 </simpara></listitem> 398 </para></listitem>
378 </itemizedlist> 399 </itemizedlist>
379 </para> 400 </para>
380 </sect1> 401 </sect1>
381 402
382 </chapter> 403 </chapter>