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