comparison DOCS/documentation.html @ 3288:c21cea0a12aa

enhanced Installation section
author gabucino
date Mon, 03 Dec 2001 17:08:09 +0000
parents 9d4a7b4afba2
children 1842ec5916a4
comparison
equal deleted inserted replaced
3287:e1cf5e6338a8 3288:c21cea0a12aa
169 169
170 <P><B><A NAME=1.1>1.1. Overview</A></B></P> 170 <P><B><A NAME=1.1>1.1. Overview</A></B></P>
171 171
172 <P><B>MPlayer</B> is a movie player for LINUX (runs on many other Unices, and 172 <P><B>MPlayer</B> is a movie player for LINUX (runs on many other Unices, and
173 <B>non-x86</B> CPUs, see <A HREF="#6">section 6</A>). It plays most MPEG, VOB, 173 <B>non-x86</B> CPUs, see <A HREF="#6">section 6</A>). It plays most MPEG, VOB,
174 AVI, VIVO, ASF/WMV, QT/MOV files, supported by many native, XAnim, and Win32 174 AVI, VIVO, ASF/WMV, QT/MOV, FLI files, supported by many native, XAnim, and
175 DLL codecs. You can watch <B>VideoCD</B>, <B>SVCD</B>, <B>DVD</B>, <B>3ivx</B>, 175 Win32 DLL codecs. You can watch <B>VideoCD</B>, <B>SVCD</B>, <B>DVD</B>,
176 and even <B>DivX</B> movies too (and you don't need the avifile library at 176 <B>3ivx</B>, and even <B>DivX</B> movies too (and you don't need the avifile
177 all!). The another big feature of mplayer is the wide range of supported output 177 library at all!). The another big feature of mplayer is the wide range of
178 drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can 178 supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev,
179 use SDL (and this way all drivers of SDL) and some lowlevel card-specific 179 AAlib, DirectFB, but you can use GGI and SDL (and this way all their drivers)
180 drivers (for Matrox, 3Dfx and Radeon) too! Most of them supports software or 180 and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon) too! Most
181 hardware scaling, so you can enjoy movies in fullscreen. <B>MPlayer</B> 181 of them supports software or hardware scaling, so you can enjoy movies in
182 supports displaying through some hardware MPEG decoder boards, such as the 182 fullscreen. <B>MPlayer</B> supports displaying through some hardware MPEG
183 <B><A HREF="DVB">DVB</A></B> and <B> <A HREF="DXR3">DXR3/Hollywood+</A></B> ! 183 decoder boards, such as the <B><A HREF="DVB">DVB</A></B> and <B> <A
184 And what about the nice big antialiased shaded subtitles (<B>9 supported 184 HREF="DXR3">DXR3/Hollywood+</A></B> ! And what about the nice big antialiased
185 types!!!</B>) with european/ISO 8859-1,2 (hungarian, english, czech, etc), 185 shaded subtitles (<B>9 supported types!!!</B>) with european/ISO 8859-1,2
186 cyrillic, korean fonts, and OSD?</P> 186 (hungarian, english, czech, etc), cyrillic, korean fonts, and OSD?</P>
187 187
188 <P><B>MPlayer</B> is basically GPL, but contains some non-GPL code which is not 188 <P><B>MPlayer</B> is basically GPL, but contains some non-GPL code which is not
189 allowed to be distributed in binary form, and also contains the OpenDivX 189 allowed to be distributed in binary form, and also contains the OpenDivX
190 library which has special license. We are still developing towards GPL.</P> 190 library which has special license. We are still developing towards GPL.</P>
191 191
248 248
249 </UL></P> 249 </UL></P>
250 250
251 <P><B><A NAME=1.3>1.3. Installation</A></B></P> 251 <P><B><A NAME=1.3>1.3. Installation</A></B></P>
252 252
253 <P><B><I>REQUIREMENTS</I></B><BR> 253 <P>In this chapter I'll try to guide you through the compiling and
254 configuring process of <B>MPlayer</B>. It's not easy, but it won't neccessarily
255 be hard. If you experience a different behaviour than what I explain, please
256 search through this documentation and you'll find your answers. If you
257 see links, please follow them and read carefully what they contain. It
258 will take some time, but it DOES worth it.</P>
259
260 <P>You need a fairly recent system. On Linux, 2.4.x kernels are required, but
261 with 2.4.10 and above you'll ocassionally experience problems (licensing,
262 kernel bugs, etc) so they are discouraged.</P>
263
264 <P><B><I>SOFTWARE REQUIREMENTS</I></B><BR>
254 265
255 <UL> 266 <UL>
256 <LI><B>binutils</B> - suggested version is <B>2.11.x</B> . This program is 267 <LI><B>binutils</B> - suggested version is <B>2.11.x</B> . This program is
257 responsible for generating MMX/3DNow!/etc instructions, thus very important.</LI> 268 responsible for generating MMX/3DNow!/etc instructions, thus very important.</LI>
258 <LI><B>gcc</B> - suggested version is from <B>2.95.2</B> to <B>2.95.4</B>. 269 <LI><B>gcc</B> - suggested version is from <B>2.95.2</B> to <B>2.95.4</B>.
259 <B>NEVER</B> use 2.96 or 3.x.x !!! They generate faulty code.</LI> 270 <B>NEVER</B> use 2.96 or 3.x.x !!! They generate faulty code. If you decide
260 <LI><B>XFree86</B> - suggested version is <B>always the newest (4.1.0)</B>. Normally 271 to change gcc from 2.96, then don't decide in favor of 3.0 juts because
261 everyone wants this. If you don't know why, you <B>do</B> need it. Make 272 it's newer! In some ways it's even worse than 2.96. So downgrade to
262 sure its <B>development package</B> is installed too !</LI> 273 2.95.x (downgrade libstdc++ too!) or don't up/downgrade at all (but in
274 this case, be prepared for runtime problems).
275 Detailed information about gcc 2.96's bugs can be found
276 <A HREF="users_against_developers.html"><B><I>here</I></B></A> and in the
277 <A HREF="faq.html">FAQ</A> !</I></B></LI>
278 <LI><B>XFree86</B> - suggested version is <B>always the newest (4.1.0)</B>.
279 Normally everyone wants this, as starting from XFree86 4.0.2, it contains
280 the <A HREF="video.html#2.3.1.2">XVideo</A> extension (somewhere referred
281 as <B>Xv</B>) which is needed to enable the hardware YUV acceleration (fast
282 image display) on cards that support it. <A HREF="video.html#2.3.1.2">More
283 information available.</A><BR>
284 Make sure its <B>development package</B> is installed too otherwise
285 it won't work.<BR>
286 For some videocards you don't need XFree86. See list below.</LI>
263 <LI><B>make</B> - suggested version is <B>always the newest</B> (at least 3.79.x). This 287 <LI><B>make</B> - suggested version is <B>always the newest</B> (at least 3.79.x). This
264 usually isn't important.</LI> 288 usually isn't important.</LI>
265 <LI><B>SDL</B> - it's not mandatory, but can help in some cases. Always 289 <LI><B>SDL</B> - it's not mandatory, but can help in some cases. Always
266 use the newest (beginning from 1.2.x).</LI> 290 use the newest (beginning from 1.2.x).</LI>
267 </UL>
268 </P>
269
270 <P>Read the following before trying to compile <B>MPlayer</B>:</P>
271
272 <UL>
273 <LI>If you have <B>gcc 2.96</B> on your system, <A HREF="users_against_developers.html"><B><I>READ
274 THIS</A> and the <A HREF="faq.html">FAQ</A> !</I></B></LI>
275 </UL> 291 </UL>
276 292
277 <P><B><I>CODECS</I></B></P> 293 <P><B><I>CODECS</I></B></P>
278 294
279 <UL> 295 <UL>
280 <LI><B>libavcodec</B> : If you want to use this DivX3/DivX4/etc codec, check the 296 <LI><B>libavcodec</B> : If you want to use this DivX3/DivX4/etc codec, check the
281 <A HREF="codecs.html#2.2.1.2">2.2.1.2</A> section before compiling. Features :<BR> 297 <A HREF="codecs.html#2.2.1.2">2.2.1.2</A> section before compiling. Features :<BR>
282 <UL> 298 <UL>
283 <LI>you can <B>gain <I>DivX/DivX4</I> playing on non-x86 machines</B></LI> 299 <LI>you can <B>gain <I>DivX/DivX4</I> playing on non-x86 machines</B></LI>
284 <LI>this codec has the <B>greatest decoding speed</B> for DivX and DivX4 300 <LI>this codec has the <B>greatest decoding speed</B> for DivX and DivX4
285 movies (even faster than the original DivX4 library itself) !</LI> 301 movies (even faster than the original DivX4 library itself) ! Recommended!</LI>
286 </UL> 302 </UL>
287 </LI> 303 </LI>
288 304
289 <LI><B>Win32 codecs</B> : If you plan to use <B>MPlayer</B> on x86 305 <LI><B>Win32 codecs</B> : If you plan to use <B>MPlayer</B> on x86
290 architecture, you will possibly need them. Download and unzip w32codecs.zip to 306 architecture, you will possibly need them. Download and unzip w32codecs.zip to
301 <LI><B>DivX4</B> : information about this codec is available in the 317 <LI><B>DivX4</B> : information about this codec is available in the
302 <A HREF="codecs.html#2.2.1.1">2.2.1.1</A> section. If you don't want to use 318 <A HREF="codecs.html#2.2.1.1">2.2.1.1</A> section. If you don't want to use
303 <B>MEncoder</B>, you possibly don't want this codec as <B>libavcodec</B> (see 319 <B>MEncoder</B>, you possibly don't want this codec as <B>libavcodec</B> (see
304 above) is much faster than this.<BR> 320 above) is much faster than this.<BR>
305 Features :<UL> 321 Features :<UL>
306 <LI>can play old <B>DivX3</B> movies much faster than the Win32 DLL</LI> 322 <LI>can play old <B>DivX3</B> movies much faster than the Win32 DLL but
323 slower than <B>libavcodec</B> !</LI>
307 <LI>it's closed-source, and only an x86 version is available.</LI> 324 <LI>it's closed-source, and only an x86 version is available.</LI>
308 <LI><I>You also need this codec for <B>MEncoder</B>, see below !</I></LI> 325 <LI><I>You also need this codec for <B>MEncoder</B>, see below !</I></LI>
309 </UL> 326 </UL>
310 </LI> 327 </LI>
311 328
312 <LI>If you want to play <B>3ivx</B> movies, check the <A HREF=codecs.html#2.2.1.3> 329 <LI>If you want to play <B>3ivx</B> movies, check the <A HREF=codecs.html#2.2.1.3>
313 XAnim codecs section</A>.</LI> 330 XAnim codecs section</A>.</LI>
331
332 <LI>The <A HREF=codecs.html#2.2.1.3>XAnim codecs</A> are the best (full screen,
333 hardware YUV zoom) for decoding old videos like Indeo 3/4/5, Cinepak, and some
334 others. And they are multiplatform, so this is the only way to play Indeo on
335 non-x86 platforms (well, apart from using XAnim:).</LI>
336
314 </UL> 337 </UL>
315 338
316 <P><B><I>VIDEOCARDS</I></B></P> 339 <P><B><I>VIDEOCARDS</I></B></P>
317 340
341 <P>There are generally two kind of videocards. One kind (the newer cards) has
342 <B>hardware YUV acceleration</B> support, the other cards don't.</P>
343
344 <P>
345 <B><I>YUV cards</I></B></P>
346
347 <P>
348 They can display and scale (zoom) the picture to any size that fits in
349 their memory, with <B>small CPU usage</B> (zooming doesn't increase it!), thus
350 you get a nice and very fast fullscreen playing.</P>
351
352 <P>
318 <UL> 353 <UL>
319 <LI><B>Matrox G200/G400/G450/G550 cards</B> : please see the <A HREF="video.html#2.3.1.7">mga_vid</A> 354 <LI><B>Matrox G200/G400/G450/G550 cards</B> : please see the <A HREF="video.html#2.3.1.7">mga_vid</A>
320 section in order to gain big speedup. It is important to do these steps 355 section in order to gain big speedup. It is important to do these steps
321 <I>before</I> compiling <B>MPlayer</B>, otherwise no Matrox-specific support will be 356 <I>before</I> compiling <B>MPlayer</B>, otherwise no Matrox-specific support will be
322 built. Also check out the <A HREF="video.html#2.3.1.A.1">Matrox TV-out</A> 357 built. Also check out the <A HREF="video.html#2.3.1.A.1">Matrox TV-out</A>
331 <LI><B>ATI cards</B> : see the <A HREF="video.html#2.3.1.A.2">ATI cards 366 <LI><B>ATI cards</B> : see the <A HREF="video.html#2.3.1.A.2">ATI cards
332 section</A> of the TV-out documentation, to know what features of your card is 367 section</A> of the TV-out documentation, to know what features of your card is
333 supported under Linux/MPlayer. If you have a <B>Radeon</B> or <B>Rage128</B> card, we have a 368 supported under Linux/MPlayer. If you have a <B>Radeon</B> or <B>Rage128</B> card, we have a
334 <B>XXX_vid</B> driver for you, with TV out ! Check <A 369 <B>XXX_vid</B> driver for you, with TV out ! Check <A
335 HREF="video.html#2.3.1.14">this</A> section !</LI> 370 HREF="video.html#2.3.1.14">this</A> section !</LI>
371
372 <LI><B>S3 cards</B> : the Savage chips have hardware acceleration. Use as
373 new XFree86 version as possible, older drivers are buggy. Savage chips
374 have problems with YV12 display, see <A HREF="video.html#2.3.1.2.2">S3 Xv
375 section</A> for details. Older, non-Savage cards have no, or slow hardware
376 support.</LI>
377
378 <LI><B>Nvidia cards</B> : very bad choice for video playing. Nvidia's
379 cards are manufactured on the far-east, and have very cheap and bad
380 quality chips. Moreover, <U>the built-in Nvidia driver in XFree86 doesn't
381 contain support for hardware YUV acceleration!</U> You have to download
382 Nvidia's closed-source drivers from nvidia.com . See details in <A
383 HREF="video.html#2.3.1.2.3">Nvidia Xv driver</A> section.</LI>
384
385 <LI><B>other cards</B> : none of the above?
386 <UL>
387 <LI>Try if the XFree86 driver (and your card) supports hardware
388 acceleration. See the <A HREF="video.html#2.3.1.2">Xv section</A> for
389 details.</LI>
390 <LI>If it doesn't, your card is one of the :</LI>
391 </UL>
392 </LI>
393
336 </UL> 394 </UL>
395 </P>
396
397 <P>
398 <B><I>Non-YUV cards</I></B></P>
399
400 <P>
401 Fullscreen playing can be achieved by either zooming
402 (<B>by software</B>, this is slooow), or changing to a smaller videomode, for
403 example to 352x288. If you don't have YUV accel, this latter method is
404 the recommended one. Throughout <B>MPlayer</B>, <U>this behaviour can
405 be switched on by using the <CODE>-vm</CODE> option</U> and with
406 the following drivers :
407 <UL>
408 <LI><B>using</B> XFree86 : see details in
409 <A HREF="video.html#2.3.1.3">DGA driver</A> and
410 <A HREF="video.html#2.3.1.13">X11 driver</A> sections. DGA is
411 recommended!</LI>
412 <LI><B>not using</B> XFree86 : try the drivers in the following order :
413 <A HREF="video.html#2.3.1.12">vesa</A>,
414 <A HREF="video.html#2.3.1.6">fbdev</A>,
415 <A HREF="video.html#2.3.1.5">svgalib</A>,
416 <A HREF="video.html#2.3.1.11">aalib</A>.</LI>
417 </UL>
418 </P>
337 419
338 <P><B><I>SOUNDCARDS</I></B></P> 420 <P><B><I>SOUNDCARDS</I></B></P>
339 421
340 <UL> 422 <UL>
423
341 <LI><B>Soundblaster Live!</B> : with this card you can use 4 or 6 (<B>5.1</B>) 424 <LI><B>Soundblaster Live!</B> : with this card you can use 4 or 6 (<B>5.1</B>)
342 channels AC3 decoding instead of 2. Read the 425 channels AC3 decoding instead of 2. Read the
343 <A HREF="codecs.html#2.2.2.1">Software AC3 decoding</A> section.</LI> 426 <A HREF="codecs.html#2.2.2.1">Software AC3 decoding</A> section.</LI>
427
428 <LI><B>other cards'</B> features aren't supported by <B>MPlayer</B>.
429 <U>It's very recommended to read the <A HREF="sound.html#2.3.2">soundcards
430 section</A> !</U>
344 </UL> 431 </UL>
345 432
346 <P><B><I>FEATURES</I></B></P> 433 <P><B><I>FEATURES</I></B></P>
347 434
348 <UL> 435 <UL>
349 <LI>For DVD support, you'll have to compile libdvdread and libdvdcss. 436 <LI>For DVD support, you'll have to compile libdvdcss and libdvdread, and
437 in this order!
350 See <A HREF="cd-dvd.html#4.2">section 4.2</A> for more information.</LI> 438 See <A HREF="cd-dvd.html#4.2">section 4.2</A> for more information.</LI>
351 439
352 <LI>Decide if you need GUI. If you do, see the <A HREF=#1.4>1.4 section</A> 440 <LI>Decide if you need GUI. If you do, see the <A HREF=#1.4>1.4 section</A>
353 before compiling.</LI> 441 before compiling.</LI>
354 442
407 <LI>specify <CODE>gui=yes</CODE> in your config file</LI> 495 <LI>specify <CODE>gui=yes</CODE> in your config file</LI>
408 <LI><CODE>ln -s /usr/local/bin/mplayer /usr/local/bin/gmplayer</CODE> , 496 <LI><CODE>ln -s /usr/local/bin/mplayer /usr/local/bin/gmplayer</CODE> ,
409 and call <CODE>gmplayer</CODE> instead. 497 and call <CODE>gmplayer</CODE> instead.
410 </UL> 498 </UL>
411 </P> 499 </P>
500
501 <P>Since GTK doesn't run from a <B>setuid root</B> binary, you can't use
502 the GUI and the <B>new timer code</B> (mentioned above) together (unless
503 you run <B>MPlayer</B> as root, of course).</P>
412 504
413 <P>As <B>MPlayer</B> doesn't have a skin included, you have to download them 505 <P>As <B>MPlayer</B> doesn't have a skin included, you have to download them
414 if you want to use the GUI. See the <A HREF="http://www.mplayerhq.hu/homepage/dload.html">download page</A>. 506 if you want to use the GUI. See the <A HREF="http://www.mplayerhq.hu/homepage/dload.html">download page</A>.
415 They should be extracted to the usual system-wide directory (<CODE>/usr/local/share/mplayer/Skin</CODE>), 507 They should be extracted to the usual system-wide directory (<CODE>/usr/local/share/mplayer/Skin</CODE>),
416 or to <CODE>$HOME/.mplayer/Skin</CODE> . <B>MPlayer</B> by default looks in 508 or to <CODE>$HOME/.mplayer/Skin</CODE> . <B>MPlayer</B> by default looks in