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