From 2c0ae18ae269ae755eef36c1ebadba1324c85700 Mon Sep 17 00:00:00 2001 From: Marc Fonvieille Date: Fri, 17 Sep 2004 18:07:12 +0000 Subject: [PATCH] Update MPlayer section to match current version available in our ports tree. --- .../books/handbook/multimedia/chapter.sgml | 68 ++++++++++--------- 1 file changed, 36 insertions(+), 32 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml index 5c554393c1..398c83a282 100644 --- a/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/multimedia/chapter.sgml @@ -1065,38 +1065,35 @@ no adaptors present another. Therefore, it is important to build it from ports and not to use a binary package. Additionally, a number of options can be specified in the make - command line, as described at the start of the build. + command line, as described in the Makefile and at the start of the build: &prompt.root; cd /usr/ports/multimedia/mplayer &prompt.root; make -You can enable additional compilation optimizations -by defining WITH_OPTIMIZED_CFLAGS -You can enable GTK GUI by defining WITH_GUI. -You can enable DVD support by defining WITH_DVD. -You can enable SVGALIB support by defining WITH_SVGALIB. -You can enable VORBIS sound support by defining WITH_VORBIS. -You can enable XAnim DLL support by defining WITH_XANIM. +N - O - T - E + +Take a careful look into the Makefile in order +to learn how to tune mplayer towards you personal preferences! +For example, +make WITH_GTK1 +builds MPlayer with GTK1-GUI support. +If you want to use the GUI, you can either install +/usr/ports/multimedia/mplayer-skins +or download official skin collections from +http://www.mplayerhq.hu/homepage/dload.html - If you have x11-toolkits/gtk12 installed, then - you might as well enable the GUI. Otherwise, it is not - worth the effort. If you intend to play (possibly CSS - encoded) DVD's with MPlayer you must enable the DVD support - option here Unauthorized DVD playback is a - serious criminal act in some countries. Check local laws - before enabling this option. . Some - reasonable options are: - - &prompt.root; make WITH_DVD=yes WITH_SVGALIB=yes + The default port options should be sufficient for most + users. However, if you need the XviD codec, you have to + specify the WITH_XVID option in the + command line. The default DVD device can also be defined + with the WITH_DVD_DEVICE option, by + default /dev/acd0 will be used. As of this writing, the MPlayer port will build its HTML - documentation and one executable, - mplayer. It can also be made to build an - encoder, mencoder, which is a tool for - re-encoding video. A modification to the - Makefile can enable it. It may be - enabled by default in subsequent versions of the port. + documentation and two executables, + mplayer, and + mencoder, which is a tool for + re-encoding video. The HTML documentation for MPlayer is very informative. If the reader finds the information on video hardware and @@ -1142,14 +1139,23 @@ You can enable XAnim DLL support by defining WITH_XANIM. with hardware. To play from a DVD, replace the - testfile.avi with where N is the title number to play and DEVICE is the device node for the DVD-ROM. For example, to play title 3 from /dev/dvd: - &prompt.root; mplayer -vo dga -dvd 3 /dev/dvd + &prompt.root; mplayer -vo xv dvd://3 -dvd-device /dev/dvd + + + The default DVD device can be defined during the build + of the MPlayer port via the + WITH_DVD_DEVICE option. By default, + this device is /dev/acd0. More + details can be found in the port + Makefile. + To stop, pause, advance and so on, consult the keybindings, which are output by running mplayer @@ -1171,7 +1177,7 @@ zoom=yes DVD title into a .vob file. To dump out the second title from a DVD, type this: - &prompt.root; mplayer -dumpstream -dumpfile out.vob -dvd 2 /dev/dvd + &prompt.root; mplayer -dumpstream -dumpfile out.vob dvd://2 -dvd-device /dev/dvd The output file, out.vob, will be MPEG and can be manipulated by the other packages described @@ -1184,9 +1190,7 @@ zoom=yes mencoder - If you opt to install mencoder when - you build MPlayer, be forewarned - that it is still an experimental component. Before using + Before using mencoder it is a good idea to familiarize yourself with the options from the HTML documentation. There is a manual page, but it is not very @@ -1214,7 +1218,7 @@ zoom=yes and xine. input.avi can be replaced with - and run as + and run as root to re-encode a DVD title directly. Since you are likely to be dissatisfied with your results the first time around, it is recommended you