[f29d6ee] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[01062dd] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[0a35e881] | 6 |
|
---|
[7eba4892] | 7 | <!ENTITY mplayer-download-http "http://www.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
[01062dd] | 8 | <!ENTITY mplayer-download-ftp "ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
[8f3e5fd0] | 9 | <!ENTITY mplayer-md5sum "18c05d88e22c3b815a43ca8d7152ccdc">
|
---|
| 10 | <!ENTITY mplayer-size "8.3 MB">
|
---|
| 11 | <!ENTITY mplayer-buildsize "133-250 MB (additional 22 MB for essential CODECs)">
|
---|
| 12 | <!ENTITY mplayer-time "1.2-2.5 SBU (depends on how FFmpeg is linked in)">
|
---|
[6c0c2a83] | 13 |
|
---|
[9b26734] | 14 | <!ENTITY mplayer-codec "essential-20061022.tar.bz2">
|
---|
| 15 | <!ENTITY mplayer-codec-md5sum "abcf4a3abc16cf88c9df7e0a77e9b941">
|
---|
| 16 | <!ENTITY mplayer-codec-size "10.0 MB">
|
---|
| 17 | <!ENTITY mplayer-alt-codec "all-20061022.tar.bz2">
|
---|
| 18 |
|
---|
| 19 | <!ENTITY mplayer-skin "Blue-1.7.tar.bz2">
|
---|
| 20 | <!ENTITY mplayer-skin-md5sum "e4e2020d11b681aac898103b3ba723c4">
|
---|
| 21 | <!ENTITY mplayer-skin-size "222 KB">
|
---|
[6c0c2a83] | 22 |
|
---|
| 23 | <!ENTITY mplayer-font "font-arial-iso-8859-1">
|
---|
| 24 | <!ENTITY mplayer-font-md5sum "1ecd31d17b51f16332b1fcc7da36b312">
|
---|
| 25 | <!ENTITY mplayer-font-size "234 KB">
|
---|
[01062dd] | 26 | ]>
|
---|
| 27 |
|
---|
[0b5a693] | 28 | <sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
|
---|
[f29d6ee] | 29 | <?dbhtml filename="mplayer.html"?>
|
---|
| 30 |
|
---|
| 31 | <sect1info>
|
---|
| 32 | <othername>$LastChangedBy$</othername>
|
---|
| 33 | <date>$Date$</date>
|
---|
| 34 | </sect1info>
|
---|
| 35 |
|
---|
| 36 | <title>MPlayer-&mplayer-version;</title>
|
---|
| 37 |
|
---|
| 38 | <indexterm zone="mplayer">
|
---|
| 39 | <primary sortas="a-MPlayer">MPlayer</primary>
|
---|
| 40 | </indexterm>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="package">
|
---|
| 43 | <title>Introduction to MPlayer</title>
|
---|
| 44 |
|
---|
[8f3e5fd0] | 45 | <para>The <application>MPlayer</application> package contains an
|
---|
| 46 | audio/video player controlled via the command line or graphical interface
|
---|
| 47 | which is able to play almost every popular audio and video file format and
|
---|
| 48 | CODEC (COder/DECoder, also COmpressor/DECompressor). With supported video
|
---|
| 49 | hardware and additional drivers, <application>MPlayer</application> can
|
---|
| 50 | play video files without an <application>X Window System</application>
|
---|
| 51 | installed.</para>
|
---|
[f29d6ee] | 52 |
|
---|
[79ccca0] | 53 | <para>For <application>MPlayer</application> general information and
|
---|
| 54 | available features, including a full list of file formats, CODECs and
|
---|
| 55 | output devices supported by <application>MPlayer</application>, visit the
|
---|
[f29d6ee] | 56 | <ulink url="http://www1.mplayerhq.hu/homepage/design7/info.html">
|
---|
| 57 | <application>MPlayer</application> web site</ulink>.</para>
|
---|
| 58 |
|
---|
| 59 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 60 | <itemizedlist spacing="compact">
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Download MD5 sum: &mplayer-md5sum;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Download size: &mplayer-size;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Estimated disk space required: &mplayer-buildsize;</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Estimated build time: &mplayer-time;</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
| 81 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[d7ecaa6] | 82 |
|
---|
[f29d6ee] | 83 | <itemizedlist spacing='compact'>
|
---|
| 84 | <title>Patches</title>
|
---|
[889c7c3f] | 85 | <listitem>
|
---|
| 86 | <para>Required Patch: <ulink
|
---|
| 87 | url="http://www.mplayerhq.hu/MPlayer/patches/asmrules_fix_20061231.diff"/></para>
|
---|
| 88 | </listitem>
|
---|
[da98fb3] | 89 | <listitem>
|
---|
| 90 | <para>Required Patch: <ulink
|
---|
[8f3e5fd0] | 91 | url="http://www.mplayerhq.hu/MPlayer/patches/cddb_fix_20070605.diff"/></para>
|
---|
[da98fb3] | 92 | </listitem>
|
---|
[36ec89cb] | 93 | <listitem>
|
---|
| 94 | <para>Required Patch: <ulink
|
---|
[8f3e5fd0] | 95 | url="&patch-root;/MPlayer-&mplayer-version;-ext_ffmpeg-1.patch"/></para>
|
---|
[f29d6ee] | 96 | </listitem>
|
---|
| 97 | </itemizedlist>
|
---|
| 98 |
|
---|
| 99 | <itemizedlist spacing='compact'>
|
---|
| 100 | <title>CODECs</title>
|
---|
| 101 | <listitem>
|
---|
[79ccca0] | 102 | <para>Proprietary CODECs: <ulink
|
---|
[f29d6ee] | 103 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-codec;"/></para>
|
---|
| 104 | </listitem>
|
---|
| 105 | <listitem>
|
---|
| 106 | <para>Download MD5 sum: &mplayer-codec-md5sum;</para>
|
---|
| 107 | </listitem>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>Download size: &mplayer-codec-size;</para>
|
---|
[f7ae70f] | 110 | </listitem>
|
---|
| 111 | <listitem>
|
---|
[6473e74] | 112 | <para>Alternate CODECs (provides additional functionality and is a
|
---|
[f7ae70f] | 113 | larger file): <ulink
|
---|
| 114 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-alt-codec;"/></para>
|
---|
[f29d6ee] | 115 | </listitem>
|
---|
[79ccca0] | 116 | <listitem><para>Additional CODECs: <ulink
|
---|
[f29d6ee] | 117 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
|
---|
| 118 | </listitem>
|
---|
| 119 | </itemizedlist>
|
---|
| 120 |
|
---|
| 121 | <itemizedlist spacing='compact'>
|
---|
| 122 | <title>Skins</title>
|
---|
| 123 | <listitem>
|
---|
[79ccca0] | 124 | <para>Default GUI skin: <ulink
|
---|
[7eba4892] | 125 | url="http://www.mplayerhq.hu/MPlayer/Skin/&mplayer-skin;"/></para>
|
---|
[f29d6ee] | 126 | </listitem>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>Download MD5 sum: &mplayer-skin-md5sum;</para>
|
---|
| 129 | </listitem>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Download size: &mplayer-skin-size;</para>
|
---|
| 132 | </listitem>
|
---|
| 133 | <listitem>
|
---|
[79ccca0] | 134 | <para>Additional skins: <ulink
|
---|
[f29d6ee] | 135 | url="http://www1.mplayerhq.hu/MPlayer/Skin/"/></para>
|
---|
| 136 | </listitem>
|
---|
| 137 | </itemizedlist>
|
---|
| 138 |
|
---|
| 139 | <itemizedlist spacing='compact'>
|
---|
| 140 | <title>Fonts</title>
|
---|
| 141 | <listitem>
|
---|
[79ccca0] | 142 | <para>Prerendered fonts: <ulink
|
---|
[f29d6ee] | 143 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/&mplayer-font;.tar.bz2"/></para>
|
---|
| 144 | </listitem>
|
---|
| 145 | <listitem>
|
---|
| 146 | <para>Download MD5 sum: &mplayer-font-md5sum;</para>
|
---|
| 147 | </listitem>
|
---|
| 148 | <listitem>
|
---|
| 149 | <para>Download size: &mplayer-font-size;</para>
|
---|
| 150 | </listitem>
|
---|
| 151 | <listitem>
|
---|
[79ccca0] | 152 | <para>Additional fonts: <ulink
|
---|
[f29d6ee] | 153 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
|
---|
| 154 | </listitem>
|
---|
| 155 | </itemizedlist>
|
---|
| 156 |
|
---|
[8f3e5fd0] | 157 | <para>The CODECs, skins and fonts are not required to
|
---|
| 158 | build and use <application>MPlayer</application>.</para>
|
---|
[f29d6ee] | 159 |
|
---|
| 160 | <bridgehead renderas="sect3">MPlayer Dependencies</bridgehead>
|
---|
[d7ecaa6] | 161 |
|
---|
[f29d6ee] | 162 | <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
|
---|
[4b4814c2] | 163 | <para role="optional"><xref linkend="cdparanoia"/>,
|
---|
[8f3e5fd0] | 164 | <ulink url="http://www.metzlerbros.org/dvb/">DVB</ulink>,
|
---|
| 165 | <ulink url="http://www.linuxtv.org/">DVB drivers</ulink>,
|
---|
| 166 | <ulink url="http://www.gnu.org/software/libcdio/">libcdio</ulink>,
|
---|
[79ccca0] | 167 | <xref linkend="libdv"/>,
|
---|
[8f3e5fd0] | 168 | <xref linkend="libdvdread"/>,
|
---|
[5d1d9df] | 169 | <ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink>,
|
---|
[8f3e5fd0] | 170 | <xref linkend="samba3"/>, and
|
---|
| 171 | <ulink url="http://armory.nicewarrior.org/projects/vstream-client/">TiVo vstream client</ulink></para>
|
---|
[f7ae70f] | 172 | <!-- Disabling for now as only internal Matroska support is available
|
---|
[d7ecaa6] | 173 | <ulink url="http://www.matroska.org/downloads/linux.html">libmatroska</ulink>
|
---|
[79ccca0] | 174 | (requires
|
---|
[f7ae70f] | 175 | <ulink url="http://dl.matroska.org/downloads/libebml/">libebml</ulink>), -->
|
---|
[d7ecaa6] | 176 |
|
---|
[f29d6ee] | 177 | <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
|
---|
[4b4814c2] | 178 | <para role="optional"><xref linkend="alsa"/>,
|
---|
[79ccca0] | 179 | <xref linkend="arts"/>,
|
---|
| 180 | <xref linkend="esound"/>,
|
---|
[8f3e5fd0] | 181 | <ulink url="http://jackit.sourceforge.net/">JACK</ulink>,
|
---|
| 182 | <ulink url="http://www.ladspa.org/">LADSPA</ulink>,
|
---|
[79ccca0] | 183 | <xref linkend="nas"/>,
|
---|
[8f3e5fd0] | 184 | <ulink url="http://openal.org/">OpenAL</ulink>,
|
---|
[2915a96] | 185 | <ulink url="http://pulseaudio.org/">PulseAudio</ulink>,
|
---|
[8f3e5fd0] | 186 | <xref linkend="sdl"/> (also used for video output), and
|
---|
| 187 | <xref linkend="xmms"/></para>
|
---|
[d7ecaa6] | 188 |
|
---|
[f29d6ee] | 189 | <bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead>
|
---|
[8f3e5fd0] | 190 | <para role="optional"><xref linkend="aalib"/>,
|
---|
| 191 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
| 192 | <ulink url="http://trific.ath.cx/software/enca/">Enca</ulink>,
|
---|
[79ccca0] | 193 | <xref linkend="fontconfig"/>,
|
---|
[8f3e5fd0] | 194 | <xref linkend="freetype2"/>,
|
---|
[b9d81c7f] | 195 | <xref linkend="fribidi"/>,
|
---|
[79ccca0] | 196 | <ulink url="http://www.ggi-project.org/">GGI</ulink>,
|
---|
[8f3e5fd0] | 197 | <xref linkend="giflib"/>,
|
---|
| 198 | <xref linkend="gtk2"/> or
|
---|
| 199 | <xref linkend="GTK"/>,
|
---|
| 200 | <ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
|
---|
| 201 | <xref linkend="libjpeg"/>,
|
---|
| 202 | <xref linkend="libpng"/>,
|
---|
| 203 | <ulink url="http://maemo.org/">maemo</ulink>,
|
---|
| 204 | <ulink url="http://vidix.sourceforge.net/">VIDIX</ulink>,
|
---|
| 205 | <xref linkend="x-window-system"/>, and
|
---|
| 206 | <ulink url="http://sourceforge.net/projects/unichrome/">XvMC Wrapper</ulink>
|
---|
| 207 | (only needed if you have XFree86 installed)</para>
|
---|
[d7ecaa6] | 208 |
|
---|
[f29d6ee] | 209 | <bridgehead renderas="sect4">Optional CODECs</bridgehead>
|
---|
[8f3e5fd0] | 210 | <para role="optional"><ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26104-700.zip">AMR
|
---|
| 211 | narrowband (floating point)</ulink> or
|
---|
| 212 | <ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26073-700.zip">AMR
|
---|
| 213 | naarrowband (fixed point)</ulink>,
|
---|
| 214 | <ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26204-700.zip">
|
---|
| 215 | AMR wideband</ulink>,
|
---|
| 216 | <!-- Dead link <ulink url="http://www.divx.com/divx/linux/">DivX</ulink>, i-->
|
---|
[222787b9] | 217 | <xref linkend="faac"/>,
|
---|
[7aa678d] | 218 | <xref linkend="faad2"/> (must disable the internal version),
|
---|
[8f3e5fd0] | 219 | <xref linkend="ffmpeg"/>,
|
---|
[79ccca0] | 220 | <xref linkend="lame"/>,
|
---|
[8f3e5fd0] | 221 | <ulink url="http://developers.videolan.org/libdca.html">libdca</ulink>,
|
---|
[79ccca0] | 222 | <xref linkend="libfame"/>,
|
---|
[8f3e5fd0] | 223 | <xref linkend="libmad"/>,
|
---|
| 224 | <ulink url="http://www.musepack.net/">libmpcdec</ulink>,
|
---|
| 225 | <ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink> (SVN checkout),
|
---|
| 226 | <xref linkend="libvorbis"/>,
|
---|
| 227 | <ulink url="http://www.lirc.org/">LIRC</ulink>,
|
---|
| 228 | <ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink>,
|
---|
| 229 | <xref linkend="LZO"/> (requires
|
---|
| 230 | <ulink url="http://www.oberhumer.com/opensource/lzo/download/LZO-v1/lzo-1.08.tar.gz">Version 1</ulink>),
|
---|
| 231 | <ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
|
---|
[79ccca0] | 232 | <ulink url="http://www.theora.org/">Theora</ulink>,
|
---|
[8f3e5fd0] | 233 | <ulink url="ftp://ftp.videolan.org/pub/videolan/vlc/0.8.2/contrib/toolame-02m-beta8.tar.bz2">tooLAME</ulink>,
|
---|
| 234 | <ulink url="http://sourceforge.net/projects/twolame/">TwoLAME</ulink>,
|
---|
[d912bc2c] | 235 | <ulink url="http://www.xiph.org/vorbis/">Tremor</ulink> (requires
|
---|
| 236 | <xref linkend="libvorbis"/> and you must disable the internal version),
|
---|
[8f3e5fd0] | 237 | <ulink url="http://developers.videolan.org/x264.html">x264</ulink>, and
|
---|
| 238 | <xref linkend="xvid"/></para>
|
---|
[f7ae70f] | 239 |
|
---|
| 240 | <bridgehead renderas="sect4">Optional Hardware Specific Options</bridgehead>
|
---|
| 241 | <para>There is hardware specific packages (or vendor supplied software) you
|
---|
| 242 | can install to improve the performance of your video card when using
|
---|
| 243 | <application>MPlayer</application>. Some of the packages and/or vendor
|
---|
| 244 | supplied software and the <application>MPlayer</application> specific
|
---|
| 245 | driver created if it is found is shown here.</para>
|
---|
| 246 |
|
---|
| 247 | <itemizedlist spacing='compact'>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para>mga: Matrox G200/G400/G450/G550 hardware YUV overlay via the
|
---|
| 250 | mga_vid device</para>
|
---|
| 251 | </listitem>
|
---|
| 252 | <listitem>
|
---|
| 253 | <para>xmga: Matrox G200/G400/G450/G550 overlay (mga_vid) in X11
|
---|
| 254 | window</para>
|
---|
| 255 | </listitem>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>syncfb: Matrox G400 YUV support on framebuffer</para>
|
---|
| 258 | </listitem>
|
---|
| 259 | <listitem>
|
---|
| 260 | <para>3dfx: Voodoo 3/Banshee hardware YUV support (/dev/3dfx)</para>
|
---|
| 261 | </listitem>
|
---|
| 262 | <listitem>
|
---|
| 263 | <para>tdfxfb: Voodoo 3/Banshee hardware YUV support on tdfx
|
---|
| 264 | framebuffer</para>
|
---|
| 265 | </listitem>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>mpegpes: support for Siemens DVB hardware MPEG-1/2 decoder boards
|
---|
| 268 | (or MPEG-PES file output)</para>
|
---|
| 269 | </listitem>
|
---|
| 270 | <listitem>
|
---|
| 271 | <para>dxr2: support for DXR2 hardware MPEG-1/2 decoder boards
|
---|
| 272 | <ulink url="http://dxr2.sourceforge.net/">Dxr2</ulink></para>
|
---|
| 273 | </listitem>
|
---|
| 274 | <listitem>
|
---|
| 275 | <para>dxr3: support for DXR3/Hollywood+ hardware MPEG-1/2 decoder
|
---|
| 276 | boards <ulink
|
---|
| 277 | url="http://dxr3.sourceforge.net/">libdxr3</ulink></para>
|
---|
| 278 | </listitem>
|
---|
| 279 | <listitem>
|
---|
| 280 | <para>zr: support for Zoran360[56]7 based hardware MJPEG cards</para>
|
---|
| 281 | </listitem>
|
---|
| 282 | </itemizedlist>
|
---|
[f29d6ee] | 283 |
|
---|
[0e2aa08] | 284 | <para condition="html" role="usernotes">User Notes:
|
---|
| 285 | <ulink url="&blfs-wiki;/mplayer"/></para>
|
---|
| 286 |
|
---|
[f29d6ee] | 287 | </sect2>
|
---|
| 288 |
|
---|
| 289 | <sect2 role="installation">
|
---|
| 290 | <title>Installation of MPlayer</title>
|
---|
| 291 |
|
---|
| 292 | <sect3>
|
---|
| 293 | <title>CODEC Installation (Optional)</title>
|
---|
| 294 |
|
---|
[79ccca0] | 295 | <para>If you downloaded any proprietary CODECs (which can provide support
|
---|
| 296 | for additional audio and video formats such as Real, Indeo and QuickTime),
|
---|
[d7ecaa6] | 297 | extract them to <filename class="directory">/usr/lib/mplayer/codecs</filename>
|
---|
[79ccca0] | 298 | using the following commands as the <systemitem
|
---|
| 299 | class="username">root</systemitem> user (substitute and/or add different
|
---|
[f29d6ee] | 300 | CODEC filenames, if necessary):</para>
|
---|
| 301 |
|
---|
| 302 | <screen role="root"><userinput>install -v -d -m755 /usr/lib/mplayer/codecs &&
|
---|
[d4dc95a2] | 303 | tar -xvf ../&mplayer-codec; \
|
---|
[a242f2e1] | 304 | -C /usr/lib/mplayer/codecs --strip-components=1 &&
|
---|
[f29d6ee] | 305 | chown -v -R root:root /usr/lib/mplayer/codecs</userinput></screen>
|
---|
[0a35e881] | 306 |
|
---|
[79ccca0] | 307 | <para>If you installed any CODECs, ensure you add
|
---|
[d7ecaa6] | 308 | <option>--with-codecsdir=/usr/lib/mplayer/codecs</option>
|
---|
[f29d6ee] | 309 | to the <command>configure</command> script.</para>
|
---|
[0a35e881] | 310 |
|
---|
[f29d6ee] | 311 | </sect3>
|
---|
[0a35e881] | 312 |
|
---|
[f29d6ee] | 313 | <sect3>
|
---|
| 314 | <title>GUI Installation (Optional)</title>
|
---|
[0a35e881] | 315 |
|
---|
[79ccca0] | 316 | <para>To enable building the GUI version of
|
---|
[8f3e5fd0] | 317 | <application>MPlayer</application> (requires <xref linkend="gtk2"/> or
|
---|
| 318 | <xref linkend="GTK"/>), add <option>--enable-gui</option> to the
|
---|
| 319 | <command>configure</command> script. You'll also need to extract at least
|
---|
| 320 | one skin. Extract the desired skin and create the default location (as
|
---|
| 321 | the <systemitem class="username">root</systemitem> user):</para>
|
---|
[f29d6ee] | 322 |
|
---|
| 323 | <screen role="root"><userinput>install -v -d -m755 /usr/share/mplayer/Skin &&
|
---|
[d4dc95a2] | 324 | tar -xvf ../&mplayer-skin; \
|
---|
[26f7934] | 325 | -C /usr/share/mplayer/Skin &&
|
---|
[9aa1897] | 326 | chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
|
---|
[f7ae70f] | 327 | chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
|
---|
[f29d6ee] | 328 | ln -sfv Blue /usr/share/mplayer/Skin/default</userinput></screen>
|
---|
| 329 |
|
---|
| 330 | </sect3>
|
---|
| 331 |
|
---|
| 332 | <sect3>
|
---|
| 333 | <title>Installing OSD and Subtitles Support (Optional)</title>
|
---|
| 334 |
|
---|
[79ccca0] | 335 | <para>To enable OSD (On Screen Display) and subtitles support, add
|
---|
[d7ecaa6] | 336 | <option>--enable-menu</option> to the <command>configure</command>
|
---|
[f7ae70f] | 337 | script. You'll also need to set up at least one font (see font
|
---|
| 338 | installation instructions a little later).</para>
|
---|
[f29d6ee] | 339 |
|
---|
| 340 | </sect3>
|
---|
| 341 |
|
---|
| 342 | <sect3>
|
---|
| 343 | <title>Main MPlayer Installation</title>
|
---|
| 344 |
|
---|
| 345 | <note>
|
---|
| 346 | <para>The package maintainers recommend building without any
|
---|
| 347 | optimizations.</para>
|
---|
| 348 | </note>
|
---|
| 349 |
|
---|
[68c8cba] | 350 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 351 | href="../../xincludes/X11R6_symlink.xml"/>
|
---|
| 352 |
|
---|
[f7ae70f] | 353 | <para><application>MPlayer</application> can build a shared
|
---|
| 354 | post-processing library from the internal
|
---|
| 355 | <application>FFmpeg</application> package which
|
---|
| 356 | other packages can link to. This requires
|
---|
| 357 | <application>MPlayer</application>
|
---|
| 358 | to link dynamically to this library instead of the default statically
|
---|
| 359 | linked method. If you desire to build the shared library, add
|
---|
[8f3e5fd0] | 360 | <option>--enable-shared-pp</option> to the <command>configure</command>
|
---|
| 361 | script. Note that the <application>FFmpeg</application> package can also
|
---|
| 362 | build this library (which <application>MPlayer</application> can link to
|
---|
| 363 | instead of building it), ensure you don't overwrite an existing one.</para>
|
---|
[f29d6ee] | 364 |
|
---|
[79ccca0] | 365 | <para>You may wish to examine the output from
|
---|
| 366 | <command>./configure --help</command> to find out what additional
|
---|
| 367 | parameters to <command>configure</command> are needed to include
|
---|
[8f3e5fd0] | 368 | the dependencies you have installed on your system. To link in existing
|
---|
| 369 | <application>FFmpeg</application> libraries (and
|
---|
| 370 | <application>MPlayer</application> won't have to build them), you must
|
---|
| 371 | pass a total of nine additional options to the
|
---|
| 372 | <command>configure</command> script. Four to disable building the static
|
---|
| 373 | <application>FFmpeg</application> libraries, four to enable using the
|
---|
| 374 | system-installed shared libraries and
|
---|
| 375 | <option>--with-extraincdir=/usr/include/ffmpeg</option> so the build can
|
---|
| 376 | locate the <application>FFmpeg</application> interface headers.</para>
|
---|
[36ec89cb] | 377 |
|
---|
[79ccca0] | 378 | <para>Install <application>MPlayer</application> by running the following
|
---|
[f29d6ee] | 379 | commands:</para>
|
---|
| 380 |
|
---|
[889c7c3f] | 381 | <screen><userinput>patch -Np0 -i ../asmrules_fix_20061231.diff &&
|
---|
| 382 | patch -Np0 -i ../cddb_fix_20070605.diff &&
|
---|
[92a8eb7] | 383 | patch -Np1 -i ../MPlayer-&mplayer-version;-ext_ffmpeg-1.patch &&
|
---|
[36ec89cb] | 384 |
|
---|
| 385 | ./configure --prefix=/usr \
|
---|
| 386 | --confdir=/etc/mplayer \
|
---|
[8f3e5fd0] | 387 | --enable-largefiles \
|
---|
| 388 | --enable-dynamic-plugins &&
|
---|
[f29d6ee] | 389 | make</userinput></screen>
|
---|
[ec2270f] | 390 |
|
---|
[f29d6ee] | 391 | <para>This package does not come with a test suite.</para>
|
---|
[ace94c34] | 392 |
|
---|
[f29d6ee] | 393 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ec2270f] | 394 |
|
---|
[f29d6ee] | 395 | <screen role="root"><userinput>make install &&
|
---|
[36ec89cb] | 396 |
|
---|
[9a9df1f8] | 397 | install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &&
|
---|
[36ec89cb] | 398 | cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen>
|
---|
[f29d6ee] | 399 |
|
---|
[36ec89cb] | 400 | <para>Passing certain parameters to <command>configure</command> may
|
---|
| 401 | result in the creation of
|
---|
| 402 | <filename class='libraryfile'>libdha.so.1.0</filename>. If so, you may
|
---|
| 403 | wish to create a symlink to this library in case other packages link to
|
---|
| 404 | <filename class='libraryfile'>libdha.so</filename>. Use the following
|
---|
| 405 | command as the <systemitem class="username">root</systemitem> user to
|
---|
| 406 | create the symbolic link:</para>
|
---|
[9aa1897] | 407 |
|
---|
[f29d6ee] | 408 | <screen role="root"><userinput>ln -v -s libdha.so.1.0 /usr/lib/libdha.so</userinput></screen>
|
---|
[9aa1897] | 409 |
|
---|
[f29d6ee] | 410 | <para>You will need <filename>codecs.conf</filename> only if you want to
|
---|
| 411 | change its properties, as the main binary contains an internal copy of
|
---|
[f7ae70f] | 412 | it. Ensure any changes you make to <filename>codecs.conf</filename>
|
---|
| 413 | achieve the desired results, as incorrect entries in this file have been
|
---|
| 414 | known to cause errors and render the player unusable. If necessary,
|
---|
| 415 | create the file using the following command.</para>
|
---|
[01062dd] | 416 |
|
---|
[f29d6ee] | 417 | <screen role="root"><userinput>install -m644 etc/codecs.conf /etc/mplayer</userinput></screen>
|
---|
[01062dd] | 418 |
|
---|
[f29d6ee] | 419 | <para>You may also want to copy all the default configuration files to
|
---|
[f7ae70f] | 420 | <filename class='directory'>/etc/mplayer</filename> for future reference
|
---|
| 421 | or more customization ability.</para>
|
---|
[9aa1897] | 422 |
|
---|
[f29d6ee] | 423 | <screen role="root"><userinput>install -m644 etc/*.conf /etc/mplayer</userinput></screen>
|
---|
[9aa1897] | 424 |
|
---|
[46fe005] | 425 | <para><application>MPlayer</application> requires that the RTC run at a
|
---|
| 426 | frequency of 1024 Hz. Make this setting change at boot-time by adding
|
---|
| 427 | a line to <filename>/etc/sysctl.conf</filename>:</para>
|
---|
| 428 |
|
---|
| 429 | <screen role="root"><userinput>echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf</userinput></screen>
|
---|
| 430 |
|
---|
[f29d6ee] | 431 | </sect3>
|
---|
[0a35e881] | 432 |
|
---|
[f29d6ee] | 433 | <sect3>
|
---|
[79ccca0] | 434 | <title>OSD and Subtitles Font Installation (Required if '--enable-menu' Was
|
---|
[f29d6ee] | 435 | Passed to 'configure')</title>
|
---|
[0a35e881] | 436 |
|
---|
[79ccca0] | 437 | <para>The recommended method to set up a font for
|
---|
| 438 | <application>MPlayer</application> is to link a TTF file to
|
---|
| 439 | your <filename class="directory">~/.mplayer</filename> directory. A link
|
---|
| 440 | should be created in each user's home directory who may use
|
---|
[f29d6ee] | 441 | <application>MPlayer</application>. For example:</para>
|
---|
[01062dd] | 442 |
|
---|
[f29d6ee] | 443 | <screen><userinput>install -v -m750 -d ~/.mplayer &&
|
---|
[36ec89cb] | 444 | ln -v -sf /usr/share/fonts/X11-TTF/luxisri.ttf \
|
---|
[f29d6ee] | 445 | ~/.mplayer/subfont.ttf</userinput></screen>
|
---|
[01062dd] | 446 |
|
---|
[79ccca0] | 447 | <para>There are several other ways to set up a font package. To use a
|
---|
| 448 | prerendered <application>MPlayer</application> font package, extract
|
---|
[f29d6ee] | 449 | and link one of the font tarballs using the following commands:</para>
|
---|
[0a35e881] | 450 |
|
---|
[d4dc95a2] | 451 | <screen role="root"><userinput>tar -xvf ../&mplayer-font;.tar.bz2 \
|
---|
[0a35e881] | 452 | -C /usr/share/mplayer/font &&
|
---|
[9a9df1f8] | 453 | chown -v -R root:root /usr/share/mplayer/font &&
|
---|
[0a35e881] | 454 | cd /usr/share/mplayer/font &&
|
---|
[0e2aa08] | 455 | ln -v -sf &mplayer-font;/font-arial-<replaceable><font size></replaceable>-iso-8859-1/* .</userinput></screen>
|
---|
[f29d6ee] | 456 |
|
---|
| 457 | <para>Available font sizes are 14, 18, 24 or 28.</para>
|
---|
[0a35e881] | 458 |
|
---|
[79ccca0] | 459 | <para>Additional information as well as additional methods to set up an
|
---|
| 460 | <application>MPlayer</application> font package can be found at <ulink
|
---|
[f29d6ee] | 461 | url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
|
---|
[0a35e881] | 462 |
|
---|
[f29d6ee] | 463 | </sect3>
|
---|
[01062dd] | 464 |
|
---|
[36ec89cb] | 465 | <!--
|
---|
[61e8418] | 466 | Following section should be removed after BLFS-6.2.
|
---|
| 467 | Current Udev creates persistent cd/dvd links automatically
|
---|
[f29d6ee] | 468 | <sect3>
|
---|
| 469 | <title>Installation for DVD Playback (Optional)</title>
|
---|
[01062dd] | 470 |
|
---|
[79ccca0] | 471 | <para>If you want DVD playback with <application>MPlayer</application>,
|
---|
[cbcc71f1] | 472 | you need to ensure a link exists between your DVD drive and
|
---|
[61e8418] | 473 | <filename>/dev/dvd</filename>. This process is described in the
|
---|
| 474 | <ulink url="&lfs-root;/chapter07/symlinks.html">Creating custom
|
---|
| 475 | symlinks to devices</ulink> section in LFS. The user must be part
|
---|
| 476 | of the <systemitem class="groupname">cdrom</systemitem> group in
|
---|
| 477 | order to use the device.</para>
|
---|
[f29d6ee] | 478 |
|
---|
| 479 | </sect3>
|
---|
[8f3e5fd0] | 480 | -->
|
---|
[f29d6ee] | 481 |
|
---|
| 482 | </sect2>
|
---|
| 483 |
|
---|
| 484 | <sect2 role="configuration">
|
---|
| 485 | <title>Configuring MPlayer</title>
|
---|
| 486 |
|
---|
| 487 | <sect3 id="mplayer-config">
|
---|
| 488 | <title>Config Files</title>
|
---|
| 489 |
|
---|
| 490 | <para><filename>/etc/mplayer/*</filename> and
|
---|
| 491 | <filename>~/.mplayer/*</filename></para>
|
---|
| 492 |
|
---|
| 493 | <indexterm zone="mplayer mplayer-config">
|
---|
| 494 | <primary sortas="e-AA.mplayer">~/.mplayer/*</primary>
|
---|
| 495 | </indexterm>
|
---|
| 496 |
|
---|
| 497 | <indexterm zone="mplayer mplayer-config">
|
---|
| 498 | <primary sortas="e-etc-mplayer">/etc/mplayer/*</primary>
|
---|
| 499 | </indexterm>
|
---|
| 500 |
|
---|
| 501 | </sect3>
|
---|
| 502 |
|
---|
| 503 | <sect3>
|
---|
| 504 | <title>Configuration Information</title>
|
---|
| 505 |
|
---|
[f7ae70f] | 506 | <para>Typically, there's no configuration required for the system-wide
|
---|
| 507 | files in <filename class='directory'>/etc/mplayer</filename> (in fact,
|
---|
| 508 | this directory is empty unless you copied the default files as mentioned
|
---|
| 509 | above). Configuration can be accomplished by choosing the configuration
|
---|
| 510 | button located on the <application>MPlayer</application> GUI. Any
|
---|
[79ccca0] | 511 | configuration changes made here will be copied to the user's
|
---|
[f29d6ee] | 512 | <filename class='directory'>~/.mplayer</filename> directory.</para>
|
---|
| 513 |
|
---|
| 514 | </sect3>
|
---|
| 515 |
|
---|
| 516 | </sect2>
|
---|
| 517 |
|
---|
| 518 | <sect2 role="content">
|
---|
| 519 | <title>Contents</title>
|
---|
| 520 |
|
---|
| 521 | <segmentedlist>
|
---|
| 522 | <segtitle>Installed Programs</segtitle>
|
---|
| 523 | <segtitle>Installed Libraries</segtitle>
|
---|
| 524 | <segtitle>Installed Directories</segtitle>
|
---|
| 525 |
|
---|
| 526 | <seglistitem>
|
---|
| 527 | <seg>gmplayer, mplayer, and mencoder</seg>
|
---|
| 528 | <seg>libdha.so and optionally, libpostproc.so</seg>
|
---|
[79ccca0] | 529 | <seg>~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer,
|
---|
[f29d6ee] | 530 | /usr/share/mplayer, and /usr/share/doc/mplayer-&mplayer-version;</seg>
|
---|
| 531 | </seglistitem>
|
---|
| 532 | </segmentedlist>
|
---|
| 533 |
|
---|
| 534 | <variablelist>
|
---|
| 535 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 536 | <?dbfo list-presentation="list"?>
|
---|
| 537 | <?dbhtml list-presentation="table"?>
|
---|
| 538 |
|
---|
| 539 | <varlistentry id="gmplayer">
|
---|
| 540 | <term><command>gmplayer</command></term>
|
---|
| 541 | <listitem>
|
---|
[79ccca0] | 542 | <para>is a symlink to <command>mplayer</command> which
|
---|
| 543 | brings up the graphical user interface component of
|
---|
[f29d6ee] | 544 | <application>MPlayer</application>.</para>
|
---|
| 545 | <indexterm zone="mplayer gmplayer">
|
---|
| 546 | <primary sortas="b-gmplayer">gmplayer</primary>
|
---|
| 547 | </indexterm>
|
---|
| 548 | </listitem>
|
---|
| 549 | </varlistentry>
|
---|
| 550 |
|
---|
| 551 | <varlistentry id="mplayer-prog">
|
---|
| 552 | <term><command>mplayer</command></term>
|
---|
| 553 | <listitem>
|
---|
[79ccca0] | 554 | <para> manages the input formats, the CODECs and
|
---|
| 555 | the output formats to play video files, DVDs,
|
---|
| 556 | (S)VCDs or network streams containing audio and/or video
|
---|
[f29d6ee] | 557 | information on your system.</para>
|
---|
| 558 |
|
---|
| 559 | <para>Examples:</para>
|
---|
| 560 |
|
---|
| 561 | <screen><userinput>mplayer -fs blfs.avi
|
---|
[1e901a7] | 562 | mplayer -vo fbdev -fb /dev/fb0 dvd://1 \
|
---|
| 563 | -aid 128 -sub en -framedrop
|
---|
[01062dd] | 564 | mplayer -fs vcd://1 # works both for VCDs and SVCDs
|
---|
[9a003fe1] | 565 | mplayer http://fredrik.hubbe.net/plugger/test.mpg</userinput></screen>
|
---|
[f29d6ee] | 566 |
|
---|
[f7ae70f] | 567 | <para>For further information, look at the very good documentation
|
---|
| 568 | included with the package in the source tree subdirectory
|
---|
[f29d6ee] | 569 | <filename class="directory">DOCS</filename> (also installed at
|
---|
[8f3e5fd0] | 570 | <filename class='directory'>/usr/share/doc/mplayer-&mplayer-version;</filename>).</para>
|
---|
| 571 |
|
---|
[f29d6ee] | 572 | <indexterm zone="mplayer mplayer-prog">
|
---|
| 573 | <primary sortas="b-mplayer">mplayer</primary>
|
---|
| 574 | </indexterm>
|
---|
| 575 | </listitem>
|
---|
| 576 | </varlistentry>
|
---|
| 577 |
|
---|
| 578 | <varlistentry id="mencoder">
|
---|
| 579 | <term><command>mencoder</command></term>
|
---|
| 580 | <listitem>
|
---|
[d7ecaa6] | 581 | <para>is used to encode any <application>MPlayer</application>
|
---|
[79ccca0] | 582 | playable movie to DivX4, <application>XviD</application> or any
|
---|
[f29d6ee] | 583 | CODEC in <filename class='libraryfile'>libavcodec</filename> with
|
---|
| 584 | PCM/MP3/VBRMP3 audio.</para>
|
---|
| 585 |
|
---|
| 586 | <para>Example:</para>
|
---|
| 587 |
|
---|
| 588 | <screen><userinput>rm frameno.avi
|
---|
[01062dd] | 589 | mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
|
---|
[f29d6ee] | 590 | -lameopts vbr=3 -o frameno.avi
|
---|
[01062dd] | 591 |
|
---|
[f29d6ee] | 592 | <literal># mencoder should output bitrates for average encodings
|
---|
[01062dd] | 593 | # now, choose one you like best! In the following lines,
|
---|
| 594 | # replace <bitrate> and <name.avi> with statements of your
|
---|
[f29d6ee] | 595 | # personal liking.</literal>
|
---|
[01062dd] | 596 |
|
---|
[f29d6ee] | 597 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 598 | -lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> \
|
---|
| 599 | -o <name.avi>
|
---|
[01062dd] | 600 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 601 | -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> \
|
---|
| 602 | -o <name.avi>
|
---|
[f29d6ee] | 603 | mencoder -forceidx <name.avi></userinput></screen>
|
---|
| 604 | <indexterm zone="mplayer mencoder">
|
---|
| 605 | <primary sortas="b-mencoder">mencoder</primary>
|
---|
| 606 | </indexterm>
|
---|
| 607 | </listitem>
|
---|
| 608 | </varlistentry>
|
---|
| 609 |
|
---|
| 610 | <varlistentry id="libdha">
|
---|
| 611 | <term><filename class='libraryfile'>libdha.so</filename></term>
|
---|
| 612 | <listitem>
|
---|
[79ccca0] | 613 | <para>contains functions used by the
|
---|
[f29d6ee] | 614 | <application>MPlayer</application> programs.</para>
|
---|
| 615 | <indexterm zone="mplayer libdha">
|
---|
| 616 | <primary sortas="c-libdha">libdha.so</primary>
|
---|
| 617 | </indexterm>
|
---|
| 618 | </listitem>
|
---|
| 619 | </varlistentry>
|
---|
| 620 |
|
---|
| 621 | <varlistentry id="libpostproc">
|
---|
| 622 | <term><filename class='libraryfile'>libpostproc.so</filename></term>
|
---|
| 623 | <listitem>
|
---|
[79ccca0] | 624 | <para>is a post-processing filter library used by the
|
---|
[f29d6ee] | 625 | <application>MPlayer</application> programs and other packages.</para>
|
---|
| 626 | <indexterm zone="mplayer libpostproc">
|
---|
| 627 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
| 628 | </indexterm>
|
---|
| 629 | </listitem>
|
---|
| 630 | </varlistentry>
|
---|
| 631 |
|
---|
| 632 | </variablelist>
|
---|
| 633 |
|
---|
| 634 | </sect2>
|
---|
[f45b1953] | 635 |
|
---|
| 636 | </sect1>
|
---|