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