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