Mercurial > mplayer.hg
annotate DOCS/xml/en/install.xml @ 11014:b02ee343b0e1
Sync
author | rtognimp |
---|---|
date | Sun, 05 Oct 2003 11:40:55 +0000 |
parents | 49b1a67e7381 |
children | 252fb0cf331a |
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$ --> |
9675 | 3 <sect1 id="install"> |
4 <title>Installation</title> | |
5 | |
6 <para> | |
7 In this section I'll try to guide you through the compiling and configuring | |
8 process of <application>MPlayer</application>. It's not easy, but it won't | |
9 necessarily be hard. If you experience a different behavior than what I | |
10 explain, please search through this documentation and you'll find your | |
11 answers. If you see links, please follow them and read carefully what they | |
9677 | 12 contain. It will take some time, but it IS worth it. |
9675 | 13 </para> |
14 | |
15 <para> | |
16 You need a fairly recent system. On Linux, 2.4.x kernels are recommended. | |
17 </para> | |
18 | |
19 | |
20 <sect2 id="softreq"> | |
21 <title>Software requirements</title> | |
22 | |
23 <itemizedlist> | |
24 <listitem><para> | |
25 <emphasis role="bold">binutils</emphasis> - suggested version is <emphasis role="bold">2.11.x</emphasis>. | |
26 This program is responsible for generating MMX/ 3DNow!/etc instructions, | |
27 thus very important. | |
28 </para></listitem> | |
29 <listitem><para> | |
30 <emphasis role="bold">gcc</emphasis> - suggested versions are: <emphasis role="bold">2.95.3</emphasis> | |
31 (maybe <emphasis role="bold">2.95.4</emphasis>) and <emphasis role="bold">3.2+</emphasis>. | |
32 <emphasis role="bold">Never</emphasis> use 2.96 or 3.0.x! They generate faulty code for | |
10132 | 33 <application>MPlayer</application>. If you decide to change gcc from |
34 2.96, then don't decide in favor of 3.x just because it's newer! Early | |
35 releases of 3.x were even more buggy than 2.96. So downgrade to 2.95.x | |
9675 | 36 (downgrade <systemitem class="library">libstdc++</systemitem> too, other |
37 programs may need it) or don't up/downgrade at all (but in this case, be | |
10132 | 38 prepared for runtime problems). If you vote for 3.x, try to use the |
9675 | 39 latest version, early releases had various bugs, so be sure you use at |
40 least 3.1, it's tested and working. For detailed information about gcc 2.96's | |
41 bugs (that are still NOT fixed, they have been WORKED AROUND in | |
42 <application>MPlayer</application>!),see the <link linkend="gcc-296">gcc 2.96</link> | |
43 section and the <xref linkend="faq"/>. | |
44 </para></listitem> | |
45 <listitem><para> | |
46 <emphasis role="bold">XFree86</emphasis> - suggested version is <emphasis role="bold">always the | |
10132 | 47 newest</emphasis> (4.3). Normally, everyone wants this, as starting |
9675 | 48 with XFree86 4.0.2, it contains the <link linkend="xv">XVideo</link> |
49 extension (somewhere referred to as <emphasis role="bold">Xv</emphasis>) | |
50 which is needed to enable the hardware YUV acceleration (fast image display) | |
51 on cards that support it. | |
52 Make sure its <emphasis role="bold">development package</emphasis> is installed, | |
53 too, otherwise it won't work. | |
54 For some video cards you don't need XFree86. See list below. | |
55 </para></listitem> | |
56 <listitem><para> | |
57 <emphasis role="bold">make</emphasis> - suggested version is | |
58 <emphasis role="bold">always the newest</emphasis> (at least 3.79.x). This | |
59 usually isn't important. | |
60 </para></listitem> | |
61 <listitem><para> | |
62 <emphasis role="bold">SDL</emphasis> - it's not mandatory, but can help in | |
63 some cases (bad audio, video cards that lag strangely with the xv driver). | |
64 Always use the newest (beginning from 1.2.x). | |
65 </para></listitem> | |
66 <listitem><para> | |
67 <emphasis role="bold">libjpeg</emphasis> - optional JPEG decoder, used by the <option>-mf</option> | |
68 option and some QT MOV files. Useful for both MPlayer and MEncoder if | |
69 you plan to work with jpeg files. | |
70 </para></listitem> | |
71 <listitem><para> | |
72 <emphasis role="bold">libpng</emphasis> - recommended and default (M)PNG decoder. Required for GUI. | |
73 Useful for both <application>MPlayer</application> and | |
74 <application>MEncoder</application>. | |
75 </para></listitem> | |
76 <listitem><para> | |
77 <emphasis role="bold">lame</emphasis> - recommended, needed for encoding MP3 audio with | |
78 <application>MEncoder</application>, suggested version is | |
79 <emphasis>always the newest</emphasis> (at least 3.90). | |
80 </para></listitem> | |
81 <listitem><para> | |
82 <emphasis role="bold">libogg</emphasis> - optional, needed for playing OGG file format. | |
83 </para></listitem> | |
84 <listitem><para> | |
85 <emphasis role="bold">libvorbis</emphasis> - optional, needed for playing OGG Vorbis audio. | |
86 </para></listitem> | |
87 <listitem><para> | |
88 <emphasis role="bold"><ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink></emphasis> | |
89 - optional, needed for playing RTSP/RTP streams. | |
90 </para></listitem> | |
91 <listitem><para> | |
92 <emphasis role="bold">directfb</emphasis> - optional, from | |
93 <ulink url="http://www.directfb.org"/> | |
94 </para></listitem> | |
95 <listitem><para> | |
96 <emphasis role="bold">cdparanoia</emphasis> - optional, for CDDA support | |
97 </para></listitem> | |
98 <listitem><para> | |
99 <emphasis role="bold">libfreetype</emphasis> - optional, for TTF fonts | |
100 support. At least 2.0.9 is required. | |
101 </para></listitem> | |
102 <listitem><para> | |
103 <emphasis role="bold">libxmms</emphasis> - optional, for XMMS input plugin | |
104 support. At least 1.2.7 is required. | |
105 </para></listitem> | |
10132 | 106 <listitem><para> |
107 <emphasis role="bold">libsmb</emphasis> - optional, for Samba support. | |
108 </para></listitem> | |
9675 | 109 </itemizedlist> |
110 </sect2> | |
111 | |
112 | |
113 <sect2> | |
114 <title>Codecs</title> | |
115 | |
116 <itemizedlist> | |
117 <listitem><para> | |
118 <emphasis role="bold">libavcodec</emphasis>: This codec package is capable | |
10132 | 119 of decoding H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1/WMV2/SVQ1/SVQ3 encoded video |
9675 | 120 streams and WMA (Windows Media Audio) v1/v2 audio streams, on multiple |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
121 platforms. It is also known to be the fastest for this task. See |
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
122 <link linkend="ffmpeg">this section</link> for details. Features: |
9675 | 123 <itemizedlist> |
124 <listitem><simpara> | |
125 gain decoding of videos mentioned above, on non-x86 machines | |
126 </simpara></listitem> | |
127 <listitem><simpara> | |
128 encoding with most of the mentioned codecs | |
129 </simpara></listitem> | |
130 <listitem><simpara> | |
131 this codec is the <emphasis role="bold">fastest codec available</emphasis> for | |
132 DivX/3/4/5 and other MPEG4 types. Recommended! | |
133 </simpara></listitem> | |
134 </itemizedlist> | |
135 </para></listitem> | |
136 <listitem><para> | |
137 <emphasis role="bold">Win32 codecs</emphasis>: If you plan to use | |
138 <application>MPlayer</application> on x86 architecture, you will possibly need | |
139 them. Download the Win32 codecs from our | |
140 <ulink url="http://www.mplayerhq.hu/MPlayer/releases/codecs/">codecs page</ulink> | |
10185
d927b21b57c1
/usr/local/lib/codecs is now the default codecs directory.
diego
parents:
10132
diff
changeset
|
141 and install them to <filename class="directory">/usr/local/lib/codecs</filename> |
9675 | 142 <emphasis role="bold">BEFORE</emphasis> compiling <application>MPlayer</application>, |
143 otherwise no Win32 support will be compiled! | |
144 <note><para>The avifile project has similar codecs package, but it | |
145 differs from ours, so if you want to use all supported codecs, then use | |
146 our package (do not worry, avifile works with it without problems).</para> | |
147 </note> | |
148 Features: | |
149 <itemizedlist> | |
150 <listitem><simpara> | |
151 you need this if you want to play or encode for example movies recorded | |
152 with various hardware compressors, like tuner cards, digital cameras | |
153 (example: DV, ATI VCR, MJPEG) | |
154 </simpara></listitem> | |
155 <listitem><simpara> | |
10132 | 156 needed if you want to play <emphasis role="bold">WMV9/WMA9 movies</emphasis>. |
9675 | 157 </simpara></listitem> |
158 <listitem><simpara> | |
159 Not needed for old ASF's with MP41 or MP42 video (though VoxWare audio is | |
160 frequent for these files - it's done by the Win32 codec), or WMV7. Also not | |
161 needed for WMA (Windows Media Audio), libavcodec has opensource decoder for that. | |
162 </simpara></listitem> | |
163 </itemizedlist> | |
164 </para></listitem> | |
165 <listitem><para> | |
166 <emphasis role="bold">QuickTime codecs</emphasis>: on x86 platforms these | |
10132 | 167 codecs can be used to decode RPZA, and other QuickTime video, |
9675 | 168 and QDesign audio streams. Installation instructions can be found in the |
169 <link linkend="sorenson">Sorenson video codec</link> section. | |
170 </para></listitem> | |
171 <listitem><para> | |
172 <emphasis role="bold">DivX4/DivX5</emphasis>: information about this codec is | |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
173 available in the <link linkend="divx4-5">DivX4/DivX5 section</link>. You possibly |
9675 | 174 don't want this codec as <emphasis role="bold">libavcodec</emphasis> (see |
175 above) is much faster and has better quality than this, for both decoding | |
176 and encoding. Features: | |
177 <itemizedlist> | |
178 <listitem><simpara> | |
179 1 pass or 2 pass encoding with <link linkend="mencoder">MEncoder</link> | |
180 </simpara></listitem> | |
181 <listitem><simpara> | |
182 can play old <emphasis role="bold">DivX3</emphasis> movies much faster than | |
183 the Win32 DLL but slower than <emphasis role="bold">libavcodec</emphasis>! | |
184 </simpara></listitem> | |
185 <listitem><simpara> | |
186 it's closed-source, and only a x86 version is available. | |
187 </simpara></listitem> | |
188 </itemizedlist> | |
189 </para></listitem> | |
190 <listitem><para> | |
191 <emphasis role="bold">XviD</emphasis>: Open source encoding alternative to | |
192 Divx4Linux. Features: | |
193 <itemizedlist> | |
194 <listitem><simpara> | |
195 1 pass or 2 pass encoding with <link linkend="mencoder">MEncoder</link> | |
196 </simpara></listitem> | |
197 <listitem><simpara> | |
198 it's open-source, so it's multiplatform. | |
199 </simpara></listitem> | |
200 <listitem><simpara> | |
201 it's about 2 times faster than divx4 when encoding - about the same | |
202 quality | |
203 </simpara></listitem> | |
204 </itemizedlist> | |
205 </para></listitem> | |
206 <listitem><para> | |
207 The <emphasis role="bold"><link linkend="xanim">XAnim codecs</link></emphasis> | |
208 are the best (full screen, hardware YUV zoom) for decoding | |
209 <emphasis role="bold">3ivx</emphasis> and Indeo 3/4/5 movies, and some old | |
210 formats. And they are multiplatform, so this is the only way to play Indeo on | |
211 non-x86 platforms (well, apart from using XAnim:). But for example Cinepak movies | |
212 are best played with <application>MPlayer</application>'s own Cinepak decoder! | |
213 </para></listitem> | |
214 <listitem><para> | |
215 For <emphasis role="bold">Ogg Vorbis</emphasis> audio decoding you need to | |
216 install <systemitem class="library">libvorbis</systemitem> properly. Use | |
217 deb/rpm packages if available, or compile from | |
218 <ulink url="http://ogg.org/ogg/vorbis/download/vorbis_nightly_cvs.tgz">source</ulink> | |
219 (this is a nightly updated tarball of Vorbis CVS). | |
220 </para></listitem> | |
221 <listitem><para> | |
222 <application>MPlayer</application> can use the libraries of RealPlayer 8 | |
223 or RealONE to play files with <emphasis role="bold">RealVideo 2.0-4.0</emphasis> | |
224 video, and Sipro/Cook audio. See <link linkend="realmedia">RealMedia file format</link> | |
225 section for installation instructions and more information. | |
226 </para></listitem> | |
227 </itemizedlist> | |
228 </sect2> | |
229 | |
230 | |
231 <sect2 id="video-cards"> | |
232 <title>Video cards</title> | |
233 | |
234 <para> | |
235 There are generally two kind of video cards. One kind (the newer cards) has | |
236 <emphasis role="bold">hardware scaling and YUV acceleration</emphasis> support, | |
237 the other cards don't. | |
238 </para> | |
239 | |
240 | |
241 <sect3 id="yuv-cards"> | |
242 <title>YUV cards</title> | |
243 | |
244 <para> | |
245 They can display and scale (zoom) the picture to any size that fits in | |
246 their memory, with <emphasis role="bold">small CPU usage</emphasis> (even when | |
247 zooming), thus fullscreen is nice and very fast. | |
248 | |
249 <itemizedlist> | |
250 <listitem><para> | |
251 <emphasis role="bold">Matrox G200/G400/G450/G550 cards</emphasis>: although a | |
252 <link linkend="vidix">Vidix driver</link> is provided, it is recommended to | |
253 use the mga_vid module instead, for it works much better. | |
254 Please see the <link linkend="mga_vid">mga_vid</link> section about its | |
255 installation and usage. It is important to do these steps | |
256 <emphasis>before</emphasis> compiling <application>MPlayer</application>, | |
257 otherwise no mga_vid support will be built. Also check out the | |
258 <link linkend="tvout-mga-g400">Matrox TV-out</link> section. If you | |
259 <emphasis role="bold"> If you don't use Linux</emphasis>, your only | |
9683 | 260 possibility is the VIDIX driver: read the <link linkend="vidix">VIDIX</link> section. |
9675 | 261 </para></listitem> |
262 <listitem><para> | |
263 <emphasis role="bold">3Dfx Voodoo3/Banshee cards</emphasis>: please see | |
264 <link linkend="tdfxfb">tdfxfb</link> section in order to gain big speedup. | |
265 It is important to do these steps <emphasis role="bold">before</emphasis> | |
266 compiling <application>MPlayer</application>, otherwise no 3Dfx support will be | |
267 built. Also see the <link linkend="tvout-voodoo">3dfx TV-out section</link>. | |
268 If you use X, use at least <emphasis role="bold">4.2.0</emphasis>, as 3dfx Xv | |
269 driver was broken in 4.1.0, and earlier releases. | |
270 </para></listitem> | |
271 <listitem><para> | |
272 <emphasis role="bold">ATI cards</emphasis>: <link linkend="vidix">VIDIX</link> | |
273 driver is provided for the following cards: | |
274 <emphasis role="bold">Radeon, Rage128, Mach64</emphasis> (Rage XL/Mobility, Xpert98). | |
275 Also see the <link linkend="tvout-ati">ATI cards section</link> of the TV-out documentation, | |
276 to know if you card's TV-out is supported under Linux/<application>MPlayer</application>. | |
277 </para></listitem> | |
278 <listitem><para> | |
279 <emphasis role="bold">S3 cards</emphasis>: the Savage and Virge/DX chips have | |
280 hardware acceleration. Use as new XFree86 version as possible, older drivers are | |
281 buggy. Savage chips have problems with YV12 display, see <link linkend="s3">S3 Xv | |
282 section</link> for details. Older, Trio cards have no, or slow hardware | |
283 support. | |
284 </para></listitem> | |
285 <listitem><para> | |
9683 | 286 <emphasis role="bold">nVidia cards</emphasis>: may or may not be good choice for video playing. |
9675 | 287 If you do not have a GeForce2 (or newer) card, it's not likely to work without bugs. |
9683 | 288 <emphasis role="bold">the built-in nVidia driver in XFree86 does not support |
289 hardware YUV acceleration on all nVidia cards.</emphasis> You have | |
9675 | 290 to download nVidia's closed-source drivers from nVidia.com. See the <link |
291 linkend="nvidia">nVidia Xv driver</link> section for details. Please also check | |
292 the <link linkend="tvout-nvidia">nVidia TV-out section</link> if you wish to | |
293 use a TV. | |
294 </para></listitem> | |
295 <listitem><para> | |
296 <emphasis role="bold">3DLabs GLINT R3 and Permedia3</emphasis>: a VIDIX driver | |
297 is provided (pm3_vid). Please see the <link linkend="vidix">VIDIX</link> section | |
298 for details. | |
299 </para></listitem> | |
300 <listitem><para> | |
301 <emphasis role="bold">Other cards</emphasis>: none of the above? | |
302 <itemizedlist> | |
303 <listitem><simpara> | |
304 Try if the XFree86 driver (and your card) supports hardware | |
305 acceleration. See the <link linkend="xv">Xv section</link> for details. | |
306 </simpara></listitem> | |
307 <listitem><simpara> | |
308 If it doesn't, then your card's video features aren't supported under | |
9683 | 309 your operating system :( If hardware scaling works under Windows, it |
310 doesn't mean it will work under Linux or other operating system, it depends on | |
311 the drivers. Most manufacturers neither make Linux drivers nor release | |
312 specifications of their chips - so you are unlucky if using their cards. | |
9675 | 313 See <xref linkend="non-yuv-cards"/>. |
314 </simpara></listitem> | |
315 </itemizedlist> | |
316 </para></listitem> | |
317 </itemizedlist> | |
318 </para> | |
319 </sect3> | |
320 | |
321 | |
322 <sect3 id="non-yuv-cards" xreflabel="Non-YUV cards"> | |
323 <title>Non-YUV cards</title> | |
324 | |
325 <para> | |
326 Fullscreen playing can be achieved by either enabling <emphasis role="bold"> | |
9683 | 327 software scaling</emphasis> (use the <option>-zoom</option> or <option>-vf</option> option, |
9675 | 328 but i warn you: this is slow), or switching to a smaller video mode, for example |
329 352x288. If you don't have YUV acceleration, this latter method is recommended. | |
330 Video mode switching can be enabled by using the <option>-vm</option> option and | |
331 it works with the following drivers: | |
332 <itemizedlist> | |
333 <listitem><simpara> | |
334 <emphasis role="bold">using</emphasis> XFree86: see details in <link linkend="dga">DGA driver</link> and | |
335 <link linkend="x11">X11 driver</link> sections. DGA is recommended! Also | |
336 try DGA via SDL, sometimes it's better. | |
337 </simpara></listitem> | |
338 <listitem><simpara> | |
339 <emphasis role="bold">not using</emphasis> XFree86: try the drivers in the | |
340 following order: | |
341 <link linkend="vesa">vesa</link>, | |
342 <link linkend="fbdev">fbdev</link>, | |
343 <link linkend="svgalib">svgalib</link>, | |
344 <link linkend="aalib">aalib</link>. | |
345 </simpara></listitem> | |
346 </itemizedlist> | |
347 </para> | |
348 </sect3> | |
349 | |
350 <!-- FIXME: find a more logical organization for this section --> | |
351 <sect3 id="cirrus-logic-cards" xreflabel="Cirrus-Logic cards"> | |
352 <title>Cirrus-Logic cards</title> | |
353 <itemizedlist> | |
354 <listitem><para> | |
355 GD 7548: present on-board and tested in Compaq Armada 41xx notebook series. | |
356 <itemizedlist> | |
357 <listitem><simpara> | |
358 XFree86 3: works in 8/16bpp modes. However, the driver is dramatically slow | |
359 and buggy in 800x600@16bpp. <emphasis role="bold">Recommended: 640x480@16bpp</emphasis> | |
360 </simpara></listitem> | |
361 <listitem><simpara> | |
362 XFree86 4: the Xserver freezes soon after start unless acceleration is | |
363 disabled, but then the whole thing gets slower than XFree86 3. No XVideo. | |
364 </simpara></listitem> | |
365 <listitem><simpara> | |
366 FBdev: framebuffer can be turned on with the <systemitem>clgenfb</systemitem> | |
367 driver in the kernel, though for me it worked only in 8bpp, thus unusable. | |
368 The clgenfb source had to be extended with the 7548 ID before compilation. | |
369 </simpara></listitem> | |
370 <listitem><simpara> | |
371 VESA: the card is only VBE 1.2 capable, so VESA output can't be used. Can't | |
372 be workarounded with UniVBE. | |
373 </simpara></listitem> | |
374 <listitem><simpara> | |
375 SVGAlib: detects an older Cirrus chip. Usable but slow with | |
376 <option>-bpp 8</option>. | |
377 </simpara></listitem> | |
378 </itemizedlist> | |
379 </para></listitem> | |
380 </itemizedlist> | |
381 </sect3> | |
382 </sect2> | |
383 | |
384 | |
10000 | 385 <sect2 id="sound-cards"> |
9675 | 386 <title>Sound cards</title> |
387 | |
388 <itemizedlist> | |
389 <listitem><simpara> | |
390 <emphasis role="bold">Soundblaster Live!</emphasis>: with this card you can use | |
9683 | 391 4 or 6 (<emphasis role="bold">5.1</emphasis>) channels AC3 decoding instead of 2. Read the |
9675 | 392 <link linkend="swac3">Software AC3 decoding</link> section. For hardware AC3 |
9683 | 393 passthrough you <emphasis role="bold">must</emphasis> use ALSA 0.9 with OSS emulation! |
9675 | 394 </simpara></listitem> |
395 <listitem><simpara> | |
396 <emphasis role="bold">C-Media with SP/DIF out</emphasis>: hardware AC3 | |
397 passthrough is possible with these cards, see | |
398 <link linkend="hwac3">Hardware AC3 decoding</link> section. | |
399 </simpara></listitem> | |
400 <listitem><simpara> | |
401 Features of <emphasis role="bold">other cards</emphasis> aren't supported by | |
402 <application>MPlayer</application>. <emphasis role="bold">It's very recommended | |
403 to read the <link linkend="audio-dev">sound card</link> section!</emphasis> | |
404 </simpara></listitem> | |
405 </itemizedlist> | |
406 </sect2> | |
407 | |
408 | |
409 <sect2> | |
410 <title>Features</title> | |
411 | |
412 <itemizedlist> | |
413 <listitem><para> | |
414 Decide if you need GUI. If you do, see the <link linkend="gui">GUI | |
415 section</link> before compiling. | |
416 </para></listitem> | |
417 <listitem><para> | |
418 If you want to install <application>MEncoder</application> (our great | |
419 all-purpose encoder), see the <link linkend="mencoder">MEncoder section</link>. | |
420 </para></listitem> | |
421 <listitem><para> | |
422 If you have a V4L compatible <emphasis role="bold">TV tuner</emphasis> card, | |
423 and wish to watch/grab and encode movies with <application>MPlayer</application>, | |
424 read the <link linkend="tv-input">TV input</link> section. | |
425 </para></listitem> | |
426 <listitem><para> | |
427 There is a neat <emphasis role="bold">OSD Menu</emphasis> support ready to be | |
428 used. Check the <link linkend="subosd">OSD menu</link> section. | |
429 </para></listitem> | |
430 </itemizedlist> | |
431 | |
432 <para> | |
433 Then build <application>MPlayer</application>: | |
434 <screen> | |
435 ./configure | |
436 make | |
437 make install</screen> | |
438 </para> | |
439 | |
440 <para> | |
441 At this point, <application>MPlayer</application> is ready to use. The | |
442 directory <filename class="directory">$PREFIX/share/mplayer</filename> | |
443 contains the <filename>codecs.conf</filename> file, which is used to tell | |
10132 | 444 the program all the codecs and their capabilities. This file is needed only |
445 when you want to change its properties, as the main binary contains an internal | |
446 copy of it. Check if you have | |
9675 | 447 <filename>codecs.conf</filename> in your home directory |
448 (<filename>~/.mplayer/codecs.conf</filename>) left from old | |
449 <application>MPlayer</application> versions, and remove it. | |
450 </para> | |
451 | |
452 <para> | |
10403 | 453 Note that if you have a <filename>codecs.conf</filename> in |
454 <filename>~/.mplayer/</filename>, the builtin and system | |
455 <filename>codecs.conf</filename> will be ignored completely. | |
456 Do not do this unless you want to fiddle with MPlayer internals as this can | |
457 can cause many problems. If you want to change the codecs search order, use | |
458 the <option>-vc</option>, <option>-ac</option>, <option>-vfm</option>, | |
459 or <option>-afm</option> options either on the command line or in your | |
460 config file (see the manual page). | |
461 </para> | |
462 | |
463 | |
464 <para> | |
9675 | 465 Debian users can build a .deb package for themselves, it's very simple. |
466 Just exec | |
467 <screen>fakeroot debian/rules binary</screen> | |
468 in <application>MPlayer</application>'s root directory. See | |
469 <link linkend="debian">Debian packaging</link> for detailled instructions. | |
470 </para> | |
471 | |
472 <para> | |
473 <emphasis role="bold">Always browse the output of</emphasis> | |
474 <filename>./configure</filename>, and the | |
475 <filename>configure.log</filename> file, they contain information about | |
476 what will be built, and what will not. You may also want to view | |
477 <filename>config.h</filename> and <filename>config.mak</filename> files. | |
478 If you have some libraries installed, but not detected by | |
479 <filename>./configure</filename>, then check if you also have the proper | |
480 header files (usually the -dev packages) and their version matches. The | |
481 <filename>configure.log</filename> file usually tells you what is missing. | |
482 </para> | |
483 | |
484 <para> | |
485 Though not mandatory, the fonts should be installed in order to gain OSD, | |
486 and subtitle functionality. The recommended method is installing a TTF | |
487 font file and telling MPlayer to use it. See the <link linkend="subosd">Subtitles | |
488 and OSD</link> section for details. | |
489 </para> | |
490 | |
491 </sect2> | |
492 </sect1> | |
493 | |
494 <!-- ********** --> | |
495 | |
496 <sect1 id="gui"> | |
497 <title>What about the GUI?</title> | |
498 | |
499 <para> | |
500 The GUI needs GTK 1.2.x (it isn't fully GTK, but the panels are). The skins | |
501 are stored in PNG format, so GTK, <systemitem class="library">libpng</systemitem> | |
502 (and their devel stuff, usualy called <systemitem class="library">gtk-dev</systemitem> | |
503 and <systemitem class="library">libpng-dev</systemitem>) has to be installed. | |
504 You can build it by specifying <option>--enable-gui</option> during | |
10000 | 505 <filename>./configure</filename>. Then, to turn on GUI mode, you have to |
506 execute the <command>gmplayer</command> binary. | |
9675 | 507 </para> |
508 | |
509 <para> | |
510 Currently you can't use the <option>-gui</option> option on the command | |
511 line, due to technical reasons. | |
512 </para> | |
513 | |
514 <para> | |
515 As <application>MPlayer</application> doesn't have a skin included, you | |
516 have to download them if you want to use the GUI. See the <ulink | |
517 url="http://www.mplayerhq.hu/homepage/dload.html">download page</ulink>. | |
518 They should be extracted to the usual system-wide directory (<filename | |
519 class="directory">$PREFIX/share/mplayer/Skin</filename>), or to <filename | |
520 class="directory">$HOME/.mplayer/Skin</filename>. | |
521 <application>MPlayer</application> by default looks in these directories | |
522 for a directory named <filename class="directory">default</filename>, but | |
523 you can use the <option>-skin <replaceable>newskin</replaceable></option> | |
524 option, or the <literal>skin=newskin</literal> config file directive to use | |
525 the skin in <filename class="directory">*/Skin/newskin</filename> | |
526 directory. | |
527 </para> | |
528 </sect1> | |
529 | |
530 <!-- ********** --> | |
531 | |
532 <sect1 id="subosd"> | |
533 <title>Subtitles and OSD</title> | |
534 | |
535 <para> | |
536 MPlayer can display subtitles along with movie files. Currently the | |
537 following formats are supported: | |
538 <itemizedlist> | |
539 <listitem><para>VobSub</para></listitem> | |
540 <listitem><para>OGM</para></listitem> | |
541 <listitem><para>CC (closed caption)</para></listitem> | |
542 <listitem><para>Microdvd</para></listitem> | |
543 <listitem><para>SubRip</para></listitem> | |
544 <listitem><para>SubViewer</para></listitem> | |
545 <listitem><para>Sami</para></listitem> | |
546 <listitem><para>VPlayer</para></listitem> | |
547 <listitem><para>RT</para></listitem> | |
548 <listitem><para>SSA</para></listitem> | |
549 <listitem><para><link linkend="mpsub">MPsub</link></para></listitem> | |
550 <listitem><para>AQTitle</para></listitem> | |
10277 | 551 <listitem><para><ulink url="http://unicorn.us.com/jacosub/">JACOsub</ulink></para></listitem> |
9675 | 552 </itemizedlist> |
553 </para> | |
554 | |
555 <para> | |
556 MPlayer can dump the previously listed subtitle formats | |
557 (<emphasis role="bold">except the three first</emphasis>) into the following | |
558 destination formats, with the given options: | |
559 <itemizedlist> | |
560 <listitem><para>MPsub: <option>-dumpmpsub</option></para></listitem> | |
561 <listitem><para>SubRip: <option>-dumpsrtsub</option></para></listitem> | |
562 <listitem><para>Microdvd: <option>-dumpmicrodvdsub</option></para></listitem> | |
563 <listitem><para>JACOsub: <option>-dumpjacosub</option></para></listitem> | |
564 <listitem><para>Sami: <option>-dumpsami</option></para></listitem> | |
565 </itemizedlist> | |
566 </para> | |
567 | |
568 <para> | |
10132 | 569 MEncoder can dump DVD subtitles into <link linkend="menc-feat-extractsub">VobSub</link> format. |
570 </para> | |
571 | |
572 <para> | |
9675 | 573 The command line options differ slightly for the different formats: |
574 </para> | |
575 | |
576 <formalpara> | |
577 <title>VobSub subtitles</title> | |
578 <para> | |
579 VobSub subtitles consist of a big (some megabytes) <filename>.SUB</filename> file, | |
580 and optional <filename>.IDX</filename> and/or <filename>.IFO</filename> | |
581 files. If you have files like <filename>sample.sub</filename>, | |
582 <filename>sample.ifo</filename> (optional), <filename>sample.idx</filename> - | |
583 you have to pass <application>MPlayer</application> the | |
584 <option>-vobsub sample [-vobsubid <replaceable>id</replaceable>]</option> options | |
585 (full path optional). The <option>-vobsubid</option> option is like | |
586 <option>-sid</option> for DVDs, you can choose between subtitle tracks | |
587 (languages) with it. In case that <option>-vobsubid</option> is omitted, | |
588 <application>MPLayer</application> will try to use the languages given by the | |
589 <option>-slang</option> option and fall back to the <systemitem>langidx</systemitem> | |
590 in the <filename>.IDX</filename> file to set the subtitle language. If it fails, | |
591 there will be no subtitles. | |
592 </para> | |
593 </formalpara> | |
594 | |
595 <formalpara> | |
596 <title>Other subtitles</title> | |
597 <para> | |
598 The other formats consist of a single text file containing timing, | |
599 placement and text information. Usage: If you have a file like | |
600 <filename>sample.txt</filename>, you have to pass the option <option>-sub | |
601 sample.txt</option> (full path optional). | |
602 </para> | |
603 </formalpara> | |
604 | |
605 <variablelist> | |
606 <title>Adjusting subtitle timing and placement:</title> | |
607 <varlistentry> | |
608 <term><option>-subdelay <replaceable>sec</replaceable></option></term> | |
609 <listitem><simpara> | |
610 Delays subtitles by <option><replaceable>sec</replaceable></option> seconds. | |
611 Can be negative. | |
612 </simpara></listitem> | |
613 </varlistentry> | |
614 <varlistentry> | |
615 <term><option>-subfps <replaceable>RATE</replaceable></option></term> | |
616 <listitem><simpara> | |
617 Specify frame/sec rate of subtitle file (float number). | |
618 </simpara></listitem> | |
619 </varlistentry> | |
620 <varlistentry> | |
621 <term><option>-subpos <replaceable>0-100</replaceable></option></term> | |
622 <listitem><simpara> | |
623 Specify the position of subtitles. | |
624 </simpara></listitem> | |
625 </varlistentry> | |
626 </variablelist> | |
627 | |
628 <para> | |
629 If you experience a growing delay between the movie and the subtitles when | |
630 using a MicroDVD subtitle file, most likely the frame rate of the movie and | |
631 the subtitle file are different. Please note that the MicroDVD subtitle | |
632 format uses absolute frame numbers for its timing, and therefore the | |
633 <option>-subfps</option> option cannot be used with this format. As | |
634 <application>MPlayer</application> has no way to guess the frame rate of | |
635 the subtitle file, you have to manually convert the frame rate. There is a | |
636 little perl script in the <filename class="directory">contrib</filename> | |
637 directory of the MPlayer FTP site to do this conversion for you. | |
638 </para> | |
639 | |
640 <para> | |
641 About DVD subtitles, read the <link linkend="dvd">DVD section</link>. | |
642 </para> | |
643 | |
644 | |
645 <sect2 id="mpsub"> | |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
646 <title>MPlayer's own subtitle format (MPsub)</title> |
9675 | 647 |
648 <para> | |
649 <application>MPlayer</application> introduces a new subtitle format called | |
650 <emphasis role="bold">MPsub</emphasis>. It was designed by Gabucino. Basically | |
651 its main feature is being <emphasis>dynamically</emphasis> time-based (although | |
652 it has frame-based mode too). Example (from <ulink | |
653 url="../../tech/mpsub.sub">DOCS/tech/mpsub.sub</ulink>): | |
654 <programlisting> | |
10132 | 655 FORMAT=TIME |
9675 | 656 # first number : wait this much after previous subtitle disappeared |
657 # second number : display the current subtitle for this many seconds | |
658 | |
659 15 3 | |
660 A long long, time ago... | |
661 | |
662 0 3 | |
663 in a galaxy far away... | |
664 | |
665 0 3 | |
666 Naboo was under an attack.<!-- | |
667 --></programlisting> | |
668 </para> | |
669 | |
670 <para> | |
671 So you see, the main goal was to <emphasis role="bold">make subtitle | |
672 editing/timing/joining/cutting easy</emphasis>. And, if you - say - get an | |
673 SSA subtitle but it's badly timed/delayed to your version of the movie, you | |
674 simply do a | |
675 <screen>mplayer dummy.avi -sub source.ssa -dumpmpsub</screen> | |
676 A <filename>dump.mpsub</filename> file will be created in the | |
677 current directory, which will contain the source subtitle's text, but in | |
678 <emphasis role="bold">MPsub</emphasis> format. Then you can freely add/subtract | |
679 seconds to/from the subtitle. | |
680 </para> | |
681 | |
682 <para> | |
683 Subtitles are displayed with a technique called <emphasis role="bold">'OSD', | |
684 On Screen Display</emphasis>.OSD is used to display current time, volume bar, | |
685 seek bar etc. | |
686 </para> | |
687 </sect2> | |
688 | |
689 | |
690 <sect2 id="mpsub-install"> | |
691 <title>Installing OSD and subtitles</title> | |
692 | |
693 <para> | |
694 You need an MPlayer font package to be able to use OSD/SUB feature. | |
695 There are many ways to get it: | |
696 </para> | |
697 | |
698 <itemizedlist> | |
699 <listitem><para> | |
10132 | 700 using a TrueType (TTF) font, by the means of the <systemitem class="library">freetype</systemitem> |
701 library. Version 2.0.9 or greater is mandatory! Then you have two methods: | |
702 <itemizedlist> | |
703 <listitem><para> | |
704 use the <option>-font /path/to/arial.ttf</option> option to specify a | |
705 TrueType font file on every occasion | |
706 </para></listitem> | |
707 <listitem><para> | |
708 create a symlink:<screen>ln -s /path/to/arial.ttf ~/.mplayer/subfont.ttf</screen> | |
709 </para></listitem> | |
710 </itemizedlist> | |
711 </para></listitem> | |
712 <listitem><para> | |
9675 | 713 Download ready-to-use font packages from MPlayer site. Note: currently |
714 available fonts are limited for ISO 8859-1/2 support, but there are some | |
715 other (including Korean, Russian, ISO 8859-8 etc) fonts at contrib/font | |
716 section of FTP, made by users. | |
717 </para><para> | |
718 <!-- FIXME: this para should be before the list --> | |
719 Font should have appropriate <filename>font.desc</filename> file which | |
720 maps unicode font positions to the actual code page of the subtitles | |
721 text. Other solution is to have subtitles encoded in UTF8 encoding and | |
722 use <option>-utf8</option> option or just name the subtitles file | |
723 <filename><video_name>.utf</filename> and have it in the same dir | |
724 as the video file. Recoding from different codepages to UTF8 could be | |
725 <!-- FIXME: iconv (Debian) konwert (Red Hat) instead? --> | |
726 done by using <command>konwert</command> (Debian) or | |
727 <command>iconv</command> (Red Hat) programs. | |
728 </para><para> | |
729 | |
730 <table> | |
731 <title>Some URLs</title> | |
732 <tgroup cols="2"> | |
733 <thead> | |
734 <row><entry>URL</entry><entry>Comment</entry></row> | |
735 </thead> | |
736 <tbody> | |
737 <row><entry> | |
9683 | 738 <ulink url="ftp://ftp.mplayerhq.hu/MPlayer/releases/fonts/"></ulink> |
9675 | 739 </entry><entry> |
740 ISO fonts | |
741 </entry></row> | |
742 <row><entry> | |
743 <ulink url="ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/"></ulink> | |
744 </entry><entry> | |
745 various fonts by users | |
746 </entry></row> | |
747 <row><entry> | |
9683 | 748 <ulink url="http://realtime.ssu.ac.kr/~lethean/mplayer/"></ulink> |
9675 | 749 </entry><entry> |
750 Korean fonts and RAW plugin | |
751 </entry></row> | |
752 </tbody> | |
753 </tgroup> | |
754 </table> | |
10132 | 755 |
9675 | 756 </para></listitem> |
757 <listitem><para> | |
758 Use the font generator tool at <filename | |
759 class="directory">TOOLS/subfont-c</filename>. It's a complete tool to | |
760 convert from TTF/Type1/etc font to mplayer font pkg. (read | |
761 <filename>TOOLS/subfont-c/README</filename> for details) | |
762 </para></listitem> | |
763 <listitem><para> | |
764 Use the font generator GIMP plugin at <filename | |
765 class="directory">TOOLS/subfont-GIMP</filename> (note: you must have HSI | |
766 RAW plugin too, see URL below) | |
767 <!-- FIXME: where's that URL? --> | |
768 </para></listitem> | |
769 </itemizedlist> | |
770 | |
771 <para> | |
772 If you chose non-TTF fonts, UNZIP the file you downloaded to <filename | |
773 class="directory">~/.mplayer</filename> or <filename | |
774 class="directory">$PREFIX/share/mplayer</filename>. Then rename or symlink | |
775 one of the extracted directories to <filename>font</filename>, for example: | |
776 | |
777 <screen>ln -s ~/.mplayer/arial-24 ~/.mplayer/font</screen> | |
778 | |
779 Now you have to see a timer at the upper left corner of the movie (switch | |
780 it off with the <keycap>o</keycap> key). | |
781 </para> | |
782 | |
783 <para> | |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
784 (subtitles are <emphasis>always enabled</emphasis>, for disabling them please |
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
785 read the man page) |
9737 | 786 </para> |
787 | |
9736
520f6d60bf75
fixes, some by Dmitry Baryshkov <lumag@qnc.ru>, some by me
nicolas
parents:
9683
diff
changeset
|
788 <para> |
9675 | 789 OSD has 4 states (switch with <keycap>o</keycap>): |
790 | |
791 <orderedlist> | |
792 <listitem><simpara> | |
793 volume bar + seek bar (default) | |
794 </simpara></listitem> | |
795 <listitem><simpara> | |
796 volume bar + seek bar + timer + file position percentage on seeking | |
797 </simpara></listitem> | |
798 <listitem><simpara> | |
799 volume bar + seek bar + timer + total duration of the media | |
800 </simpara></listitem> | |
801 <listitem><simpara> | |
802 subtitles only | |
803 </simpara></listitem> | |
804 </orderedlist> | |
805 | |
806 You can change default behaviour by setting <varname>osdlevel</varname> | |
807 variable in config file, or the <option>-osdlevel</option> command line option. | |
808 | |
809 </para> | |
810 </sect2> | |
811 | |
812 | |
813 <sect2 id="osdmenu"> | |
814 <title>OSD menu</title> | |
815 | |
816 <para> | |
817 MPlayer has a completely user definiable OSD Menu interface. | |
818 </para> | |
819 | |
820 <note><simpara> | |
821 the Preferences menu is currently UNIMPLEMENTED! | |
822 </simpara></note> | |
823 | |
824 <orderedlist> | |
825 <title>Installation</title> | |
826 <listitem><simpara> | |
827 compile <application>MPlayer</application> by passing the <option>--enable-menu</option> | |
828 to <filename>./configure</filename> | |
829 </simpara></listitem> | |
830 <listitem><simpara> | |
831 make sure you have an OSD font installed | |
832 </simpara></listitem> | |
833 <listitem><simpara> | |
834 copy <filename>etc/menu.conf</filename> to your | |
835 <filename class="directory">.mplayer</filename> directory | |
836 </simpara></listitem> | |
837 <listitem><simpara> | |
838 copy <filename>etc/input.conf</filename> to your | |
839 <filename class="directory">.mplayer</filename> directory, or to the system-wide | |
840 <application>MPlayer</application> config dir (default: | |
841 <filename class="directory">/usr/local/etc/mplayer</filename>) | |
842 </simpara></listitem> | |
843 <listitem><simpara> | |
844 check and edit <filename>input.conf</filename> to enable menu movement keys | |
845 (it is described there). | |
846 </simpara></listitem> | |
847 <listitem><para> | |
848 start <application>MPlayer</application> by the following example: | |
849 <screen>$ mplayer -menu file.avi</screen> | |
850 </para></listitem> | |
851 <listitem><simpara> | |
852 push any menu key you defined | |
853 </simpara></listitem> | |
854 </orderedlist> | |
855 | |
856 </sect2> | |
857 </sect1> | |
858 | |
859 <!-- ********** --> | |
860 | |
861 <sect1 id="rtc"> | |
862 <title>RTC</title> | |
863 <para> | |
864 There are three timing methods in MPlayer. | |
865 | |
866 <itemizedlist> | |
867 <listitem><simpara> | |
868 <emphasis role="bold">To use the old method</emphasis>, you don't have to do | |
869 anything. It uses <systemitem>usleep()</systemitem> to tune | |
870 A/V sync, with +/- 10ms accuracy. However sometimes the sync has to be | |
871 tuned even finer. | |
872 </simpara></listitem> | |
873 <listitem><para> | |
874 <emphasis role="bold">The new timer</emphasis> code uses PC's RTC (Real Time Clock) | |
875 for this task, because it has precise 1ms timers. It is automagically enabled | |
876 when available, but requires root privileges, a <emphasis>setuid root</emphasis> | |
877 <application>MPlayer</application> binary or a properly set up kernel. | |
878 If you are running kernel 2.4.19pre8 or later you can adjust the maximum RTC | |
879 frequency for normal users through the /proc filesystem. Use this command to | |
880 enable RTC for normal users: | |
881 <screen>echo 1024 > /proc/sys/dev/rtc/max-user-freq</screen> | |
882 If you do not have such a new kernel, you can also change one line in | |
883 <filename>drivers/char/rtc.c</filename> and recompile your kernel. | |
884 Find the section that reads | |
885 <programlisting> | |
886 * We don't really want Joe User enabling more | |
887 * than 64Hz of interrupts on a multi-user machine. | |
888 */ | |
889 if ((rtc_freq > 64) && (!capable(CAP_SYS_RESOURCE))) | |
890 </programlisting> | |
891 and change the 64 to 1024. You should really know what you are doing, though. | |
892 You can see the new timer's efficiency in the status line. | |
893 The power management functions of some notebook BIOSes with speedstep CPUs | |
894 interact badly with RTC. Audio and video may get out of sync. Plugging the | |
895 external power connector in before you power up your notebook seems to help. | |
896 You can always turn off RTC support with the <option>-nortc</option> option. | |
897 In some hardware combinations (confirmed during usage of non-DMA DVD drive | |
898 on an ALi1541 board) usage of the RTC timer causes skippy playback. It's | |
899 recommended to use the third method in these cases. | |
900 </para></listitem> | |
901 <listitem><simpara> | |
902 <emphasis role="bold">The third timer code</emphasis> is turned on with the | |
903 <option>-softsleep</option> option. It has the efficiency of the RTC, but it | |
904 doesn't use RTC. On the other hand, it requires more CPU. | |
905 </simpara></listitem> | |
906 </itemizedlist> | |
907 <note><para><emphasis role="bold">NEVER install a setuid root | |
908 <application>MPlayer</application> binary on a multiuser system!</emphasis> | |
909 It's a clear way for everyone to become root. | |
910 </para></note> | |
911 </para> | |
912 </sect1> |