Mercurial > mplayer.hg
annotate DOCS/xml/en/install.xml @ 19920:5fe8793f0c17
cosmetics
author | diego |
---|---|
date | Fri, 22 Sep 2006 08:44:02 +0000 |
parents | 99dcac9ee2e8 |
children | 3f5b5c24ce73 |
rev | line source |
---|---|
9675 | 1 <?xml version="1.0" encoding="iso-8859-1"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10403
diff
changeset
|
2 <!-- $Revision$ --> |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
3 <chapter id="install"> |
9675 | 4 <title>Installation</title> |
5 | |
6 <para> | |
11311 | 7 A quick installation guide can be found in the <filename>README</filename> |
8 file. Please read it first and then come back here for the rest of the gory | |
9 details. | |
10 </para> | |
11 | |
12 <para> | |
9675 | 13 In this section I'll try to guide you through the compiling and configuring |
14 process of <application>MPlayer</application>. It's not easy, but it won't | |
15 necessarily be hard. If you experience a different behavior than what I | |
16 explain, please search through this documentation and you'll find your | |
17 answers. If you see links, please follow them and read carefully what they | |
9677 | 18 contain. It will take some time, but it IS worth it. |
9675 | 19 </para> |
20 | |
21 <para> | |
22 You need a fairly recent system. On Linux, 2.4.x kernels are recommended. | |
23 </para> | |
24 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
25 <sect1 id="softreq"> |
9675 | 26 <title>Software requirements</title> |
27 | |
28 <itemizedlist> | |
29 <listitem><para> | |
30 <emphasis role="bold">binutils</emphasis> - suggested version is <emphasis role="bold">2.11.x</emphasis>. | |
31 This program is responsible for generating MMX/ 3DNow!/etc instructions, | |
32 thus very important. | |
33 </para></listitem> | |
34 <listitem><para> | |
35 <emphasis role="bold">gcc</emphasis> - suggested versions are: <emphasis role="bold">2.95.3</emphasis> | |
36 (maybe <emphasis role="bold">2.95.4</emphasis>) and <emphasis role="bold">3.2+</emphasis>. | |
37 <emphasis role="bold">Never</emphasis> use 2.96 or 3.0.x! They generate faulty code for | |
10132 | 38 <application>MPlayer</application>. If you decide to change gcc from |
39 2.96, then don't decide in favor of 3.x just because it's newer! Early | |
40 releases of 3.x were even more buggy than 2.96. So downgrade to 2.95.x | |
9675 | 41 (downgrade <systemitem class="library">libstdc++</systemitem> too, other |
42 programs may need it) or don't up/downgrade at all (but in this case, be | |
10132 | 43 prepared for runtime problems). If you vote for 3.x, try to use the |
9675 | 44 latest version, early releases had various bugs, so be sure you use at |
19735
15dc064c4d96
Remove reference to gcc-296 section, it's very outdated now.
diego
parents:
19734
diff
changeset
|
45 least 3.1, it's tested and working. |
9675 | 46 </para></listitem> |
47 <listitem><para> | |
48 <emphasis role="bold">XFree86</emphasis> - suggested version is <emphasis role="bold">always the | |
10132 | 49 newest</emphasis> (4.3). Normally, everyone wants this, as starting |
9675 | 50 with XFree86 4.0.2, it contains the <link linkend="xv">XVideo</link> |
51 extension (somewhere referred to as <emphasis role="bold">Xv</emphasis>) | |
52 which is needed to enable the hardware YUV acceleration (fast image display) | |
53 on cards that support it. | |
54 Make sure its <emphasis role="bold">development package</emphasis> is installed, | |
55 too, otherwise it won't work. | |
56 For some video cards you don't need XFree86. See list below. | |
57 </para></listitem> | |
58 <listitem><para> | |
59 <emphasis role="bold">make</emphasis> - suggested version is | |
60 <emphasis role="bold">always the newest</emphasis> (at least 3.79.x). This | |
61 usually isn't important. | |
62 </para></listitem> | |
63 <listitem><para> | |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
64 <emphasis role="bold">FreeType</emphasis> 2.0.9 or later is required |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
65 to have a font for the OSD and subtitles. |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
66 </para></listitem> |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
67 <listitem><para> |
9675 | 68 <emphasis role="bold">SDL</emphasis> - it's not mandatory, but can help in |
69 some cases (bad audio, video cards that lag strangely with the xv driver). | |
70 Always use the newest (beginning from 1.2.x). | |
71 </para></listitem> | |
72 <listitem><para> | |
73 <emphasis role="bold">libjpeg</emphasis> - optional JPEG decoder, used by the <option>-mf</option> | |
11324
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
74 option and some QT MOV files. Useful for both <application>MPlayer</application> |
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
75 and <application>MEncoder</application> if |
9675 | 76 you plan to work with jpeg files. |
77 </para></listitem> | |
78 <listitem><para> | |
79 <emphasis role="bold">libpng</emphasis> - recommended and default (M)PNG decoder. Required for GUI. | |
80 Useful for both <application>MPlayer</application> and | |
81 <application>MEncoder</application>. | |
82 </para></listitem> | |
83 <listitem><para> | |
84 <emphasis role="bold">lame</emphasis> - recommended, needed for encoding MP3 audio with | |
85 <application>MEncoder</application>, suggested version is | |
86 <emphasis>always the newest</emphasis> (at least 3.90). | |
87 </para></listitem> | |
88 <listitem><para> | |
11324
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
89 <emphasis role="bold">zlib</emphasis> - recommended, necessary for compressed |
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
90 MOV header and PNG support. |
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
91 </para></listitem> |
9fceaedbd5a6
Missing <application> tags added, patch by Maciej Paszta <paszczi@go2.pl>.
diego
parents:
11311
diff
changeset
|
92 <listitem><para> |
9675 | 93 <emphasis role="bold">libogg</emphasis> - optional, needed for playing OGG file format. |
94 </para></listitem> | |
95 <listitem><para> | |
96 <emphasis role="bold">libvorbis</emphasis> - optional, needed for playing OGG Vorbis audio. | |
97 </para></listitem> | |
98 <listitem><para> | |
17461 | 99 <emphasis role="bold"><ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink></emphasis> |
9675 | 100 - optional, needed for playing RTSP/RTP streams. |
101 </para></listitem> | |
102 <listitem><para> | |
103 <emphasis role="bold">directfb</emphasis> - optional, from | |
14048 | 104 <ulink url="http://www.directfb.org"/>. At least 0.9.13 is required. |
9675 | 105 </para></listitem> |
106 <listitem><para> | |
107 <emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support | |
108 </para></listitem> | |
109 <listitem><para> | |
110 <emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin | |
111 support. At least 1.2.7 is required. | |
112 </para></listitem> | |
10132 | 113 <listitem><para> |
114 <emphasis role="bold">libsmb</emphasis> - optional, for Samba support. | |
115 </para></listitem> | |
12662
05d46af5e2bf
JACK audio support through bio2jack by Kamil Strzelecki <esack@o2.pl>
alex
parents:
12615
diff
changeset
|
116 <listitem><para> |
14310 | 117 <emphasis role="bold">ALSA</emphasis> - optional, for ALSA audio output |
118 support. At least 0.9.0rc4 is required. | |
119 </para></listitem> | |
120 <listitem><para> | |
12662
05d46af5e2bf
JACK audio support through bio2jack by Kamil Strzelecki <esack@o2.pl>
alex
parents:
12615
diff
changeset
|
121 <emphasis role="bold">bio2jack</emphasis> - optional, for JACK audio output |
12815 | 122 support, needed only in compile time. You can obtain it from |
12662
05d46af5e2bf
JACK audio support through bio2jack by Kamil Strzelecki <esack@o2.pl>
alex
parents:
12615
diff
changeset
|
123 <ulink url="http://bio2jack.sf.net/">http://bio2jack.sf.net</ulink>. Since it |
12815 | 124 doesn't have install option you have to manually put the file |
125 <filename>libbio2jack.a</filename> somewhere in your library path | |
126 (e.g. <filename>/usr/local/lib</filename>) or use the | |
127 <option>--with-bio2jack=DIR</option> switch to tell | |
12662
05d46af5e2bf
JACK audio support through bio2jack by Kamil Strzelecki <esack@o2.pl>
alex
parents:
12615
diff
changeset
|
128 <filename>./configure</filename> where that file is. |
05d46af5e2bf
JACK audio support through bio2jack by Kamil Strzelecki <esack@o2.pl>
alex
parents:
12615
diff
changeset
|
129 </para></listitem> |
9675 | 130 </itemizedlist> |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
131 </sect1> |
9675 | 132 |
133 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
134 <sect1 id="video-cards"> |
9675 | 135 <title>Video cards</title> |
136 | |
137 <para> | |
138 There are generally two kind of video cards. One kind (the newer cards) has | |
139 <emphasis role="bold">hardware scaling and YUV acceleration</emphasis> support, | |
140 the other cards don't. | |
141 </para> | |
142 | |
143 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
144 <sect2 id="yuv-cards"> |
9675 | 145 <title>YUV cards</title> |
146 | |
147 <para> | |
148 They can display and scale (zoom) the picture to any size that fits in | |
149 their memory, with <emphasis role="bold">small CPU usage</emphasis> (even when | |
150 zooming), thus fullscreen is nice and very fast. | |
12815 | 151 |
9675 | 152 <itemizedlist> |
153 <listitem><para> | |
154 <emphasis role="bold">Matrox G200/G400/G450/G550 cards</emphasis>: although a | |
155 <link linkend="vidix">Vidix driver</link> is provided, it is recommended to | |
156 use the mga_vid module instead, for it works much better. | |
157 Please see the <link linkend="mga_vid">mga_vid</link> section about its | |
158 installation and usage. It is important to do these steps | |
159 <emphasis>before</emphasis> compiling <application>MPlayer</application>, | |
160 otherwise no mga_vid support will be built. Also check out the | |
11394 | 161 <link linkend="tvout-mga-g400">Matrox TV-out</link> section. |
9675 | 162 <emphasis role="bold"> If you don't use Linux</emphasis>, your only |
9683 | 163 possibility is the VIDIX driver: read the <link linkend="vidix">VIDIX</link> section. |
9675 | 164 </para></listitem> |
165 <listitem><para> | |
166 <emphasis role="bold">3Dfx Voodoo3/Banshee cards</emphasis>: please see | |
167 <link linkend="tdfxfb">tdfxfb</link> section in order to gain big speedup. | |
168 It is important to do these steps <emphasis role="bold">before</emphasis> | |
169 compiling <application>MPlayer</application>, otherwise no 3Dfx support will be | |
19734
c7f185b2639b
Remove tvout-voodoo section that only consists of one broken link.
diego
parents:
19730
diff
changeset
|
170 built. |
9675 | 171 If you use X, use at least <emphasis role="bold">4.2.0</emphasis>, as 3dfx Xv |
172 driver was broken in 4.1.0, and earlier releases. | |
173 </para></listitem> | |
174 <listitem><para> | |
175 <emphasis role="bold">ATI cards</emphasis>: <link linkend="vidix">VIDIX</link> | |
176 driver is provided for the following cards: | |
177 <emphasis role="bold">Radeon, Rage128, Mach64</emphasis> (Rage XL/Mobility, Xpert98). | |
11483 | 178 Also see the <link linkend="tvout-ati">ATI cards</link> section of the TV-out documentation, |
9675 | 179 to know if you card's TV-out is supported under Linux/<application>MPlayer</application>. |
180 </para></listitem> | |
181 <listitem><para> | |
182 <emphasis role="bold">S3 cards</emphasis>: the Savage and Virge/DX chips have | |
183 hardware acceleration. Use as new XFree86 version as possible, older drivers are | |
11483 | 184 buggy. Savage chips have problems with YV12 display, see <link linkend="s3">S3 Xv</link> |
185 section for details. Older, Trio cards have no, or slow hardware support. | |
9675 | 186 </para></listitem> |
187 <listitem><para> | |
9683 | 188 <emphasis role="bold">nVidia cards</emphasis>: may or may not be good choice for video playing. |
9675 | 189 If you do not have a GeForce2 (or newer) card, it's not likely to work without bugs. |
9683 | 190 <emphasis role="bold">the built-in nVidia driver in XFree86 does not support |
191 hardware YUV acceleration on all nVidia cards.</emphasis> You have | |
12815 | 192 to download nVidia's closed-source drivers from <ulink url="http://nvidia.com">nVidia.com</ulink>. |
11461 | 193 See the <link linkend="nvidia">nVidia Xv driver</link> section for details. Please also check |
11483 | 194 the <link linkend="tvout-nvidia">nVidia TV-out</link> section if you wish to |
9675 | 195 use a TV. |
196 </para></listitem> | |
197 <listitem><para> | |
198 <emphasis role="bold">3DLabs GLINT R3 and Permedia3</emphasis>: a VIDIX driver | |
199 is provided (pm3_vid). Please see the <link linkend="vidix">VIDIX</link> section | |
200 for details. | |
201 </para></listitem> | |
202 <listitem><para> | |
203 <emphasis role="bold">Other cards</emphasis>: none of the above? | |
204 <itemizedlist> | |
205 <listitem><simpara> | |
206 Try if the XFree86 driver (and your card) supports hardware | |
11483 | 207 acceleration. See the <link linkend="xv">Xv</link> section for details. |
9675 | 208 </simpara></listitem> |
209 <listitem><simpara> | |
210 If it doesn't, then your card's video features aren't supported under | |
9683 | 211 your operating system :( If hardware scaling works under Windows, it |
212 doesn't mean it will work under Linux or other operating system, it depends on | |
213 the drivers. Most manufacturers neither make Linux drivers nor release | |
214 specifications of their chips - so you are unlucky if using their cards. | |
9675 | 215 See <xref linkend="non-yuv-cards"/>. |
216 </simpara></listitem> | |
217 </itemizedlist> | |
218 </para></listitem> | |
219 </itemizedlist> | |
220 </para> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
221 </sect2> |
9675 | 222 |
223 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
224 <sect2 id="non-yuv-cards" xreflabel="Non-YUV cards"> |
9675 | 225 <title>Non-YUV cards</title> |
226 | |
227 <para> | |
228 Fullscreen playing can be achieved by either enabling <emphasis role="bold"> | |
9683 | 229 software scaling</emphasis> (use the <option>-zoom</option> or <option>-vf</option> option, |
11501 | 230 but I warn you: this is slow), or switching to a smaller video mode, for example |
9675 | 231 352x288. If you don't have YUV acceleration, this latter method is recommended. |
232 Video mode switching can be enabled by using the <option>-vm</option> option and | |
233 it works with the following drivers: | |
234 <itemizedlist> | |
235 <listitem><simpara> | |
236 <emphasis role="bold">using</emphasis> XFree86: see details in <link linkend="dga">DGA driver</link> and | |
237 <link linkend="x11">X11 driver</link> sections. DGA is recommended! Also | |
238 try DGA via SDL, sometimes it's better. | |
239 </simpara></listitem> | |
240 <listitem><simpara> | |
241 <emphasis role="bold">not using</emphasis> XFree86: try the drivers in the | |
242 following order: | |
243 <link linkend="vesa">vesa</link>, | |
244 <link linkend="fbdev">fbdev</link>, | |
245 <link linkend="svgalib">svgalib</link>, | |
246 <link linkend="aalib">aalib</link>. | |
247 </simpara></listitem> | |
248 </itemizedlist> | |
249 </para> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
250 </sect2> |
9675 | 251 |
252 <!-- FIXME: find a more logical organization for this section --> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
253 <sect2 id="cirrus-logic-cards" xreflabel="Cirrus-Logic cards"> |
9675 | 254 <title>Cirrus-Logic cards</title> |
255 <itemizedlist> | |
256 <listitem><para> | |
257 GD 7548: present on-board and tested in Compaq Armada 41xx notebook series. | |
258 <itemizedlist> | |
259 <listitem><simpara> | |
260 XFree86 3: works in 8/16bpp modes. However, the driver is dramatically slow | |
261 and buggy in 800x600@16bpp. <emphasis role="bold">Recommended: 640x480@16bpp</emphasis> | |
262 </simpara></listitem> | |
263 <listitem><simpara> | |
264 XFree86 4: the Xserver freezes soon after start unless acceleration is | |
265 disabled, but then the whole thing gets slower than XFree86 3. No XVideo. | |
266 </simpara></listitem> | |
267 <listitem><simpara> | |
268 FBdev: framebuffer can be turned on with the <systemitem>clgenfb</systemitem> | |
269 driver in the kernel, though for me it worked only in 8bpp, thus unusable. | |
270 The clgenfb source had to be extended with the 7548 ID before compilation. | |
271 </simpara></listitem> | |
272 <listitem><simpara> | |
273 VESA: the card is only VBE 1.2 capable, so VESA output can't be used. Can't | |
274 be workarounded with UniVBE. | |
275 </simpara></listitem> | |
276 <listitem><simpara> | |
277 SVGAlib: detects an older Cirrus chip. Usable but slow with | |
278 <option>-bpp 8</option>. | |
279 </simpara></listitem> | |
280 </itemizedlist> | |
281 </para></listitem> | |
282 </itemizedlist> | |
283 </sect2> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
284 </sect1> |
9675 | 285 |
286 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
287 <sect1 id="sound-cards"> |
9675 | 288 <title>Sound cards</title> |
289 | |
290 <itemizedlist> | |
291 <listitem><simpara> | |
292 <emphasis role="bold">Soundblaster Live!</emphasis>: with this card you can use | |
9683 | 293 4 or 6 (<emphasis role="bold">5.1</emphasis>) channels AC3 decoding instead of 2. Read the |
9675 | 294 <link linkend="swac3">Software AC3 decoding</link> section. For hardware AC3 |
9683 | 295 passthrough you <emphasis role="bold">must</emphasis> use ALSA 0.9 with OSS emulation! |
9675 | 296 </simpara></listitem> |
297 <listitem><simpara> | |
12369 | 298 <emphasis role="bold">C-Media with S/PDIF out</emphasis>: hardware AC3 |
9675 | 299 passthrough is possible with these cards, see |
300 <link linkend="hwac3">Hardware AC3 decoding</link> section. | |
301 </simpara></listitem> | |
302 <listitem><simpara> | |
303 Features of <emphasis role="bold">other cards</emphasis> aren't supported by | |
304 <application>MPlayer</application>. <emphasis role="bold">It's very recommended | |
13912
c66b1514ce5b
Remove pointless devices section, make video and audio top level sections.
diego
parents:
13111
diff
changeset
|
305 to read the <link linkend="audio">sound card</link> section!</emphasis> |
9675 | 306 </simpara></listitem> |
307 </itemizedlist> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
308 </sect1> |
9675 | 309 |
310 | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
311 <sect1 id="features"> |
9675 | 312 <title>Features</title> |
313 | |
314 <itemizedlist> | |
315 <listitem><para> | |
11483 | 316 Decide if you need GUI. If you do, see the <link linkend="gui">GUI</link> |
317 section before compiling. | |
9675 | 318 </para></listitem> |
319 <listitem><para> | |
320 If you want to install <application>MEncoder</application> (our great | |
11540 | 321 all-purpose encoder), see the |
322 <link linkend="mencoder"><application>MEncoder</application></link> section. | |
9675 | 323 </para></listitem> |
324 <listitem><para> | |
325 If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card, | |
326 and wish to watch/grab and encode movies with <application>MPlayer</application>, | |
327 read the <link linkend="tv-input">TV input</link> section. | |
328 </para></listitem> | |
329 <listitem><para> | |
19583
94e4ef4195d3
Fix build after radio commit, patch by Jindrich Makovicka.
diego
parents:
19568
diff
changeset
|
330 If you have a V4L compatible <emphasis role="bold">radio tuner</emphasis> card, |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19082
diff
changeset
|
331 and wish to listen and capture sound with <application>MPlayer</application>, |
19583
94e4ef4195d3
Fix build after radio commit, patch by Jindrich Makovicka.
diego
parents:
19568
diff
changeset
|
332 read the <link linkend="radio">radio</link> section. |
19568
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19082
diff
changeset
|
333 </para></listitem> |
bd821fd3e244
Radio support, patch by Vladimir Voroshilov (voroshil gmail com)
reimar
parents:
19082
diff
changeset
|
334 <listitem><para> |
9675 | 335 There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be |
336 used. Check the <link linkend="subosd">OSD menu</link> section. | |
337 </para></listitem> | |
338 </itemizedlist> | |
339 | |
340 <para> | |
341 Then build <application>MPlayer</application>: | |
342 <screen> | |
343 ./configure | |
344 make | |
345 make install</screen> | |
346 </para> | |
347 | |
348 <para> | |
349 At this point, <application>MPlayer</application> is ready to use. The | |
350 directory <filename class="directory">$PREFIX/share/mplayer</filename> | |
351 contains the <filename>codecs.conf</filename> file, which is used to tell | |
10132 | 352 the program all the codecs and their capabilities. This file is needed only |
353 when you want to change its properties, as the main binary contains an internal | |
354 copy of it. Check if you have | |
9675 | 355 <filename>codecs.conf</filename> in your home directory |
356 (<filename>~/.mplayer/codecs.conf</filename>) left from old | |
357 <application>MPlayer</application> versions, and remove it. | |
358 </para> | |
359 | |
360 <para> | |
10403 | 361 Note that if you have a <filename>codecs.conf</filename> in |
362 <filename>~/.mplayer/</filename>, the builtin and system | |
363 <filename>codecs.conf</filename> will be ignored completely. | |
11540 | 364 Do not do this unless you want to fiddle with <application>MPlayer</application> |
365 internals as this can can cause many problems. If you want to change the codecs | |
366 search order, use the <option>-vc</option>, <option>-ac</option>, <option>-vfm</option>, | |
10403 | 367 or <option>-afm</option> options either on the command line or in your |
368 config file (see the manual page). | |
369 </para> | |
370 | |
371 | |
372 <para> | |
9675 | 373 Debian users can build a .deb package for themselves, it's very simple. |
374 Just exec | |
375 <screen>fakeroot debian/rules binary</screen> | |
376 in <application>MPlayer</application>'s root directory. See | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
10913
diff
changeset
|
377 <link linkend="debian">Debian packaging</link> for detailed instructions. |
9675 | 378 </para> |
379 | |
380 <para> | |
381 <emphasis role="bold">Always browse the output of</emphasis> | |
382 <filename>./configure</filename>, and the | |
383 <filename>configure.log</filename> file, they contain information about | |
384 what will be built, and what will not. You may also want to view | |
385 <filename>config.h</filename> and <filename>config.mak</filename> files. | |
386 If you have some libraries installed, but not detected by | |
387 <filename>./configure</filename>, then check if you also have the proper | |
388 header files (usually the -dev packages) and their version matches. The | |
389 <filename>configure.log</filename> file usually tells you what is missing. | |
390 </para> | |
391 | |
392 <para> | |
393 Though not mandatory, the fonts should be installed in order to gain OSD, | |
394 and subtitle functionality. The recommended method is installing a TTF | |
11540 | 395 font file and telling <application>MPlayer</application> to use it. |
396 See the <link linkend="subosd">Subtitles and OSD</link> section for details. | |
9675 | 397 </para> |
398 | |
399 </sect1> | |
400 | |
401 <!-- ********** --> | |
402 | |
403 <sect1 id="gui"> | |
404 <title>What about the GUI?</title> | |
405 | |
406 <para> | |
16663 | 407 The GUI needs GTK 1.2.x or GTK 2.0 (it isn't fully GTK, but the panels are). |
408 The skins are stored in PNG format, so GTK, <systemitem class="library">libpng</systemitem> | |
11271
252fb0cf331a
spelling fixes, mostly by <ismail.donmez@boun.edu.tr>
diego
parents:
10913
diff
changeset
|
409 (and their devel stuff, usually called <systemitem class="library">gtk-dev</systemitem> |
9675 | 410 and <systemitem class="library">libpng-dev</systemitem>) has to be installed. |
411 You can build it by specifying <option>--enable-gui</option> during | |
10000 | 412 <filename>./configure</filename>. Then, to turn on GUI mode, you have to |
413 execute the <command>gmplayer</command> binary. | |
9675 | 414 </para> |
415 | |
416 <para> | |
417 Currently you can't use the <option>-gui</option> option on the command | |
418 line, due to technical reasons. | |
419 </para> | |
420 | |
421 <para> | |
422 As <application>MPlayer</application> doesn't have a skin included, you | |
423 have to download them if you want to use the GUI. See the <ulink | |
17706
83c1acef76d5
New website structure, the /homepage subdirectory is gone.
diego
parents:
17461
diff
changeset
|
424 url="http://www.mplayerhq.hu/dload.html">download page</ulink>. |
9675 | 425 They should be extracted to the usual system-wide directory (<filename |
17974
9a5a62f480e6
Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents:
17706
diff
changeset
|
426 class="directory">$PREFIX/share/mplayer/skins</filename>), or to <filename |
9a5a62f480e6
Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents:
17706
diff
changeset
|
427 class="directory">$HOME/.mplayer/skins</filename>. |
9675 | 428 <application>MPlayer</application> by default looks in these directories |
429 for a directory named <filename class="directory">default</filename>, but | |
430 you can use the <option>-skin <replaceable>newskin</replaceable></option> | |
431 option, or the <literal>skin=newskin</literal> config file directive to use | |
17974
9a5a62f480e6
Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents:
17706
diff
changeset
|
432 the skin in <filename class="directory">*/skins/newskin</filename> |
9675 | 433 directory. |
434 </para> | |
435 </sect1> | |
436 | |
437 <!-- ********** --> | |
438 | |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
439 <sect1 id="fonts-osd"> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
440 <title>Fonts and OSD</title> |
9675 | 441 |
442 <para> | |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
443 You need to tell <application>MPlayer</application> which font to use to |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
444 enjoy OSD and subtitles. Any TrueType font or special bitmap fonts will |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
445 work. However, TrueType fonts are recommended as they look far better, |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
446 can be properly scaled to the movie size and cope better with different |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
447 encodings. |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
448 </para> |
9675 | 449 |
19823 | 450 |
19822
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
451 <sect2 id="truetype-fonts"> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
452 <title>TrueType fonts</title> |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
453 |
db95db082c37
Move subtitles and OSD section from the installation to the usage chapter.
diego
parents:
19821
diff
changeset
|
454 <para> |
19823 | 455 There are two ways to get TrueType fonts to work. The first is to pass |
456 the <option>-font</option> option to specify a TrueType font file on | |
457 the command line. This option will be a good candidate to put in your | |
458 configuration file (see the manual page for details). | |
459 The second is to create a symlink called <filename>subfont.ttf</filename> | |
460 to the font file of your choice. Either | |
461 <screen>ln -s <replaceable>/path/to/sample_font.ttf</replaceable> ~/.mplayer/subfont.ttf</screen> | |
462 for each user individually or a system-wide one: | |
463 <screen>ln -s <replaceable>/path/to/sample_font.ttf</replaceable> $PREFIX/share/mplayer/subfont.ttf</screen> | |
464 </para> | |
465 | |
466 <para> | |
467 If <application>MPlayer</application> was compiled with | |
468 <systemitem class="library">fontconfig</systemitem> support, the above methods | |
469 won't work, instead <option>-font</option> expects a | |
470 <systemitem class="library">fontconfig</systemitem> font name | |
471 and defaults to the sans-serif font. To get a list of fonts known to | |
472 <systemitem class="library">fontconfig</systemitem>, | |
473 use <command>fc-list</command>. Example: | |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
474 |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
475 <screen>mplayer -font <replaceable>'Bitstream Vera Sans'</replaceable> <replaceable>anime.mkv</replaceable></screen> |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
476 </para> |
12815 | 477 |
19821 | 478 </sect2> |
479 | |
480 | |
481 <sect2 id="bitmap-fonts"> | |
482 <title>bitmap fonts</title> | |
483 | |
9675 | 484 <para> |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
485 If for some reason you wish or need to employ bitmap fonts, download a set |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
486 from our homepage. You can choose between various |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
487 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/fonts/">ISO fonts</ulink> |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
488 and some sets of fonts |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
489 <ulink url="http://www.mplayerhq.hu/MPlayer/contrib/fonts/">contributed by users</ulink> |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
490 in various encodings. |
9675 | 491 </para> |
492 | |
493 <para> | |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
494 Uncompress the file you downloaded to |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
495 <filename class="directory">~/.mplayer</filename> or |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
496 <filename class="directory">$PREFIX/share/mplayer</filename>. |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
497 Then rename or symlink one of the extracted directories to |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
498 <filename class="directory">font</filename>, for example: |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
499 <screen>ln -s <replaceable>~/.mplayer/arial-24</replaceable> ~/.mplayer/font</screen> |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
500 <screen>ln -s <replaceable>$PREFIX/share/mplayer/arial-24</replaceable> $PREFIX/share/mplayer/font</screen> |
9737 | 501 </para> |
502 | |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
503 <para> |
19819
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
504 Fonts should have an appropriate <filename>font.desc</filename> file |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
505 which maps unicode font positions to the actual code page of the |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
506 subtitle text. Another solution is to have UTF-8-encoded subtitles |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
507 and use the <option>-utf8</option> option or just name the subtitles |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
508 file <filename><video_name>.utf</filename> and have it in the |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
509 same directory as the video file. |
76d294537ff6
TrueType fonts now preferred over bitmap fonts, rewrite the font installation.
diego
parents:
19817
diff
changeset
|
510 </para> |
9675 | 511 |
512 </sect2> | |
513 | |
514 | |
515 <sect2 id="osdmenu"> | |
516 <title>OSD menu</title> | |
517 | |
518 <para> | |
11540 | 519 <application>MPlayer</application> has a completely user definiable OSD Menu interface. |
9675 | 520 </para> |
521 | |
522 <note><simpara> | |
523 the Preferences menu is currently UNIMPLEMENTED! | |
524 </simpara></note> | |
525 | |
526 <orderedlist> | |
527 <title>Installation</title> | |
528 <listitem><simpara> | |
529 compile <application>MPlayer</application> by passing the <option>--enable-menu</option> | |
530 to <filename>./configure</filename> | |
531 </simpara></listitem> | |
532 <listitem><simpara> | |
533 make sure you have an OSD font installed | |
534 </simpara></listitem> | |
535 <listitem><simpara> | |
536 copy <filename>etc/menu.conf</filename> to your | |
537 <filename class="directory">.mplayer</filename> directory | |
538 </simpara></listitem> | |
539 <listitem><simpara> | |
540 copy <filename>etc/input.conf</filename> to your | |
541 <filename class="directory">.mplayer</filename> directory, or to the system-wide | |
542 <application>MPlayer</application> config dir (default: | |
543 <filename class="directory">/usr/local/etc/mplayer</filename>) | |
544 </simpara></listitem> | |
545 <listitem><simpara> | |
546 check and edit <filename>input.conf</filename> to enable menu movement keys | |
547 (it is described there). | |
548 </simpara></listitem> | |
549 <listitem><para> | |
550 start <application>MPlayer</application> by the following example: | |
11713 | 551 <screen>$ mplayer -menu <replaceable>file.avi</replaceable></screen> |
9675 | 552 </para></listitem> |
553 <listitem><simpara> | |
554 push any menu key you defined | |
555 </simpara></listitem> | |
556 </orderedlist> | |
557 | |
558 </sect2> | |
559 </sect1> | |
560 | |
561 <!-- ********** --> | |
562 | |
563 <sect1 id="rtc"> | |
564 <title>RTC</title> | |
565 <para> | |
11540 | 566 There are three timing methods in <application>MPlayer</application>. |
9675 | 567 |
568 <itemizedlist> | |
569 <listitem><simpara> | |
570 <emphasis role="bold">To use the old method</emphasis>, you don't have to do | |
571 anything. It uses <systemitem>usleep()</systemitem> to tune | |
572 A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be | |
573 tuned even finer. | |
574 </simpara></listitem> | |
575 <listitem><para> | |
12779 | 576 <emphasis role="bold">The new timer</emphasis> code uses the RTC (RealTime Clock) |
19773 | 577 for this task, because it has precise 1ms timers. The <option>-rtc</option> |
578 option enables it, but a properly set up kernel is required. | |
9675 | 579 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC |
11668 | 580 frequency for normal users through the <systemitem class="systemname">/proc |
581 </systemitem> filesystem. Use this command to | |
9675 | 582 enable RTC for normal users: |
583 <screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen> | |
584 You can see the new timer's efficiency in the status line. | |
585 The power management functions of some notebook BIOSes with speedstep CPUs | |
586 interact badly with RTC. Audio and video may get out of sync. Plugging the | |
587 external power connector in before you power up your notebook seems to help. | |
588 In some hardware combinations (confirmed during usage of non-DMA DVD drive | |
589 on an ALi1541 board) usage of the RTC timer causes skippy playback. It's | |
590 recommended to use the third method in these cases. | |
591 </para></listitem> | |
592 <listitem><simpara> | |
593 <emphasis role="bold">The third timer code</emphasis> is turned on with the | |
594 <option>-softsleep</option> option. It has the efficiency of the RTC, but it | |
595 doesn't use RTC. On the other hand, it requires more CPU. | |
596 </simpara></listitem> | |
597 </itemizedlist> | |
598 </para> | |
599 </sect1> | |
17321
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
600 |
7f9fcf5245a0
Improve overall structure by adding a few top-level chapters so that
diego
parents:
16663
diff
changeset
|
601 </chapter> |