comparison DOCS/documentation.html @ 6960:87deea511b1f

continuing paragraph reformatting
author gabucino
date Sat, 10 Aug 2002 20:26:43 +0000
parents d0adb23dec87
children 3263d686e99a
comparison
equal deleted inserted replaced
6959:f7d8c02536e4 6960:87deea511b1f
337 the avifile 337 the avifile
338 library at all!). The another big feature of mplayer is the wide range of 338 library at all!). The another big feature of mplayer is the wide range of
339 supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, 339 supported output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev,
340 AAlib, DirectFB, but you can use GGI and SDL (and this way all their drivers) 340 AAlib, DirectFB, but you can use GGI and SDL (and this way all their drivers)
341 and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon, 341 and some lowlevel card-specific drivers (for Matrox, 3Dfx and Radeon,
342 Mach64, Permedia3), too! Most 342 Mach64, Permedia3) too! Most
343 of them supports software or hardware scaling, so you can enjoy movies in 343 of them supports software or hardware scaling, so you can enjoy movies in
344 fullscreen. <B>MPlayer</B> supports displaying through some hardware MPEG 344 fullscreen. <B>MPlayer</B> supports displaying through some hardware MPEG
345 decoder boards, such as the <B><A HREF="video.html#dvb">DVB</A></B> and 345 decoder boards, such as the <B><A HREF="video.html#dvb">DVB</A></B> and
346 <B> <A HREF="video.html#dxr3">DXR3/Hollywood+</A></B>! And what about the 346 <B><A HREF="video.html#dxr3">DXR3/Hollywood+</A></B>! And what about the nice big antialiased
347 nice big antialiased
348 shaded subtitles (<B>10 supported types!!!</B>) with european/ISO 8859-1,2 347 shaded subtitles (<B>10 supported types!!!</B>) with european/ISO 8859-1,2
349 (Hungarian, English, Czech, etc), Cyrillic, Korean fonts, and the onscreen 348 (Hungarian, English, Czech, etc), Cyrillic, Korean fonts, and the onscreen
350 display (OSD)?</P> 349 display (OSD)?</P>
351 350
352 <P><B>MPlayer</B> is under GPL v2 license.</P> 351 <P><B>MPlayer</B> is under GPL v2 license.</P>
403 codecs and much more. Try it!</LI> 402 codecs and much more. Try it!</LI>
404 <LI><B>MPlayer 0.60 "The RTFMCounter"</B> Jan 3, 2002<BR> 403 <LI><B>MPlayer 0.60 "The RTFMCounter"</B> Jan 3, 2002<BR>
405 MOV/VIVO/RM/FLI/NUV fileformats support, native CRAM, Cinepak, ADPCM codecs, 404 MOV/VIVO/RM/FLI/NUV fileformats support, native CRAM, Cinepak, ADPCM codecs,
406 and support for XAnim's binary codecs; DVD subtitles support, first 405 and support for XAnim's binary codecs; DVD subtitles support, first
407 release of MEncoder, TV grabbing, cache, liba52, countless fixes.</LI> 406 release of MEncoder, TV grabbing, cache, liba52, countless fixes.</LI>
408 <LI><B>MPlayer 0.90 "?"</B> Jul? ??, 2002<BR> 407 <LI><B>MPlayer 0.90 "?"</B> Aug? ??, 2002<BR>
409 </LI> 408 </LI>
410 </UL> 409 </UL>
411 410
412 <P><B><A NAME="installation">1.3 Installation</A></B></P> 411 <P><B><A NAME="installation">1.3 Installation</A></B></P>
413 412
424 423
425 <UL> 424 <UL>
426 <LI><B>binutils</B> - suggested version is <B>2.11.x</B> . This program is 425 <LI><B>binutils</B> - suggested version is <B>2.11.x</B> . This program is
427 responsible for generating MMX/3DNow!/etc instructions, thus very important.</LI> 426 responsible for generating MMX/3DNow!/etc instructions, thus very important.</LI>
428 <LI><B>gcc</B> - suggested versions are: <B>2.95.3</B>, <B>2.95.4</B> and <B>3.1</B>. 427 <LI><B>gcc</B> - suggested versions are: <B>2.95.3</B>, <B>2.95.4</B> and <B>3.1</B>.
429 <B>NEVER</B> use 2.96 or 3.0.x!!! They generate faulty code for MPlayer. 428 <B>NEVER</B> use 2.96 or 3.0.x !!! They generate faulty code for MPlayer.
430 If you decide to change gcc from 2.96, then don't decide in favor of 3.0.x 429 If you decide to change gcc from 2.96, then don't decide in favor of 3.0.x
431 just because it's newer! Early releases of 3.0.x were even more buggy than 430 just because it's newer! Early releases of 3.0.x were even more buggy than
432 2.96. So downgrade to 2.95.x (downgrade libstdc++ too, other programs may 431 2.96. So downgrade to 2.95.x (downgrade libstdc++ too, other programs may
433 need it) or don't up/downgrade at all (but in this case, be prepared for 432 need it) or don't up/downgrade at all (but in this case, be prepared for
434 runtime problems). If you vote for 3.x.x, try to use the latest version, 433 runtime problems). If you vote for 3.x.x, try to use the latest version,
462 461
463 <P><B>CODECS</B></P> 462 <P><B>CODECS</B></P>
464 463
465 <UL> 464 <UL>
466 <LI><B>libavcodec</B>: This codec package is capable of decoding 465 <LI><B>libavcodec</B>: This codec package is capable of decoding
467 H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1 encoded video streams on 466 H263/MJPEG/RV10/DivX3/DivX4/DivX5/MP41/MP42/WMV1 encoded video streams, on
468 multiple platforms. Details can be found 467 multiple platforms. It is also known to be the fastest for this task.
469 <A HREF="codecs.html#libavcodec">here</A>. Features: 468 Details can be found <A HREF="codecs.html#libavcodec">here</A>. Features:<BR>
470 <UL> 469 <UL>
471 <LI>Decoding of above mentioned codecs on non-x86 machines.</LI> 470 <LI>gain decoding of videos mentioned above, on non-x86 machines</B></LI>
472 <LI>Encoding with most of the above mentioned codecs.</LI> 471 <LI>encoding with most of the mentioned codecs</LI>
473 <LI>This is the <B>fastest available</B> codec for DivX/3/4/5 and other 472 <LI>this codec is the <B>fastest codec available</B> for DivX/3/4/5 and
474 MPEG4 types and therefore highly recommended.</LI> 473 other MPEG4 types. Recommended!</LI>
475 </UL> 474 </UL>
476 </LI> 475 </LI>
477 <LI><B>Win32 codecs:</B> If you plan to use <B>MPlayer</B> on x86 476
478 architecture, you will possibly need them. Download and unzip w32codecs.zip to 477 <LI><B>Win32 codecs</B>: If you plan to use <B>MPlayer</B> on x86
479 /usr/lib/win32 <B>BEFORE</B> compiling <B>MPlayer</B>, otherwise no Win32 478 architecture, you will possibly need them. Download and unzip w32codecs.zip
480 support will be compiled!<BR> 479 to /usr/lib/win32 <B>BEFORE</B> compiling <B>MPlayer</B>, otherwise no Win32
481 Note: the avifile project has similar codecs package, but it 480 support will be compiled!<BR>
482 differs from ours, so if you want to use all supported codecs, then use our 481 <B>Note</B>: the avifile project has similar codecs package, but it differs
483 package! However, you can use our codecs package with avifile. Features:<BR> 482 from ours, so if you want to use all supported codecs, then use our package!
484 <UL> 483 However, you can use our codecs package with avifile. Features:<BR>
485 <LI>you need this if you want to play or encode for example movies recorded 484 <UL>
486 with various hardware compressors, like tuner cards, digital cameras (example: DV, ATI VCR, MJPEG)</LI> 485 <LI>you need this if you want to play or encode for example movies recorded
487 <LI>needed if you want to play <B>WMV8 movies</B>. Not needed for old 486 with various hardware compressors, like tuner cards, digital cameras (example: DV, ATI VCR, MJPEG)</LI>
488 ASF's with MP41 or MP42 video (though VoxWare audio is frequent for these 487 <LI>needed if you want to play <B>WMV8 movies</B>. Not needed for old
489 files - it's done by the Win32 codec), or WMV7.</LI> 488 ASF's with MP41 or MP42 video (though VoxWare audio is frequent for these
490 </UL> 489 files - it's done by the Win32 codec), or WMV7.</LI>
491 </LI> 490 </UL>
492 491 </LI>
493 <LI><B>DivX4/DivX5:</B> information about this codec is available in the 492
494 <A HREF="codecs.html#divx">DivX4/DivX5</A> section. If you don't want to encode 493 <LI><B>DivX4/DivX5</B>: information about this codec is available in the
495 with it, you possibly don't want this codec as <B>libavcodec</B> (see above) is 494 <A HREF="codecs.html#divx">DivX4/DivX5</A> section. You possibly don't want
496 much faster than this.<BR> 495 this codec as <B>libavcodec</B> (see above) is much faster and has better
497 Features: 496 quality than this, for both decoding and encoding.<BR>
498 <UL> 497 Features:
499 <LI>1 pass or 2 pass encoding with <A HREF="encoding.html">MEncoder</A></LI> 498 <UL>
500 <LI>can play old <B>DivX3</B> movies much faster than the Win32 DLL but 499 <LI>1 pass or 2 pass encoding with
501 slower than <B>libavcodec</B>!</LI> 500 <A HREF="encoding.html">MEncoder</A></LI>
502 <LI>it's closed-source, and only an x86 version is available.</LI> 501 <LI>can play old <B>DivX3</B> movies much faster than the Win32 DLL but
503 </UL> 502 slower than <B>libavcodec</B>!</LI>
504 </LI> 503 <LI>it's closed-source, and only an x86 version is available.</LI>
505 504 </UL>
506 <LI><B>XviD:</B> Open source encoding alternative to Divx4Linux<BR> 505 </LI>
507 Features: 506
508 <UL> 507 <LI><B>XviD</B>: Open source encoding alternative to Divx4Linux<BR>
509 <LI>1 pass or 2 pass encoding with <A HREF="encoding.html">MEncoder</A></LI> 508 Features:
510 <LI>it's open-source, so not only an x86 version is available.</LI> 509 <UL>
511 <LI>it's about 2 times faster than divx4 when encoding - about the same quality</LI> 510 <LI>1 pass or 2 pass encoding with
512 </UL> 511 <A HREF="encoding.html">MEncoder</A></LI>
513 </LI> 512 <LI>it's open-source, so it's multiplatform.</LI>
514 513 <LI>it's about 2 times faster than DivX4 when encoding - about the same
515 <LI>The <A HREF="codecs.html#xanim">XAnim codecs</A> are the best (full screen, 514 quality</LI>
516 hardware YUV zoom) for decoding <B>3ivx</B> and Indeo 3/4/5 movies, and some 515 </UL>
517 old formats. And they are multiplatform, so this is the only way to play Indeo on 516 </LI>
518 non-x86 platforms (well, apart from using XAnim:). But for example Cinepak 517
519 movies are best played with <B>MPlayer</B>'s own Cinepak decoder!</LI> 518 <LI>The <A HREF="codecs.html#xanim">XAnim codecs</A> are the best (full
519 screen, hardware YUV zoom) for decoding <B>3ivx</B> and Indeo 3/4/5 movies,
520 and some old formats. And they are multiplatform, so this is the only way to
521 play Indeo on non-x86 platforms (well, apart from using XAnim:). But for
522 example Cinepak movies are best played with <B>MPlayer</B>'s own Cinepak
523 decoder!</LI>
520 524
521 <LI>For <B>Ogg Vorbis</B> audio decoding you need to install 525 <LI>For <B>Ogg Vorbis</B> audio decoding you need to install
522 <CODE>libvorbis</CODE> properly. Use deb/rpm packages if available, or 526 <CODE>libvorbis</CODE> properly. Use deb/rpm packages if available, or
523 compile from 527 compile from
524 <A HREF="http://ogg.org/ogg/vorbis/download/vorbis_nightly_cvs.tgz">source</A> 528 <A HREF="http://ogg.org/ogg/vorbis/download/vorbis_nightly_cvs.tgz">source</A>
526 530
527 <LI><B>MPlayer</B> can use the libraries of RealPlayer 8 or RealONE to play 531 <LI><B>MPlayer</B> can use the libraries of RealPlayer 8 or RealONE to play
528 files with <B>RealVideo 2.0 and 3.0</B> video, and Sipro/Cook audio. See 532 files with <B>RealVideo 2.0 and 3.0</B> video, and Sipro/Cook audio. See
529 <A HREF="formats.html#real">RealMedia file format</A> section for 533 <A HREF="formats.html#real">RealMedia file format</A> section for
530 installation instructions and more information!</LI> 534 installation instructions and more information!</LI>
531
532 </UL> 535 </UL>
533 536
534 <P><B>VIDEO CARDS</B></P> 537 <P><B>VIDEO CARDS</B></P>
535 538
536 <P>There are generally two kind of video cards. One kind (the newer cards) has 539 <P>There are generally two kind of video cards. One kind (the newer cards) has
543 They can display and scale (zoom) the picture to any size that fits in 546 They can display and scale (zoom) the picture to any size that fits in
544 their memory, with <B>small CPU usage</B> (zooming doesn't increase it!), thus 547 their memory, with <B>small CPU usage</B> (zooming doesn't increase it!), thus
545 you get a nice and very fast fullscreen playing.</P> 548 you get a nice and very fast fullscreen playing.</P>
546 549
547 <UL> 550 <UL>
548 <LI><B>Matrox G200/G400/G450/G550 cards:</B> although a 551 <LI><B>Matrox G200/G400/G450/G550 cards</B>: although a
549 <A HREF="video.html#vidix">VIDIX driver</A> is provided, it is recommended 552 <A HREF="video.html#vidix">Vidix driver</A> is provided, it is recommended
550 to use the old mga_vid kernel module instead, for it works much better. 553 to use the old mga_vid kernel module instead, for it works much better.
551 Please see the <A HREF="video.html#mga_vid">mga_vid</A> section about its 554 Please see the <A HREF="video.html#mga_vid">mga_vid</A> section about its
552 installation and usage. It is important to do these steps <I>before</I> 555 installation and usage. It is important to do these steps <I>before</I>
553 compiling <B>MPlayer</B>, otherwise no mga_vid support will be built. Also 556 compiling <B>MPlayer</B>, otherwise no mga_vid support will be built. Also
554 check out the <A HREF="video.html#tv-out_matrox">Matrox TV-out</A> section. 557 check out the <A HREF="video.html#tv-out_matrox">Matrox TV-out</A> section.
555 <U><B>If you are non-Linux user</B></U>, your only possibility is the Vidix 558 <U><B>If you are non-Linux user</B></U>, your only possibility is the Vidix
556 driver: read <A HREF="video.html#vidix">VIDIX</A> documentation!</LI> 559 driver: read <A HREF="video.html#vidix">VIDIX</A> documentation!</LI>
557 560
558 <LI><B>3Dfx Voodoo3/Banshee cards:</B> please see the 561 <LI><B>3Dfx Voodoo3/Banshee cards</B>: please see the
559 <A HREF="video.html#tdfxfb">tdfxfb</A> section in order to gain big 562 <A HREF="video.html#tdfxfb">tdfxfb</A> section in order to gain big
560 speedup. It is important to do these steps <I>before</I> compiling 563 speedup. It is important to do these steps <I>before</I> compiling
561 <B>MPlayer</B>, otherwise no 3Dfx support will be built. Also see the <A 564 <B>MPlayer</B>, otherwise no 3Dfx support will be built. Also see the <A
562 HREF="video.html#tv-out_voodoo">3dfx TV-out section</A>. If you use X, use at 565 HREF="video.html#tv-out_voodoo">3dfx TV-out section</A>. If you use X, use at
563 least 4.2.0, as 3dfx Xv driver was broken in 4.1.0, and earlier 566 least 4.2.0, as 3dfx Xv driver was broken in 4.1.0, and earlier
564 releases!</LI> 567 releases!</LI>
565 568
566 <LI><B>ATI cards:</B> <A HREF="video.html#vidix">VIDIX driver</A> is 569 <LI><B>ATI cards</B>: <A HREF="video.html#vidix">Vidix driver</A> is
567 provided for the following cards: 570 provided for the following cards:
568 <B>Radeon</B>, <B>Rage128</B>, <B>Mach64</B> (Rage XL/Mobility, Xpert98). 571 <B>Radeon</B>, <B>Rage128</B>, <B>Mach64</B> (Rage XL/Mobility, Xpert98).
569 Also see the <A HREF="video.html#tv-out_ati">ATI cards 572 Also see the <A HREF="video.html#tv-out_ati">ATI cards
570 section</A> of the TV-out documentation, to know if you card's TV-out is 573 section</A> of the TV-out documentation, to know if you card's TV-out is
571 supported under Linux/MPlayer.</LI> 574 supported under Linux/MPlayer.</LI>
572 575
573 <LI><B>S3 cards:</B> the Savage and Virge/DX chips have hardware acceleration. Use as 576 <LI><B>S3 cards</B>: the Savage and Virge/DX chips have hardware acceleration.
574 new XFree86 version as possible, older drivers are buggy. Savage chips 577 Use as new XFree86 version as possible, older drivers are buggy. Savage chips
575 have problems with YV12 display, see <A HREF="video.html#xv_s3">S3 Xv 578 have problems with YV12 display, see <A HREF="video.html#xv_s3">S3 Xv
576 section</A> for details. Older, Trio cards have no, or slow hardware 579 section</A> for details. Older, Trio cards have no, or slow hardware
577 support.</LI> 580 support.</LI>
578 581
579 <LI><B>nVidia cards:</B> very bad choice for video playing (nVidia has 582 <LI><B>nVidia cards</B>: very bad choice for video playing (nVidia has
580 <A HREF="users_against_developers.html#nvidia">different opinion</A>!). 583 <A HREF="users_against_developers.html#nvidia">different opinion</A>!).
581 nVidia's cards have very cheap and bad 584 nVidia's cards have very cheap and bad quality chips. Moreover, <U>the
582 quality chips. Moreover, <U>the built-in nVidia driver in XFree86 doesn't 585 built-in nVidia driver in XFree86 doesn't contain support for hardware YUV
583 contain support for hardware YUV acceleration for all nVidia cards!</U> 586 acceleration for all nVidia cards!</U> You have to download nVidia's
584 You have to download nVidia's closed-source drivers from nVidia.com. See 587 closed-source drivers from nVidia.com. See details in <A
585 details in <A HREF="video.html#xv_nvidia">nVidia Xv driver</A> section.</LI> 588 HREF="video.html#xv_nvidia">nVidia Xv driver</A> section.</LI>
586 589
587 <LI><B>3DLabs GLINT R3 and Permedia3</B>: a VIDIX driver is provided 590 <LI><B>3DLabs GLINT R3 and Permedia3</B>: a VIDIX driver is provided
588 (pm3_vid). Please see the <A HREF="video.html#vidix">VIDIX 591 (pm3_vid). Please see the <A HREF="video.html#vidix">VIDIX
589 instructions</A>.</LI> 592 instructions</A>.</LI>
590 593
591 <LI><B>other cards:</B> none of the above? 594 <LI><B>other cards</B>: none of the above?
592 <UL> 595 <UL>
593 <LI>Try if the XFree86 driver (and your card) supports hardware 596 <LI>Try if the XFree86 driver (and your card) supports hardware
594 acceleration. See the <A HREF="video.html#xv">Xv section</A> for 597 acceleration. See the <A HREF="video.html#xv">Xv section</A> for
595 details.</LI> 598 details.</LI>
596 <LI>If it doesn't, then your card's video features aren't supported under your OS:(<BR> 599 <LI>If it doesn't, then your card's video features aren't supported under
597 If it does hardware scaling under Windows, it doesn't mean it will do the same 600 your OS :(<BR>
598 under Linux or other OS, it depends on the drivers! Most manufacturers don't 601 If it does hardware scaling under Windows, it doesn't mean it will do the
599 make Linux drivers nor release chip specs - so you're unlucky if using their cards. 602 same under Linux or other OS, it depends on the drivers! Most
600 See next section: 603 manufacturers don't make Linux drivers nor release chip specs - so you're
604 unlucky using their cards. See the next section:
601 </LI> 605 </LI>
602 </UL> 606 </UL>
603 </LI> 607 </LI>
604 608
605 </UL> 609 </UL>
606 610
607 <P> 611 <P>
608 <B>Non-YUV cards</B></P> 612 <B>Non-YUV cards</B></P>
609 613
610 <P> 614 <P>Fullscreen playing can be achieved by either zooming <B>by software</B> (use
611 Fullscreen playing can be achieved by either zooming 615 the option <CODE>-zoom</CODE> or <A HREF="#2.6.11"><CODE>-vop
612 <B>by software</B> (use the option -zoom, but i warn you: this is slooow!), 616 scale</CODE></A>, but I warn you: this is SLOW!), or changing to a smaller
613 or changing to a smaller video mode, for 617 video mode, for example to 352x288. If you don't have YUV acceleration, this
614 example to 352x288. If you don't have YUV acceleration, this latter method is 618 latter method is the recommended one. Throughout <B>MPlayer</B>, <U>this
615 the recommended one. Throughout <B>MPlayer</B>, <U>this behavior can 619 behavior can be switched on by using the <CODE>-vm</CODE> option</U> and with
616 be switched on by using the <CODE>-vm</CODE> option</U> and with 620 the following drivers:
617 the following drivers:
618 </P> 621 </P>
619 622
620 <UL> 623 <UL>
621 <LI><B>using</B> XFree86: see details in 624 <LI><B>using</B> XFree86: see details in
622 <A HREF="video.html#dga">DGA driver</A> and 625 <A HREF="video.html#dga">DGA driver</A> and
627 <A HREF="video.html#fbdev">fbdev</A>, 630 <A HREF="video.html#fbdev">fbdev</A>,
628 <A HREF="video.html#svgalib">svgalib</A>, 631 <A HREF="video.html#svgalib">svgalib</A>,
629 <A HREF="video.html#aalib">aalib</A>.</LI> 632 <A HREF="video.html#aalib">aalib</A>.</LI>
630 </UL> 633 </UL>
631 634
635 <P>Some cards:</P>
636
637 <UL>
638 <LI><B>Cirrus Logic cards</B>:
639 <UL>
640 <LI>GD 7548: present on-board and tested in Compaq Armada 41xx notebook
641 series.
642 <UL>
643 <LI>XFree86 3: works in 8/16bpp modes. However, the driver is
644 dramatically slow and buggy in 800x600@16bpp
645 <B>Recommended: 640x480@16bpp</B></LI>
646 <LI>XFree86 4: the Xserver freezes soon after start unless
647 acceleration is disabled, but then the whole thing gets
648 slower than XFree86 3. No XVideo.</LI>
649 <LI>FBdev: the card is only VBE 1.2 capable, so VESA framebuffer
650 can't be used. When tried to workaround with UniVBE, the
651 framebuffer was unusably full of debris.</LI>
652 <LI>VESA: the card is only VBE 1.2 capable, so VESA output can't be
653 used. Can't be workarounded with UniVBE.</LI>
654 <LI>SVGAlib: detects an older Cirrus chip. Usable but slow with
655 <CODE>-bpp 8</CODE>.</LI>
656 </UL>
657 </LI>
658 </UL>
659 </LI>
660 </UL>
661
662
632 <P><B>SOUND CARDS</B></P> 663 <P><B>SOUND CARDS</B></P>
633 664
634 <UL> 665 <UL>
635 <LI><B>Soundblaster Live!:</B> with this card you can use 4 or 6 (<B>5.1</B>) 666 <LI><B>Soundblaster Live!</B>: with this card you can use 4 or 6 (<B>5.1</B>)
636 channels AC3 decoding instead of 2. Read the 667 channels AC3 decoding instead of 2. Read the
637 <A HREF="codecs.html#software_ac3">Software AC3 decoding</A> section. 668 <A HREF="codecs.html#software_ac3">Software AC3 decoding</A> section.
638 For hardware AC3 passthrough you MUST use ALSA 0.9 oss emulation!</LI> 669 For hardware AC3 passthrough you MUST use ALSA 0.9 oss emulation!</LI>
639 670
640 <LI><B>C-Media with SP/DIF out:</B> hardware AC3 passthrough is possible 671 <LI><B>C-Media with SP/DIF out</B>: hardware AC3 passthrough is possible
641 with these cards, see 672 with these cards, see
642 <A HREF="codecs.html#hardware_ac3">Hardware AC3 decoding</A> section.</LI> 673 <A HREF="codecs.html#hardware_ac3">Hardware AC3 decoding</A> section.</LI>
643 674
644 <LI><B>other cards'</B> features aren't supported by <B>MPlayer</B>. 675 <LI><B>other cards'</B> features aren't supported by <B>MPlayer</B>.
645 <U>It's very recommended to read the <A HREF="sound.html">sound card 676 <U>It's very recommended to read the <A HREF="sound.html">sound card
646 section</A>!</U> 677 section</A>!</U></LI>
647 </UL> 678 </UL>
648 679
649 <P><B>FEATURES</B></P> 680 <P><B>FEATURES</B></P>
650 681
651 <UL> 682 <UL>
652 <LI>Decide if you need GUI. If you do, see the <A HREF="#gui">GUI section</A> 683 <LI>Decide if you need GUI. If you do, see the <A HREF="#gui">GUI section</A>
653 before compiling.</LI> 684 before compiling.</LI>
654 685
655 <LI>If you want to install <B>MEncoder</B> (our great all-purpose encoder), 686 <LI>If you want to install <B>MEncoder</B> (our great all-purpose encoder),
656 see the <A HREF="encoding.html">MEncoder section</A>.</LI> 687 see the <A HREF="encoding.html">MEncoder section</A>.</LI>
657 688
658 689
659 <LI>If you have a V4L compatible <B>TV tuner</B> card, and wish to watch/grab and 690 <LI>If you have a V4L compatible <B>TV tuner</B> card, and wish to watch/grab
660 encode movies with <B>MPlayer</B>, read the <A HREF="#tv">TV input</A> section.</LI> 691 and encode movies with <B>MPlayer</B>, read the <A HREF="#tv">TV input</A>
692 section.</LI>
661 693
662 <LI>There are three timing methods in <B>MPlayer</B>. 694 <LI>There are three timing methods in <B>MPlayer</B>.
663 <UL> 695 <UL>
664 <LI><B>To use the old method</B>, you don't have to do anything. It uses 696 <LI><B>To use the old method</B>, you don't have to do anything. It uses
665 <CODE>usleep()</CODE> to tune A/V sync, with +/- 10ms accuracy. However 697 <CODE>usleep()</CODE> to tune A/V sync, with +/- 10ms accuracy. However
671 <BR> 703 <BR>
672 If you are running kernel 2.4.19pre8 or later you can adjust the maximum 704 If you are running kernel 2.4.19pre8 or later you can adjust the maximum
673 RTC frequency for normal users through the <CODE>/proc</CODE> filesystem. 705 RTC frequency for normal users through the <CODE>/proc</CODE> filesystem.
674 Use this command to enable RTC for normal users: 706 Use this command to enable RTC for normal users:
675 <P> 707 <P>
676 <CODE>echo 1024 > /proc/sys/dev/rtc/max-user-freq</CODE> 708 <CODE>echo 1024 > /proc/sys/dev/rtc/max-user-freq</CODE>
677 </P> 709 </P>
678 If you do not have such a new kernel, you can also change one line in 710 If you do not have such a new kernel, you can also change one line in
679 <CODE>drivers/char/rtc.c</CODE> and recompile your kernel. Find the 711 <CODE>drivers/char/rtc.c</CODE> and recompile your kernel. Find the
680 section that reads 712 section that reads
681 <PRE> 713 <PRE>
701 hand, it requires more CPU.</LI> 733 hand, it requires more CPU.</LI>
702 </UL> 734 </UL>
703 </LI> 735 </LI>
704 </UL> 736 </UL>
705 737
706 Note: <B>NEVER install a setuid root MPlayer binary on a 738 Note: <B>NEVER install a setuid root MPlayer binary on a multiuser system!</B>
707 multiuser system!</B> It's a clear way for everyone to gain root. 739 It's a clear way for everyone to gain root.
708
709 740
710 <P>Then build <B>MPlayer</B>:</P> 741 <P>Then build <B>MPlayer</B>:</P>
711 742
712 <PRE> 743 <PRE>
713 ./configure 744 ./configure
714 make 745 make
715 make install 746 make install
716 </PRE> 747 </PRE>
717 748
718 <P>At this point, <B>MPlayer</B> is ready to use. The directory 749 <P>At this point, <B>MPlayer</B> is ready to use. The directory
719 <CODE>$PREFIX/share/mplayer</CODE> contains the <CODE>codecs.conf</CODE> 750 <CODE>$PREFIX/share/mplayer</CODE> contains the <CODE>codecs.conf</CODE>
720 file, which is used to tell the program all the codecs and their capabilities. 751 file, which is used to tell the program all the codecs and their
721 This file should always be kept uptodate together with the main binary!<BR> 752 capabilities. This file should always be kept uptodate together with the
722 Check if you have codecs.conf in your home directory (~/.mplayer/codecs.conf) 753 main binary!<BR> Check if you have codecs.conf in your home directory
723 left from old MPlayer versions, and remove it!</P> 754 (~/.mplayer/codecs.conf) left from old MPlayer versions, and remove it!</P>
724 755
725 <P><B>Debian users</B> can build a .deb package for themselves, it's very 756 <P><B>Debian users</B> can build a .deb package for themselves, it's very
726 simple. Just exec <CODE>fakeroot debian/rules binary</CODE> in <B>MPlayer</B>'s 757 simple. Just exec <CODE>fakeroot debian/rules binary</CODE> in
727 root dir. Detailed instructions can be found <A HREF="documentation.html#debian">here</A>.</P> 758 <B>MPlayer</B>'s root dir. Detailed instructions can be found
759 <A HREF="documentation.html#debian">here</A>.</P>
728 760
729 <P><B>ALWAYS browse the output of <CODE>./configure</CODE></B>, and the 761 <P><B>ALWAYS browse the output of <CODE>./configure</CODE></B>, and the
730 <CODE>configure.log</CODE> file, they contain information about what will be 762 <CODE>configure.log</CODE> file, they contain information about what will be
731 built, and what will not. You may also want to view <CODE>config.h</CODE> and 763 built, and what will not. You may also want to view <CODE>config.h</CODE> and
732 <CODE>config.mak</CODE> files.<BR> 764 <CODE>config.mak</CODE> files.<BR>
733 If you have some libraries installed, but not detected by <CODE>./configure</CODE>, 765 If you have some libraries installed, but not detected by
734 then check if you also have the proper header files (usually the -dev packages) 766 <CODE>./configure</CODE>, then check if you also have the proper header files
735 and their version matches. The <CODE>configure.log</CODE> file usually tells 767 (usually the -dev packages) and their version matches. The
736 you what is missing.</P> 768 <CODE>configure.log</CODE> file usually tells you what is missing.</P>
737 769
738 <P>Though not mandatory, the fonts should be installed in order to gain 770 <P>Though not mandatory, the fonts should be installed in order to gain OSD,
739 OSD, and subtitle functionality. Download <CODE>mp-arial-iso-8859-*.zip</CODE> 771 and subtitle functionality. Download <CODE>mp-arial-iso-8859-*.zip</CODE>
740 and/or optional (if exists) language updates. It's VERY RECOMMENDED to check the 772 and/or optional (if exists) language updates. It's VERY RECOMMENDED to check
741 <A HREF="#subtitles_osd">subtitle and OSD section</A> for details.</P> 773 section <A HREF="#subtitles_osd">1.5</A> for details.</P>
742 774
743 <PRE> 775 <PRE>
744 mkdir ~/.mplayer/font 776 mkdir ~/.mplayer/font
745 cd ~/.mplayer/font 777 cd ~/.mplayer/font
746 unzip mp-arial-iso-8859-1.zip 778 unzip mp-arial-iso-8859-1.zip
749 781
750 782
751 <P><B><A NAME="gui">1.4 What about the GUI?</A></B></P> 783 <P><B><A NAME="gui">1.4 What about the GUI?</A></B></P>
752 784
753 <P>The GUI needs GTK (it isn't GTK, but the panels are). The skins are stored 785 <P>The GUI needs GTK (it isn't GTK, but the panels are). The skins are stored
754 in PNG format, so gtk, libpng (and their devel stuff) has to be installed. 786 in PNG format, so gtk, libpng (and their devel stuff) has to be installed.
755 You can build it by specifying <CODE>--enable-gui</CODE> during 787 You can build it by specifying <CODE>--enable-gui</CODE> during
756 <CODE>./configure</CODE>. Then, to turn on GUI mode, you either</P> 788 <CODE>./configure</CODE>. Then, to turn on GUI mode, you either</P>
757 <UL> 789 <UL>
758 <LI>use the <CODE>-gui</CODE> option</LI> 790 <LI>use the <CODE>-gui</CODE> option</LI>
759 <LI>specify <CODE>gui=yes</CODE> in your config file</LI> 791 <LI>specify <CODE>gui=yes</CODE> in your config file</LI>
760 <LI><CODE>ln -s $PREFIX/bin/mplayer $PREFIX/bin/gmplayer</CODE> , 792 <LI><CODE>ln -s $PREFIX/bin/mplayer $PREFIX/bin/gmplayer</CODE> ,
761 and call <CODE>gmplayer</CODE> instead. 793 and call <CODE>gmplayer</CODE> instead.</LI>
762 </UL> 794 </UL>
763 795
764 <P>HINT: use the middle button (on 2 button mice press left and right 796 <P>HINT: use the middle button (on 2 button mice press left and right
765 simultaneously) for a popup GTK menu, with DVD playing option!</P> 797 simultaneously) for a popup GTK menu, with DVD playing option!</P>
766 798
767 <P>As <B>MPlayer</B> doesn't have a skin included, you have to download them 799 <P>As <B>MPlayer</B> doesn't have a skin included, you have to download them if
768 if you want to use the GUI. See the <A HREF="http://www.mplayerhq.hu/homepage/dload.html">download page</A>. 800 you want to use the GUI. See the
769 They should be extracted to the usual system-wide directory (<CODE>$PREFIX/share/mplayer/Skin</CODE>), 801 <A HREF="http://www.mplayerhq.hu/homepage/dload.html">download page</A>.
770 or to <CODE>$HOME/.mplayer/Skin</CODE> . <B>MPlayer</B> by default looks in 802 They should be extracted to the usual system-wide directory
771 these directories for a <I>default</I> named directory, but you can use the 803 (<CODE>$PREFIX/share/mplayer/Skin</CODE>), or to
772 <CODE>-skin newskin</CODE> option, or the <CODE>skin=newskin</CODE> config file 804 <CODE>$HOME/.mplayer/Skin</CODE>. <B>MPlayer</B> by default looks in these
773 directive to use the skin in <CODE>*/Skin/newskin</CODE> directory.</P> 805 directories for a directory named <I>default</I>, but you can use the
806 <CODE>-skin newskin</CODE> option, or the <CODE>skin=newskin</CODE> config
807 file directive to use the skin in <CODE>*/Skin/newskin</CODE> directory.</P>
774 808
775 <P><B><A NAME="subtitles_osd">1.5 Subtitles and OSD</A></B></P> 809 <P><B><A NAME="subtitles_osd">1.5 Subtitles and OSD</A></B></P>
776 810
777 <P> 811 <P>
778 <B>MPlayer</B> can display subtitles along with movie files. Currently the following 812 <B>MPlayer</B> can display subtitles along with movie files. Currently the following
779 formats are supported:</P> 813 formats are supported:</P>
780 <UL> 814 <UL>
781 <LI>VobSub</LI> 815 <LI>VobSub</LI>
782 <LI>Microdvd</LI> 816 <LI>Microdvd</LI>
783 <LI>SubRip</LI> 817 <LI>SubRip</LI>
784 <LI>SubViewer</LI> 818 <LI>SubViewer</LI>
785 <LI>Sami</LI> 819 <LI>Sami</LI>
786 <LI>VPlayer</LI> 820 <LI>VPlayer</LI>
787 <LI>RT</LI> 821 <LI>RT</LI>
788 <LI>SSA</LI> 822 <LI>SSA</LI>
789 <LI>MPsub</LI> 823 <LI>MPsub</LI>
790 <LI>AQTitle</LI> 824 <LI>AQTitle</LI>
791 </UL> 825 </UL>
826
792 The command line options differ slightly for the different formats: 827 The command line options differ slightly for the different formats:
793 828
794 <P> 829 <P>
795 <B>VobSub subtitles</B><BR> 830 <B>VobSub subtitles</B><BR>
796 VobSub subtitles consist of a big (some megabytes) .SUB file, and optional 831 VobSub subtitles consist of a big (some megabytes) .SUB file, and optional
797 .IDX and/or .IFO files.<BR> 832 .IDX and/or .IFO files.<BR>
798 Usage: if you have files like <CODE>sample.sub</CODE>, <CODE>sample.ifo</CODE>, 833 Usage: if you have files like <CODE>sample.sub</CODE>,
799 <CODE>sample.idx</CODE> - you have to pass the <CODE>-vobsub sample -vobsubid 834 <CODE>sample.ifo</CODE>, <CODE>sample.idx</CODE> - you have to pass the
800 &lt;id&gt;</CODE> options (optionally with pathname, of course). The 835 <CODE>-vobsub sample -vobsubid
801 <CODE>-vobsubid</CODE> option is like <CODE>-sid</CODE> for DVDs, you can 836 &lt;id&gt;</CODE> options (optionally with pathname, of course). The
802 choose between subtitle tracks (languages) with it.</P> 837 <CODE>-vobsubid</CODE> option is like <CODE>-sid</CODE> for DVDs, you can
838 choose between subtitle tracks (languages) with it.</P>
803 839
804 <P> 840 <P>
805 <B>Other subtitles</B><BR> 841 <B>Other subtitles</B><BR>
806 The other formats consist of a single text file containing timing, placement 842 The other formats consist of a single text file containing timing, placement
807 and text information.<BR> 843 and text information.<BR>
808 Usage: if you have a file like <CODE>sample.txt</CODE>, you have to pass 844 Usage: if you have a file like <CODE>sample.txt</CODE>, you have to pass the
809 the option <CODE>-sub sample.txt</CODE> (optionally with pathname, of course). 845 option <CODE>-sub sample.txt</CODE> (optionally with pathname, of course).
810 </P> 846 </P>
811 847
812 <P> 848 <P>
813 <B>Adjusting subtitle timing and placement</B><BR> 849 <B>Adjusting subtitle timing and placement</B><BR>
814 850 <CODE>-subdelay &lt;sec&gt;</CODE>: Delays subtitles by &lt;sec&gt; seconds.
815 <CODE>-subdelay &lt;sec&gt;</CODE>: Delays subtitles by &lt;sec&gt; seconds. Can be negative.<BR> 851 Can be negative.<BR>
816 <CODE>-subfps &lt;rate&gt;</CODE>: Specify frame/sec rate of subtitle file (float number)<BR> 852 <CODE>-subfps &lt;rate&gt;</CODE>: Specify frame/sec rate of subtitle file
817 <CODE>-subpos &lt;0 - 100&gt;</CODE>: Specify the position of subtitles.<BR> 853 (float number)<BR>
854 <CODE>-subpos &lt;0 - 100&gt;</CODE>: Specify the position of subtitles.<BR>
818 </P> 855 </P>
819 <P> 856
820 If you experience a growing delay between the movie and the subtitles when using a MicroDVD 857 <P>If you experience a growing delay between the movie and the subtitles when
821 subtitle file, most likely the frame rate of the movie and the subtitle file are different.<BR> 858 using a MicroDVD subtitle file, most likely the frame rate of the movie and
822 Please note that the MicroDVD subtitle format uses absolute frame numbers for its 859 the subtitle file are different.<BR> Please note that the MicroDVD subtitle
823 timing, and therefore the <CODE>-subfps</CODE> option cannot be used with this format. As 860 format uses absolute frame numbers for its timing, and therefore the
824 <B>MPlayer</B> has no way to guess the frame rate of the subtitle file, you have to manually 861 <CODE>-subfps</CODE> option cannot be used with this format. As
825 convert the frame rate. There is a little perl script in the <CODE>contrib</CODE> directory of 862 <B>MPlayer</B> has no way to guess the frame rate of the subtitle file, you
826 the MPlayer FTP site to do this conversion for you.</P> 863 have to manually convert the frame rate. There is a little perl script in the
864 <CODE>contrib</CODE> directory of the MPlayer FTP site to do this conversion
865 for you.</P>
827 866
828 <P>About DVD subtitles, read the <A HREF="cd-dvd.html#dvd">DVD section</A>.</P> 867 <P>About DVD subtitles, read the <A HREF="cd-dvd.html#dvd">DVD section</A>.</P>
829 868
830 <P><B>MPlayer</B> introduces a new subtitle format called <B>MPsub</B>. 869 <P><B>MPlayer</B> introduces a new subtitle format called <B>MPsub</B>. It was
831 It was designed by me (Gabucino). Basically its main feature is being 870 designed by me (Gabucino). Basically its main feature is being
832 <I>dynamically</I> time-based (although it has frame-based mode too). Example (from 871 <I>dynamically</I> time-based (although it has frame-based mode too). Example
833 <A HREF="http://www.mplayerhq.hu/DOCS/tech/mpsub.sub">DOCS/tech/mpsub.sub</A>): 872 (from
873 <A HREF="tech/mpsub.sub">DOCS/tech/mpsub.sub</A>):
834 </P> 874 </P>
835 875
836 <P><CODE><I> 876 <P><CODE><I>
837 # first number : wait this much after previous subtitle disappeared<BR> 877 # first number : wait this much after previous subtitle disappeared<BR>
838 # second number : display the current subtitle for this many seconds<BR> 878 # second number : display the current subtitle for this many seconds<BR>
845 <BR> 885 <BR>
846 0 3<BR> 886 0 3<BR>
847 Naboo was under an attack.<BR> 887 Naboo was under an attack.<BR>
848 </I></CODE></P> 888 </I></CODE></P>
849 889
850 <P>So you see, the main goal was to <B>make subtitle editing/timing/joining/cutting easy</B>. And, 890 <P>So you see, the main goal was to <B>make subtitle
851 if you - say - get an SSA subtitle but it's badly timed/delayed to your 891 editing/timing/joining/cutting easy</B>. And, if you - say - get an SSA
852 version of the movie, you simply do a <CODE>mplayer dummy.avi -sub source.ssa 892 subtitle but it's badly timed/delayed to your version of the movie, you
853 -dumpmpsub</CODE> . A <CODE>dump.mpsub</CODE> file will be created in the 893 simply do a <CODE>mplayer dummy.avi -sub source.ssa -dumpmpsub</CODE>.
854 current directory, which will contain the source subtitle's text, but in 894 A <CODE>dump.mpsub</CODE> file will be created in the current directory,
855 <B>MPsub</B> format. Then you can freely add/subtract seconds to/from the 895 which will contain the source subtitle's text, but in <B>MPsub</B> format.
856 subtitle.</P> 896 Then you can freely add/subtract seconds to/from the subtitle.</P>
857 897
858 <P>Subtitles are displayed with a technique called <B>'OSD', On Screen Display</B>. 898 <P>Subtitles are displayed with a technique called <B>'OSD', On Screen
859 OSD is used to display current time, volume bar, seek bar etc.</P> 899 Display</B>. OSD is used to display current time, volume bar, seek bar
900 etc.</P>
860 901
861 <P><B>INSTALLING OSD and SUB</B></P> 902 <P><B>INSTALLING OSD and SUB</B></P>
862 903
863 <P>You need an <B>MPlayer</B> font package to be able to use OSD/SUB feature. 904 <P>You need an <B>MPlayer</B> font package to be able to use OSD/SUB feature.
864 There are many ways to get it:</P> 905 There are many ways to get it:</P>
865 <UL> 906
866 907 <UL>
867 <LI>download ready-to-use font packages from <B>MPlayer</B> site. 908 <LI>download ready-to-use font packages from <B>MPlayer</B> site.
868 Note: currently available fonts are limited for iso 8859-1/2 support, 909 Note: currently available fonts are limited for iso 8859-1/2 support,
869 but there are some other (including Korean, Russian, 8859-8 etc) fonts 910 but there are some other (including Korean, Russian, 8859-8 etc) fonts
870 at contrib/font section of FTP, made by users. 911 at contrib/font section of FTP, made by users.<BR>
871 912 <BR>
872 Font should have appropriate font.desc file which maps unicode font 913 Font should have appropriate font.desc file which maps unicode font
873 positions to the actual code page of the subtitles text. Other solution 914 positions to the actual code page of the subtitles text. Other solution is
874 is to have subtitles encoded in utf8 encoding and use -utf8 option 915 to have subtitles encoded in utf8 encoding and use <CODE>-utf8</CODE>
875 or just name the subtitles file &lt;video_name&gt;.utf and have it in the same 916 option or just name the subtitles file &lt;video_name&gt;.utf and have it
876 dir as the video file. Recoding from different codepages to utf8 could be 917 in the same dir as the video file. Recoding from different codepages to
877 done by using konwert (Debian) or iconv (Red Hat) programs.<BR> 918 utf8 could be done by using konwert (Debian) or iconv (Red Hat)
878 Some URLs: 919 programs.<BR>
879 <UL> 920 Some URLs:
880 <LI><A HREF="ftp://ftp.mplayerhq.hu/MPlayer/releases/">ftp://ftp.mplayerhq.hu/MPlayer/releases/</A> - ISO fonts 921 <UL>
881 <LI><A HREF="ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/">ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/</A> - various fonts by users 922 <LI><A HREF="ftp://ftp.mplayerhq.hu/MPlayer/releases/">ftp://ftp.mplayerhq.hu/MPlayer/releases/</A> - ISO fonts
882 <LI><A HREF="http://realtime.ssu.ac.kr/~lethean/mplayer">http://realtime.ssu.ac.kr/~lethean/mplayer</A> - Korean fonts & RAW plugin 923 <LI><A HREF="ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/">ftp://ftp.mplayerhq.hu/MPlayer/contrib/fonts/</A> - various fonts by users
883 </UL> 924 <LI><A HREF="http://realtime.ssu.ac.kr/~lethean/mplayer">http://realtime.ssu.ac.kr/~lethean/mplayer</A> - Korean fonts & RAW plugin
884 </LI> 925 </UL>
885 926 </LI>
886 <LI>use the font generator tool at TOOLS/subfont-c 927
887 It's a complete tool to convert from TTF/Type1/etc font to mplayer font pkg. 928 <LI>use the font generator tool at TOOLS/subfont-c
888 (read TOOLS/subfont-c/README for details)</LI> 929 It's a complete tool to convert from TTF/Type1/etc font to mplayer font pkg.
889 930 (read TOOLS/subfont-c/README for details)</LI>
890 <LI>use the font generator GIMP plugin at TOOLS/subfont-GIMP 931
891 (note: you must have HSI RAW plugin too, see URL below)</LI> 932 <LI>use the font generator GIMP plugin at TOOLS/subfont-GIMP
933 (note: you must have HSI RAW plugin too, see URL below)</LI>
892 </UL> 934 </UL>
893 935
894 <P>After that, UNZIP the file you downloaded to <CODE>~/.mplayer</CODE> or 936 <P>After that, UNZIP the file you downloaded to <CODE>~/.mplayer</CODE> or
895 <CODE>$PREFIX/share/mplayer</CODE>. Then rename or symlink one of them to 937 <CODE>$PREFIX/share/mplayer</CODE>. Then rename or symlink one of them to
896 <CODE>font</CODE> (like: <CODE>ln -s ~/.mplayer/arial-24 938 <CODE>font</CODE> (like: <CODE>ln -s ~/.mplayer/arial-24
897 ~/.mplayer/font</CODE>). Now you have to see a timer at the upper left corner 939 ~/.mplayer/font</CODE>). Now you have to see a timer at the upper left corner
898 of the movie (switch it off with the "o" key).</P> 940 of the movie (switch it off with the "o" key).</P>
899 941
900 <P>OSD has 3 states: (switch with 'o')</P> 942 <P>OSD has 3 states: (switch with 'o')</P>
901 <UL> 943
902 <LI>timer + volume bar + seek bar + subtitles (default) 944 <UL>
903 <LI>volume bar + seek bar + subtitles 945 <LI>timer + volume bar + seek bar + subtitles (default)</LI>
904 <LI>subtitles only 946 <LI>volume bar + seek bar + subtitles</LI>
905 </UL> 947 <LI>subtitles only</LI>
906 948 </UL>
907 <P>You can change default behaviour by setting <CODE>osdlevel=</CODE> variable in config file.</P> 949
950 <P>You can change default behaviour by setting <CODE>osdlevel=</CODE> variable
951 in config file.</P>
908 952
909 953
910 <P><B><A NAME="features">2. Features</A></B></P> 954 <P><B><A NAME="features">2. Features</A></B></P>
911 955
912 956
1051 Input from standard V4L<BR> 1095 Input from standard V4L<BR>
1052 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE><BR> 1096 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE><BR>
1053 </P> 1097 </P>
1054 1098
1055 <P> 1099 <P>
1056 <B>Note:</B><BR> 1100 <B>Note:</B><BR>
1057 If you have a TV card with an external audio device and get only a black 1101 If you have a TV card with an external audio device and get only a black
1058 screen, although input works with xawtv or similar, then try to use the 1102 screen, although input works with xawtv or similar, then try to use the
1059 <CODE>-noaudio</CODE> option. For the example above this would be:<BR> 1103 <CODE>-noaudio</CODE> option. For the example above this would be:<BR>
1060 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE> 1104 <CODE>&nbsp;&nbsp;&nbsp;&nbsp;mplayer -tv on:noaudio:driver=v4l:width=640:height=480:outfmt=i420 -vc rawi420 -vo xv</CODE>
1061 </P> 1105 </P>
1062 1106
1063 1107
1064 <P><A NAME="filters"><B>2.6 filters</B></A></P> 1108 <P><A NAME="filters"><B>2.6 filters</B></A></P>
1065 1109
1277 1321
1278 <P><A NAME="filters_rectangle"><B>2.6.16 Rectangle</B></A></P> 1322 <P><A NAME="filters_rectangle"><B>2.6.16 Rectangle</B></A></P>
1279 1323
1280 <P><B><U>Description</U></B>:</P> 1324 <P><B><U>Description</U></B>:</P>
1281 1325
1282 <P>Draws a rectangle of the requested width and height at the designated 1326 <P>Draws a white rectangle of the requested width and height at the designated
1283 coordinates over the image. Useful to get visual feedback for the parameters 1327 coordinates over the image. Useful to get visual feedback for the parameters
1284 of <CODE>-vop crop</CODE> before applying them.</P> 1328 of <CODE>-vop crop</CODE> before applying them.</P>
1285 1329
1286 <P><B><U>Usage</U></B>:</P> 1330 <P><B><U>Usage</U></B>:</P>
1287 1331
1588 config = seek 0 1\npause 1632 config = seek 0 1\npause
1589 end 1633 end
1590 </PRE> 1634 </PRE>
1591 1635
1592 <P>If you don't like the standard location for the lirc-config file (~/.lircrc) 1636 <P>If you don't like the standard location for the lirc-config file (~/.lircrc)
1593 use the -lircconf &lt;filename&gt; switch to specify another file.</P> 1637 use the -lircconf &lt;filename&gt; switch to specify another file.</P>
1594 1638
1595 1639
1596 <P><B><A NAME="slave">3.2.4 Slave mode</A></B></P> 1640 <P><B><A NAME="slave">3.2.4 Slave mode</A></B></P>
1597 1641
1598 <P>The slave mode allow you to build simple frontend to <B>MPlayer</B>. When 1642 <P>The slave mode allow you to build simple frontend to <B>MPlayer</B>. When
1602 1646
1603 <P><B><A NAME="streaming">3.3 Streaming from network or pipes</A></B></P> 1647 <P><B><A NAME="streaming">3.3 Streaming from network or pipes</A></B></P>
1604 1648
1605 <P><B>MPlayer</B> can play files from network, using the HTTP or MMS protocol.</P> 1649 <P><B>MPlayer</B> can play files from network, using the HTTP or MMS protocol.</P>
1606 1650
1607 <P>Playing goes by simply using adding the URL to the command line. <B>MPlayer</B> 1651 <P>Playing goes by simply using adding the URL to the command line.
1608 also honors the http_proxy environment variable, and uses proxy if available. 1652 <B>MPlayer</B> also honors the http_proxy environment variable, and uses
1609 Proxy usage can also be forced:</P> 1653 proxy if available. Proxy usage can also be forced:</P>
1610 1654
1611 <P><CODE>mplayer http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</CODE></P> 1655 <P><CODE>mplayer http_proxy://proxy.micorsops.com:3128/http://micorsops.com:80/stream.asf</CODE></P>
1612 1656
1613 <P><B>MPlayer</B> can read from stdin (NOT named pipes). This can be for example 1657 <P><B>MPlayer</B> can read from stdin (NOT named pipes). This can be for example
1614 used to play from FTP:</P> 1658 used to play from FTP:</P>
1659
1615 <P><CODE>&nbsp;&nbsp;wget ftp://micorsops.com/something.avi -O - | mplayer -</CODE></P> 1660 <P><CODE>&nbsp;&nbsp;wget ftp://micorsops.com/something.avi -O - | mplayer -</CODE></P>
1616 1661
1617 <P>Note: It is recommended to enable the cache when playing from the network:</P> 1662 <P>Note: it's also recommended to enable CACHE when playback from network:</P>
1618 1663
1619 <P><CODE>&nbsp;&nbsp;wget ftp://micorsops.com/something.avi -O - | mplayer -cache 8192 -</CODE></P> 1664 <P><CODE>&nbsp;&nbsp;wget ftp://micorsops.com/something.avi -O - | mplayer -cache 8192 -</CODE></P>
1620 1665
1621 1666
1622 <P><B><A NAME="faq"></A>4. <A HREF="faq.html">FAQ section</A></B></P> 1667 <P><B><A NAME="faq"></A>4. <A HREF="faq.html">FAQ section</A></B></P>
1629 1674
1630 1675
1631 <P><B><A NAME="debian">6.1 Debian packaging</A></B></P> 1676 <P><B><A NAME="debian">6.1 Debian packaging</A></B></P>
1632 1677
1633 <P>To build the package, get the cvs version, or .tgz and uncompress it, 1678 <P>To build the package, get the cvs version, or .tgz and uncompress it,
1634 and cd into programs directory:</P> 1679 and cd into programs directory:</P>
1635 1680
1636 <PRE> 1681 <PRE>
1637 cd main 1682 cd main
1638 fakeroot debian/rules binary 1683 fakeroot debian/rules binary
1639 </PRE> 1684 </PRE>
1640 1685
1641 <P>(... mplayer detects hardware/software, builds itself and.. ) 1686 <P>(... mplayer detects hardware/software, builds itself and.. )
1642 dpkg-deb: building package `mplayer' in `../mplayer_0.90-1_i386.deb'.</P> 1687 dpkg-deb: building package `mplayer' in `../mplayer_0.90-1_i386.deb'.</P>
1643 1688
1644 <P>And now just become root, and:</P> 1689 <P>And now just become root, and:</P>
1645 1690
1646 <PRE> 1691 <PRE>
1647 dpkg -i ../mplayer_0.90-1_i386.deb as root. 1692 dpkg -i ../mplayer_0.90-1_i386.deb as root.
1660 1705
1661 1706
1662 <P><B><A NAME="freebsd">6.2 FreeBSD</A></B></P> 1707 <P><B><A NAME="freebsd">6.2 FreeBSD</A></B></P>
1663 1708
1664 <P>To build the package you will need GNU make (gmake, /usr/ports/devel/gmake), 1709 <P>To build the package you will need GNU make (gmake, /usr/ports/devel/gmake),
1665 native BSD make will not work.</P> 1710 native BSD make will not work.</P>
1666 1711
1667 <P>To run <B>MPlayer</B> you will need to re-compile the kernel with 1712 <P>To run <B>MPlayer</B> you will need to re-compile the kernel with
1668 "options USER_LDT" (unless you are running -CURRENT, where this is default). 1713 "options USER_LDT" (unless you are running -CURRENT, where this is default).
1669 If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it 1714 If you have a CPU with SSE also use "options CPU_ENABLE_SSE" to use it
1670 (FreeBSD-STABLE required, or use kernel patches).</P> 1715 (FreeBSD-STABLE required, or use kernel patches).</P>
1671 1716
1672 <P>If <B>MPlayer</B> complains about "CD-ROM Device '/dev/cdrom' not found!" make a 1717 <P>If <B>MPlayer</B> complains about "CD-ROM Device '/dev/cdrom' not found!" make a
1673 symbolic link: <CODE>ln -s /dev/(your_cdrom_device) /dev/cdrom</CODE></P> 1718 symbolic link: <CODE>ln -s /dev/(your_cdrom_device) /dev/cdrom</CODE></P>
1674 1719
1675 <P>There's no DVD support for FreeBSD yet.</P> 1720 <P>There's no DVD support for FreeBSD yet.</P>
1676 1721
1677 <P><B><A NAME="solaris">6.3 Solaris</A></B></P> 1722 <P><B><A NAME="solaris">6.3 Solaris</A></B></P>
1678 1723
1679 <P>MPlayer should work on Solaris 2.6 or newer.</P> 1724 <P>MPlayer should work on Solaris 2.6 or newer.</P>
1680 1725
1681 <P>AVI file playback works best on Solaris x86, because you have the 1726 <P>AVI file playback works best on Solaris x86, because you have the
1682 option to use the win32 codecs on the x86 platform, or can use MMX/MMX2/3DNow/etc 1727 option to use the win32 codecs on the x86 platform, or can use
1683 instructions for MP3/DivX/DVD/whatever. On Solaris SPARC, 1728 MMX/MMX2/3DNow/etc instructions for MP3/DivX/DVD/whatever. On Colaris SPARC,
1684 you'll find quite a few AVI files with non working video and/or 1729 you'll find quite a few AVI files with non working video and/or audio
1685 audio playback, because the video/audio codecs using the Win32 DLLs 1730 playback, because the video/audio codecs using the Win32 DLLs are not
1686 are not available. However, <B>DivX/OpenDivX</B> movies should work, 1731 available. However, <B>DivX/OpenDivX</B> movies should work, when using
1687 when using libavcodec.</P> 1732 libavcodec.</P>
1688 1733
1689 <P>On <B>UltraSPARC</B>s, <B>MPlayer</B> takes advantage of their <B>VIS</B> 1734 <P>On <B>UltraSPARC</B>s, <B>MPlayer</B> takes advantage of their <B>VIS</B>
1690 extensions (equivalent to MMX), currently only in <I>libmpeg2</I>, 1735 extensions (equivalent to MMX), currently only in <I>libmpeg2</I>,
1691 <I>libvo</I> and <I>libavcodec</I>, but not in mp3lib. You can watch a VOB file 1736 <I>libvo</I> and <I>libavcodec</I>, but not in mp3lib. You can watch a VOB
1692 on a 400MHz CPU. You'll need <A 1737 file on a 400MHz CPU. You'll need
1693 HREF="http://www.sun.com/sparc/vis/mediaLib.html">mLib</A> installed.</P> 1738 <A HREF="http://www.sun.com/sparc/vis/mediaLib.html">mLib</A> installed.</P>
1694 1739
1695 <P>To build the package you will need GNU make (gmake, /opt/sfw/gmake), native 1740 <P>To build the package you will need GNU make (gmake, /opt/sfw/gmake), native
1696 Solaris make will not work. Typical error you get when building with Solaris' 1741 Solaris make will not work. Typical error you get when building with Solaris'
1697 make instead of GNU make:</P> 1742 make instead of GNU make:</P>
1698 1743
1699 <PRE> 1744 <PRE>
1700 % /usr/ccs/bin/make 1745 % /usr/ccs/bin/make
1701 make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen 1746 make: Fatal error in reader: Makefile, line 25: Unexpected end of line seen
1702 </PRE> 1747 </PRE>
1703 1748
1704 <P>On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter 1749 <P>On Solaris SPARC, you need the GNU C/C++ Compiler; it does not matter
1705 if GNU C/C++ compiler is configured with or without the GNU assembler.</P> 1750 if GNU C/C++ compiler is configured with or without the GNU assembler.</P>
1706 1751
1707 <P>On Solaris x86, you need the GNU assembler and the GNU C/C++ 1752 <P>On Solaris x86, you need the GNU assembler and the GNU C/C++ compiler,
1708 compiler, configured to use the GNU assembler! The mplayer code on 1753 configured to use the GNU assembler! The mplayer code on the x86 platform
1709 the x86 platform makes heavy use of MMX, SSE and 3DNOW! 1754 makes heavy use of MMX, SSE and 3DNOW! instructions that cannot be compiled
1710 instructions that cannot be compiled using Sun's assembler 1755 using Sun's assembler <CODE>/usr/ccs/bin/as</CODE>.</P>
1711 <CODE>/usr/ccs/bin/as</CODE>.</P> 1756
1712 1757 <P>The configure script tries to find out, which assembler program is used by
1713 <P>The configure script tries to find out, which assembler program is 1758 your "gcc" command (in case the autodetection fails, use the
1714 used by your "gcc" command (in case the autodetection fails, use 1759 <CODE>--as=/whereever/you/have/installed/gnu-as</CODE> option to tell the
1715 the "--as=/whereever/you/have/installed/gnu-as" option to tell the 1760 configure script where it can find GNU "as" on your system).</P>
1716 configure script where it can find GNU "as" on your system).</P>
1717 1761
1718 <P>Error message from configure on a Solaris x86 system using GCC 1762 <P>Error message from configure on a Solaris x86 system using GCC
1719 without GNU assembler:</P> 1763 without GNU assembler:</P>
1720 1764
1721 <PRE> 1765 <PRE>
1722 % configure 1766 % configure
1723 ... 1767 ...
1724 Checking assembler (/usr/ccs/bin/as) ... , failed 1768 Checking assembler (/usr/ccs/bin/as) ... , failed
1726 </PRE> 1770 </PRE>
1727 1771
1728 <P>(Solution: Install and use a gcc configured with "--with-as=gas")</P> 1772 <P>(Solution: Install and use a gcc configured with "--with-as=gas")</P>
1729 1773
1730 <P>Typical error you get when building with a GNU C compiler that does 1774 <P>Typical error you get when building with a GNU C compiler that does
1731 not use GNU as:</P> 1775 not use GNU as:</P>
1732 1776
1733 <PRE> 1777 <PRE>
1734 % gmake 1778 % gmake
1735 ... 1779 ...
1736 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math 1780 gcc -c -Iloader -Ilibvo -O4 -march=i686 -mcpu=i686 -pipe -ffast-math
1740 "(stdin)", line 3567 : Syntax error 1784 "(stdin)", line 3567 : Syntax error
1741 ... more "Illegal mnemonic" and "Syntax error" errors ... 1785 ... more "Illegal mnemonic" and "Syntax error" errors ...
1742 </PRE> 1786 </PRE>
1743 1787
1744 <P>For DVD support you must have the patched libcss installed. Patch: 1788 <P>For DVD support you must have the patched libcss installed. Patch:
1745 <A HREF="http://www.tools.de/solaris/mplayer/">http://www.tools.de/solaris/mplayer/</A>.</P> 1789 <A HREF="http://www.tools.de/solaris/mplayer/">http://www.tools.de/solaris/mplayer/</A>.</P>
1746 1790
1747 <P>Due to two bugs in Solaris 8 x86, you cannot reliably play DVDs using a 1791 <P>Due to two bugs in Solaris 8 x86, you cannot reliably play DVDs using a
1748 capacity >4GB:</P> 1792 capacity >4GB:</P>
1749 1793
1750 <UL> 1794 <UL>
1751 <LI>The sd(7D) driver on Solaris 8 x86 driver has bug when accessing a 1795 <LI>The sd(7D) driver on Solaris 8 x86 driver has bug when accessing a disk
1752 disk block >4GB on a device using a logical blocksize != DEV_BSIZE 1796 block >4GB on a device using a logical blocksize != DEV_BSIZE (i.e. CD-ROM
1753 (i.e. CD-ROM and DVD media). Due to a 32bit int overflow, a disk 1797 and DVD media). Due to a 32bit int overflow, a disk address modulo 4GB is
1754 address modulo 4GB is accessed. 1798 accessed.
1755 (<A HREF="http://groups.yahoo.com/group/solarisonintel/message/22516">http://groups.yahoo.com/group/solarisonintel/message/22516</A>) 1799 (<A HREF="http://groups.yahoo.com/group/solarisonintel/message/22516">http://groups.yahoo.com/group/solarisonintel/message/22516</A>)
1756 1800 </LI>
1757 <LI>The similar bug is present in the hsfs(7FS) filesystem code (aka 1801 <LI>The similar bug is present in the hsfs(7FS) filesystem code (aka
1758 ISO9660), hsfs currently does not support partitions/disks >4GB, 1802 ISO9660), hsfs currently does not support partitions/disks >4GB, all data
1759 all data is accessed modulo 4GB 1803 is accessed modulo 4GB
1760 (<A HREF="http://groups.yahoo.com/group/solarisonintel/message/22592">http://groups.yahoo.com/group/solarisonintel/message/22592</A>) 1804 (<A HREF="http://groups.yahoo.com/group/solarisonintel/message/22592">http://groups.yahoo.com/group/solarisonintel/message/22592</A>)
1805 </LI>
1761 </UL> 1806 </UL>
1762 1807
1763 <P>On Solaris with an UltraSPARC CPU, you can get some extra speed by 1808 <P>On Solaris with an UltraSPARC CPU, you can get some extra speed by
1764 using the CPU's VIS instructions for certain time consuming operations. 1809 using the CPU's VIS instructions for certain time consuming operations.
1765 VIS acceleration can be used in MPlayer by calling functions in Sun's 1810 VIS acceleration can be used in MPlayer by calling functions in Sun's
1780 1825
1781 1826
1782 <P><B><A NAME="sgi">6.5 Silicon Graphics / IRIX</A></B></P> 1827 <P><B><A NAME="sgi">6.5 Silicon Graphics / IRIX</A></B></P>
1783 1828
1784 <P>Reported working. You'll probably have to use the <I>SGI</I> ao driver. 1829 <P>Reported working. You'll probably have to use the <I>SGI</I> ao driver.
1785 Anyone has closer info?</P> 1830 Anyone has closer info?</P>
1786 1831
1787 1832
1788 <P><B><A NAME="qnx">6.6 QNX</A></B></P> 1833 <P><B><A NAME="qnx">6.6 QNX</A></B></P>
1789 1834
1790 <P>Works. You'll need to download SDL for QNX, and install it. Then run 1835 <P>Works. You'll need to download SDL for QNX, and install it. Then run
1796 1841
1797 1842
1798 <P><B><A NAME="openbsd">6.7 OpenBSD</A></B></P> 1843 <P><B><A NAME="openbsd">6.7 OpenBSD</A></B></P>
1799 1844
1800 <P>To build the package you will need GNU make (gmake, 1845 <P>To build the package you will need GNU make (gmake,
1801 /usr/ports/devel/gmake), native BSD make will not work, and a recent 1846 /usr/ports/devel/gmake), native BSD make will not work, and a recent
1802 binutils (including objcopy).</P> 1847 binutils (including objcopy).</P>
1803 1848
1804 <P>Due to limitations in different versions of gas (relocation vs mmx), 1849 <P>Due to limitations in different versions of gas (relocation vs mmx), you'll
1805 you'll need to compile in two steps: First make sure that the 1850 need to compile in two steps: First make sure that the non-native as is first
1806 non-native as is first in PATH and do a '<CODE>gmake -k</CODE>', then make sure 1851 in PATH and do a '<CODE>gmake -k</CODE>', then make sure that the native
1807 that the native version is used and do '<CODE>gmake</CODE>'.</P> 1852 version is used and do '<CODE>gmake</CODE>'.</P>
1808 1853
1809 <P>To use Win32 DLLs with <B>MPlayer</B> you will need to re-compile the 1854 <P>To use Win32 DLLs with <B>MPlayer</B> you will need to re-compile the
1810 kernel with "<CODE>option USER_LDT</CODE>".</P> 1855 kernel with "<CODE>option USER_LDT</CODE>".</P>
1811 1856
1812 <P>If <B>MPlayer</B> complains about not finding '/dev/cdrom' or 1857 <P>If <B>MPlayer</B> complains about not finding '/dev/cdrom' or
1813 '/dev/dvd' make a symbolic link, e.g. <CODE>ln -s 1858 '/dev/dvd' make a symbolic link, e.g. <CODE>ln -s
1814 /dev/rcd0c /dev/dvd</CODE></P> 1859 /dev/rcd0c /dev/dvd</CODE></P>
1815 1860
1816 <P>The not so hardcore hackers amongst us might want to use the ports 1861 <P>The not so hardcore hackers amongst us might want to use the ports
1817 version (/usr/ports/x11/mplayer).</P> 1862 version (/usr/ports/x11/mplayer).</P>
1818 1863
1819 <P><A NAME="cygwin"></A><B>6.8 Cygwin</B><BR> 1864
1820 </P> 1865 <P><A NAME="cygwin"></A><B>6.8. Cygwin</B><BR></P>
1821 1866
1822 <P>You will have to go to the <B>MPlayer</B> directory, and copy or symlink 1867 <P>You will have to go to the <B>MPlayer</B> directory, and copy or symlink
1823 <CODE>etc/cygwin_inttypes.h</CODE> to <CODE>/usr/include/inttypes.h</CODE> to 1868 <CODE>etc/cygwin_inttypes.h</CODE> to <CODE>/usr/include/inttypes.h</CODE> to
1824 make <B>MPlayer</B> compile. Otherwise it will complain about missing 1869 make <B>MPlayer</B> compile. Otherwise it will complain about missing
1825 <CODE>intypes.h</CODE>.</P> 1870 <CODE>intypes.h</CODE>.</P>
1826 1871
1827 <P><B><A NAME="authors">Appendix A - Authors</A></B></P> 1872 <P><B><A NAME="authors">Appendix A - Authors</A></B></P>
1828 1873
1829 <P>NOTE: Do *NOT* send bug reports, help &amp; feature requests directly to the authors!</P> 1874 <P>NOTE: Do *NOT* send bug reports, help &amp; feature requests directly to the authors!</P>
1830 1875
2526 <LI>and about matroxfb-TVout stuff.</LI> 2571 <LI>and about matroxfb-TVout stuff.</LI>
2527 </UL> 2572 </UL>
2528 </LI> 2573 </LI>
2529 <LI>MPlayer &amp; DVB card users:<BR> 2574 <LI>MPlayer &amp; DVB card users:<BR>
2530 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-dvb">http://mplayerhq.hu/mailman/listinfo/mplayer-dvb</A> 2575 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-dvb">http://mplayerhq.hu/mailman/listinfo/mplayer-dvb</A>
2531 <P>Things related to the hardware decoder card called DVB. (NOT DXR3!)</P> 2576 <P>Things related to the hardware decoder card called DVB. (NOT dxr3!)</P>
2532 </LI> 2577 </LI>
2533 <LI>MPlayer CVS-log: <BR> 2578 <LI>MPlayer CVS-log: <BR>
2534 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog">http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog</A> 2579 <A HREF="http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog">http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog</A>
2535 <P>Send only questions about CVS changes here. 2580 <P>Send only questions about CVS changes here.
2536 (if you don't understand why a change is required or you've better fix or you've 2581 (if you don't understand why a change is required or you've better fix or you've