[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 |
|
---|
[8d86c672] | 7 | <!ENTITY mplayer-download-http "http://anduin.linuxfromscratch.org/sources/BLFS/svn/m/mplayer-15-03-12.tar.xz">
|
---|
[874f1e88] | 8 | <!ENTITY mplayer-download-ftp " ">
|
---|
| 9 | <!ENTITY mplayer-md5sum "775fcefab99004de09d0fae2c52dc06b">
|
---|
| 10 | <!ENTITY mplayer-size "9.9 MB">
|
---|
| 11 | <!ENTITY mplayer-buildsize "137 MB">
|
---|
| 12 | <!ENTITY mplayer-time "4.7 SBU">
|
---|
| 13 |
|
---|
| 14 | <!ENTITY mplayer-codec "essential-20071007.tar.bz2">
|
---|
| 15 | <!ENTITY mplayer-codec-md5sum "4ea9c2dbd0945c83af1a8d0dd363993c">
|
---|
| 16 | <!ENTITY mplayer-codec-size "9.5 MB">
|
---|
| 17 |
|
---|
| 18 | <!ENTITY mplayer-skin "Blue-1.8.tar.bz2">
|
---|
| 19 | <!ENTITY mplayer-skin-md5sum "340368f4e33f767d9df109990fb29c02">
|
---|
| 20 | <!ENTITY mplayer-skin-size "218 KB">
|
---|
[01062dd] | 21 | ]>
|
---|
| 22 |
|
---|
[0b5a693] | 23 | <sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
|
---|
[f29d6ee] | 24 | <?dbhtml filename="mplayer.html"?>
|
---|
| 25 |
|
---|
| 26 | <sect1info>
|
---|
| 27 | <othername>$LastChangedBy$</othername>
|
---|
| 28 | <date>$Date$</date>
|
---|
| 29 | </sect1info>
|
---|
| 30 |
|
---|
| 31 | <title>MPlayer-&mplayer-version;</title>
|
---|
| 32 |
|
---|
| 33 | <indexterm zone="mplayer">
|
---|
| 34 | <primary sortas="a-MPlayer">MPlayer</primary>
|
---|
| 35 | </indexterm>
|
---|
| 36 |
|
---|
| 37 | <sect2 role="package">
|
---|
| 38 | <title>Introduction to MPlayer</title>
|
---|
| 39 |
|
---|
[874f1e88] | 40 | <para>The <application>MPlayer</application> package contains a powerful
|
---|
[8f3e5fd0] | 41 | audio/video player controlled via the command line or graphical interface
|
---|
[874f1e88] | 42 | which is able to play almost every popular audio and video file format. With
|
---|
| 43 | supported video hardware and additional drivers, <application>MPlayer</application> can
|
---|
[8f3e5fd0] | 44 | play video files without an <application>X Window System</application>
|
---|
| 45 | installed.</para>
|
---|
[f29d6ee] | 46 |
|
---|
[79ccca0] | 47 | <para>For <application>MPlayer</application> general information and
|
---|
| 48 | available features, including a full list of file formats, CODECs and
|
---|
| 49 | output devices supported by <application>MPlayer</application>, visit the
|
---|
[874f1e88] | 50 | <ulink url="http://www.mplayerhq.hu/">
|
---|
[f29d6ee] | 51 | <application>MPlayer</application> web site</ulink>.</para>
|
---|
[874f1e88] | 52 |
|
---|
| 53 | &lfs70_checked;
|
---|
[f29d6ee] | 54 |
|
---|
| 55 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 56 | <itemizedlist spacing="compact">
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Download MD5 sum: &mplayer-md5sum;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Download size: &mplayer-size;</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Estimated disk space required: &mplayer-buildsize;</para>
|
---|
| 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>Estimated build time: &mplayer-time;</para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </itemizedlist>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[874f1e88] | 78 | <!--
|
---|
[f29d6ee] | 79 | <itemizedlist spacing='compact'>
|
---|
| 80 | <title>Patches</title>
|
---|
[889c7c3f] | 81 | <listitem>
|
---|
| 82 | <para>Required Patch: <ulink
|
---|
| 83 | url="http://www.mplayerhq.hu/MPlayer/patches/asmrules_fix_20061231.diff"/></para>
|
---|
| 84 | </listitem>
|
---|
[da98fb3] | 85 | <listitem>
|
---|
| 86 | <para>Required Patch: <ulink
|
---|
[8f3e5fd0] | 87 | url="http://www.mplayerhq.hu/MPlayer/patches/cddb_fix_20070605.diff"/></para>
|
---|
[da98fb3] | 88 | </listitem>
|
---|
[36ec89cb] | 89 | <listitem>
|
---|
| 90 | <para>Required Patch: <ulink
|
---|
[8f3e5fd0] | 91 | url="&patch-root;/MPlayer-&mplayer-version;-ext_ffmpeg-1.patch"/></para>
|
---|
[f29d6ee] | 92 | </listitem>
|
---|
| 93 | </itemizedlist>
|
---|
[874f1e88] | 94 | -->
|
---|
[f29d6ee] | 95 | <itemizedlist spacing='compact'>
|
---|
| 96 | <title>CODECs</title>
|
---|
[874f1e88] | 97 | <para>Although MPlayer has built-in support for playing most popular video
|
---|
| 98 | and audio formats, packages with proprietary binary CODECs that enable support
|
---|
| 99 | for playing some rare formats are available. Most people don't need the binary
|
---|
| 100 | CODECs.</para>
|
---|
[f29d6ee] | 101 | <listitem>
|
---|
[874f1e88] | 102 | <para>Essential binary 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>
|
---|
[874f1e88] | 111 | <!--
|
---|
[f7ae70f] | 112 | <listitem>
|
---|
[6473e74] | 113 | <para>Alternate CODECs (provides additional functionality and is a
|
---|
[f7ae70f] | 114 | larger file): <ulink
|
---|
| 115 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-alt-codec;"/></para>
|
---|
[f29d6ee] | 116 | </listitem>
|
---|
[79ccca0] | 117 | <listitem><para>Additional CODECs: <ulink
|
---|
[f29d6ee] | 118 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
|
---|
| 119 | </listitem>
|
---|
[874f1e88] | 120 | -->
|
---|
[f29d6ee] | 121 | </itemizedlist>
|
---|
[874f1e88] | 122 |
|
---|
[f29d6ee] | 123 | <itemizedlist spacing='compact'>
|
---|
| 124 | <title>Skins</title>
|
---|
| 125 | <listitem>
|
---|
[79ccca0] | 126 | <para>Default GUI skin: <ulink
|
---|
[d0151ee] | 127 | url="http://www.mplayerhq.hu/MPlayer/skins/&mplayer-skin;"/></para>
|
---|
[f29d6ee] | 128 | </listitem>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Download MD5 sum: &mplayer-skin-md5sum;</para>
|
---|
| 131 | </listitem>
|
---|
| 132 | <listitem>
|
---|
| 133 | <para>Download size: &mplayer-skin-size;</para>
|
---|
| 134 | </listitem>
|
---|
| 135 | <listitem>
|
---|
[79ccca0] | 136 | <para>Additional skins: <ulink
|
---|
[d0151ee] | 137 | url="http://www1.mplayerhq.hu/MPlayer/skins/"/></para>
|
---|
[f29d6ee] | 138 | </listitem>
|
---|
| 139 | </itemizedlist>
|
---|
[874f1e88] | 140 | <!--
|
---|
[f29d6ee] | 141 | <itemizedlist spacing='compact'>
|
---|
| 142 | <title>Fonts</title>
|
---|
| 143 | <listitem>
|
---|
[79ccca0] | 144 | <para>Prerendered fonts: <ulink
|
---|
[f29d6ee] | 145 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/&mplayer-font;.tar.bz2"/></para>
|
---|
| 146 | </listitem>
|
---|
| 147 | <listitem>
|
---|
| 148 | <para>Download MD5 sum: &mplayer-font-md5sum;</para>
|
---|
| 149 | </listitem>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>Download size: &mplayer-font-size;</para>
|
---|
| 152 | </listitem>
|
---|
| 153 | <listitem>
|
---|
[79ccca0] | 154 | <para>Additional fonts: <ulink
|
---|
[f29d6ee] | 155 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
|
---|
| 156 | </listitem>
|
---|
| 157 | </itemizedlist>
|
---|
[874f1e88] | 158 | -->
|
---|
| 159 | <para>The CODECs and skins are not required to
|
---|
[8f3e5fd0] | 160 | build and use <application>MPlayer</application>.</para>
|
---|
[f29d6ee] | 161 |
|
---|
| 162 | <bridgehead renderas="sect3">MPlayer Dependencies</bridgehead>
|
---|
[d7ecaa6] | 163 |
|
---|
[874f1e88] | 164 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 165 | <para role="recommended">
|
---|
| 166 | <xref linkend="x-window-system"/>
|
---|
| 167 | </para>
|
---|
| 168 |
|
---|
[f29d6ee] | 169 | <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
|
---|
[874f1e88] | 170 | <para role="optional">
|
---|
| 171 | <xref linkend="cdparanoia"/>,
|
---|
| 172 | <xref linkend="samba3"/>,
|
---|
| 173 | <ulink url="http://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
|
---|
[8f3e5fd0] | 174 | <ulink url="http://www.gnu.org/software/libcdio/">libcdio</ulink>,
|
---|
[5d1d9df] | 175 | <ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink>,
|
---|
[874f1e88] | 176 | <ulink url="http://rtmpdump.mplayerhq.hu/">RTMPDump</ulink>,
|
---|
| 177 | <ulink url="http://code.google.com/p/vstream-client/">TiVo vstream client</ulink> and
|
---|
| 178 | <ulink url="http://www.xmms.org/">XMMS</ulink>
|
---|
| 179 | <!-- Mplayer uses internal versions of these:
|
---|
| 180 | <xref linkend="libdvdread"/>,
|
---|
| 181 | <xref linkend="libdvdnav"/>,
|
---|
| 182 | <xref linkend="libdvdcss"/>,
|
---|
| 183 | -->
|
---|
| 184 | </para>
|
---|
[d7ecaa6] | 185 |
|
---|
[f29d6ee] | 186 | <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
|
---|
[e2e42c7] | 187 | <para role="optional">
|
---|
| 188 | <xref linkend="alsa"/>,
|
---|
| 189 | <xref linkend="arts"/>,
|
---|
| 190 | <xref linkend="esound"/>,
|
---|
| 191 | <xref linkend='pulseaudio'/>,
|
---|
[874f1e88] | 192 | <xref linkend="sdl"/>,
|
---|
| 193 | <ulink url="http://jackaudio.org/">JACK</ulink>,
|
---|
| 194 | <ulink url="http://openal.org/">OpenAL</ulink> and
|
---|
| 195 | <ulink url="http://www.radscan.com/nas.html">NAS</ulink>
|
---|
[e2e42c7] | 196 | </para>
|
---|
[d7ecaa6] | 197 |
|
---|
[f29d6ee] | 198 | <bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead>
|
---|
[874f1e88] | 199 | <para role="optional">
|
---|
| 200 | <xref linkend="aalib"/>,
|
---|
| 201 | <xref linkend="libpng"/>,
|
---|
| 202 | <xref linkend="libjpeg"/>,
|
---|
| 203 | <xref linkend="libmng"/>,
|
---|
[8f3e5fd0] | 204 | <xref linkend="giflib"/>,
|
---|
[874f1e88] | 205 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
[8f3e5fd0] | 206 | <ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
|
---|
[874f1e88] | 207 | <ulink url="http://www.svgalib.org/">SVGAlib</ulink> and
|
---|
| 208 | <ulink url="http://www.openjpeg.org/">OpenJPEG</ulink>
|
---|
| 209 | </para>
|
---|
[50d88079] | 210 |
|
---|
[f29d6ee] | 211 | <bridgehead renderas="sect4">Optional CODECs</bridgehead>
|
---|
[874f1e88] | 212 | <para role="optional">
|
---|
[8f3e5fd0] | 213 | <xref linkend="libmad"/>,
|
---|
[874f1e88] | 214 | <xref linkend="LZO"/>,
|
---|
| 215 | <xref linkend="speex"/>,
|
---|
[bf1b5bf9] | 216 | <xref linkend="libtheora"/>,
|
---|
[874f1e88] | 217 | <xref linkend="mpg123"/>,
|
---|
| 218 | <xref linkend="liba52"/>,
|
---|
| 219 | <xref linkend="faac"/>,
|
---|
| 220 | <xref linkend="faad2"/>,
|
---|
| 221 | <xref linkend="libdv"/>,
|
---|
| 222 | <xref linkend="xvid"/>,
|
---|
| 223 | <xref linkend="libvpx"/>,
|
---|
| 224 | <xref linkend="lame"/>,
|
---|
[8f3e5fd0] | 225 | <ulink url="ftp://ftp.videolan.org/pub/videolan/vlc/0.8.2/contrib/toolame-02m-beta8.tar.bz2">tooLAME</ulink>,
|
---|
| 226 | <ulink url="http://sourceforge.net/projects/twolame/">TwoLAME</ulink>,
|
---|
[874f1e88] | 227 | <ulink url="https://launchpad.net/libgsm">libgsm</ulink>,
|
---|
| 228 | <ulink url="http://www.videolan.org/developers/libdca.html">libdca</ulink>,
|
---|
| 229 | <ulink url="http://www.musepack.net/">libmpcdec</ulink>,
|
---|
| 230 | <ulink url="http://sourceforge.net/projects/opencore-amr/">OpenCore Adaptive Multi Rate</ulink>,
|
---|
| 231 | <ulink url="http://www.broadcom.com/support/crystal_hd/">CrystalHD</ulink>,
|
---|
| 232 | <ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>,
|
---|
| 233 | <ulink url="http://diracvideo.org/download/dirac-research/">Dirac</ulink>,
|
---|
| 234 | <ulink url="http://diracvideo.org/download/schroedinger/">Schroedinger</ulink>,
|
---|
| 235 | <ulink url="http://wiki.multimedia.cx/index.php?title=NUT">libnut</ulink>
|
---|
| 236 |
|
---|
| 237 | <!-- Internal <xref linkend="ffmpeg"/>, -->
|
---|
| 238 |
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <bridgehead renderas="sect4">Optional Miscellaneous Dependencies</bridgehead>
|
---|
| 242 | <para role="optional">
|
---|
| 243 | <xref linkend="fontconfig"/>,
|
---|
| 244 | <xref linkend="freetype2"/>,
|
---|
| 245 | <xref linkend="fribidi"/>,
|
---|
| 246 | <xref linkend="unrar"/>,
|
---|
| 247 | <xref linkend="gtk2"/> (required for the GUI),
|
---|
| 248 | <ulink url="http://cihar.com/software/enca/">Enca</ulink>,
|
---|
| 249 | <ulink url="http://www.ladspa.org/">LADSPA</ulink>,
|
---|
| 250 | <ulink url="http://sourceforge.net/projects/bs2b/">libbs2b</ulink>,
|
---|
| 251 | <ulink url="http://www.lirc.org/">LIRC</ulink> and
|
---|
| 252 | <ulink url="http://www.dolda2000.com/~fredrik/lirccd/">LIRC Client Daemon</ulink>
|
---|
| 253 | </para>
|
---|
| 254 |
|
---|
[0e2aa08] | 255 | <para condition="html" role="usernotes">User Notes:
|
---|
| 256 | <ulink url="&blfs-wiki;/mplayer"/></para>
|
---|
| 257 |
|
---|
[f29d6ee] | 258 | </sect2>
|
---|
| 259 |
|
---|
| 260 | <sect2 role="installation">
|
---|
| 261 | <title>Installation of MPlayer</title>
|
---|
| 262 |
|
---|
| 263 | <sect3>
|
---|
| 264 | <title>CODEC Installation (Optional)</title>
|
---|
| 265 |
|
---|
[874f1e88] | 266 | <para>If you downloaded the binary CODECs, extract them to
|
---|
| 267 | <filename class="directory">/usr/lib/mplayer/codecs</filename> using the
|
---|
| 268 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 269 | user (substitute and/or add different CODEC filenames, if necessary):</para>
|
---|
[f29d6ee] | 270 |
|
---|
| 271 | <screen role="root"><userinput>install -v -d -m755 /usr/lib/mplayer/codecs &&
|
---|
[d4dc95a] | 272 | tar -xvf ../&mplayer-codec; \
|
---|
[a242f2e1] | 273 | -C /usr/lib/mplayer/codecs --strip-components=1 &&
|
---|
[f29d6ee] | 274 | chown -v -R root:root /usr/lib/mplayer/codecs</userinput></screen>
|
---|
[0a35e881] | 275 |
|
---|
[79ccca0] | 276 | <para>If you installed any CODECs, ensure you add
|
---|
[874f1e88] | 277 | <option>--codecsdir=/usr/lib/mplayer/codecs</option>
|
---|
[f29d6ee] | 278 | to the <command>configure</command> script.</para>
|
---|
[0a35e881] | 279 |
|
---|
[f29d6ee] | 280 | </sect3>
|
---|
[0a35e881] | 281 |
|
---|
[874f1e88] | 282 | <!--
|
---|
[f29d6ee] | 283 | <sect3>
|
---|
| 284 | <title>Installing OSD and Subtitles Support (Optional)</title>
|
---|
| 285 |
|
---|
[79ccca0] | 286 | <para>To enable OSD (On Screen Display) and subtitles support, add
|
---|
[874f1e88] | 287 | <option>-enable-menu</option> to the <command>configure</command>
|
---|
[f7ae70f] | 288 | script. You'll also need to set up at least one font (see font
|
---|
| 289 | installation instructions a little later).</para>
|
---|
[f29d6ee] | 290 |
|
---|
| 291 | </sect3>
|
---|
[874f1e88] | 292 | -->
|
---|
[f29d6ee] | 293 | <sect3>
|
---|
| 294 | <title>Main MPlayer Installation</title>
|
---|
| 295 |
|
---|
| 296 | <note>
|
---|
| 297 | <para>The package maintainers recommend building without any
|
---|
| 298 | optimizations.</para>
|
---|
| 299 | </note>
|
---|
| 300 |
|
---|
[e05cd03f] | 301 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[68c8cba] | 302 | href="../../xincludes/X11R6_symlink.xml"/>
|
---|
| 303 |
|
---|
[79ccca0] | 304 | <para>You may wish to examine the output from
|
---|
| 305 | <command>./configure --help</command> to find out what additional
|
---|
| 306 | parameters to <command>configure</command> are needed to include
|
---|
[874f1e88] | 307 | the dependencies you have installed on your system.</para>
|
---|
[36ec89cb] | 308 |
|
---|
[79ccca0] | 309 | <para>Install <application>MPlayer</application> by running the following
|
---|
[f29d6ee] | 310 | commands:</para>
|
---|
[874f1e88] | 311 | <screen><userinput>./configure --prefix=/usr \
|
---|
[36ec89cb] | 312 | --confdir=/etc/mplayer \
|
---|
[874f1e88] | 313 | --enable-dynamic-plugins \
|
---|
| 314 | --enable-menu \
|
---|
| 315 | --enable-gui &&
|
---|
[f29d6ee] | 316 | make</userinput></screen>
|
---|
[ec2270f] | 317 |
|
---|
[f29d6ee] | 318 | <para>This package does not come with a test suite.</para>
|
---|
[ace94c34] | 319 |
|
---|
[f29d6ee] | 320 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ec2270f] | 321 |
|
---|
[874f1e88] | 322 | <screen role="root"><userinput>make install &&</userinput></screen>
|
---|
| 323 | <!--
|
---|
[9a9df1f8] | 324 | install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &&
|
---|
[36ec89cb] | 325 | cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen>
|
---|
[874f1e88] | 326 | -->
|
---|
[f29d6ee] | 327 | <para>You will need <filename>codecs.conf</filename> only if you want to
|
---|
| 328 | change its properties, as the main binary contains an internal copy of
|
---|
[f7ae70f] | 329 | it. Ensure any changes you make to <filename>codecs.conf</filename>
|
---|
| 330 | achieve the desired results, as incorrect entries in this file have been
|
---|
| 331 | known to cause errors and render the player unusable. If necessary,
|
---|
| 332 | create the file using the following command.</para>
|
---|
[01062dd] | 333 |
|
---|
[f29d6ee] | 334 | <screen role="root"><userinput>install -m644 etc/codecs.conf /etc/mplayer</userinput></screen>
|
---|
[01062dd] | 335 |
|
---|
[f29d6ee] | 336 | <para>You may also want to copy all the default configuration files to
|
---|
[f7ae70f] | 337 | <filename class='directory'>/etc/mplayer</filename> for future reference
|
---|
| 338 | or more customization ability.</para>
|
---|
[9aa1897] | 339 |
|
---|
[f29d6ee] | 340 | <screen role="root"><userinput>install -m644 etc/*.conf /etc/mplayer</userinput></screen>
|
---|
[9aa1897] | 341 |
|
---|
[874f1e88] | 342 | <!-- Is this needed?
|
---|
[46fe005] | 343 | <para><application>MPlayer</application> requires that the RTC run at a
|
---|
| 344 | frequency of 1024 Hz. Make this setting change at boot-time by adding
|
---|
| 345 | a line to <filename>/etc/sysctl.conf</filename>:</para>
|
---|
[874f1e88] | 346 |
|
---|
[46fe005] | 347 | <screen role="root"><userinput>echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf</userinput></screen>
|
---|
[874f1e88] | 348 | -->
|
---|
| 349 |
|
---|
[f29d6ee] | 350 | </sect3>
|
---|
[0a35e881] | 351 |
|
---|
[f29d6ee] | 352 | <sect3>
|
---|
[874f1e88] | 353 | <title>Skin Installation (Optional)</title>
|
---|
| 354 |
|
---|
| 355 | <para>To enable the GTK frontend of <application>MPlayer</application>,
|
---|
| 356 | you'll need to install at least one skin. Extract the desired skin and
|
---|
| 357 | create the default location (as the <systemitem class="username">root</systemitem>
|
---|
| 358 | user):</para>
|
---|
| 359 |
|
---|
| 360 | <screen role="root"><userinput>tar -xvf ../&mplayer-skin; \
|
---|
| 361 | -C /usr/share/mplayer/skins &&
|
---|
| 362 | chown -v -R root:root /usr/share/mplayer/skins/Blue &&
|
---|
| 363 | chmod -v 755 /usr/share/mplayer/skins/Blue{,/icons} &&
|
---|
| 364 | ln -sfv Blue /usr/share/mplayer/skins/default</userinput></screen>
|
---|
| 365 |
|
---|
| 366 | </sect3>
|
---|
| 367 |
|
---|
| 368 | <!--
|
---|
| 369 | <sect3>
|
---|
| 370 | <title>OSD and Subtitles Font Installation (Required if '-enable-menu' Was
|
---|
[f29d6ee] | 371 | Passed to 'configure')</title>
|
---|
[0a35e881] | 372 |
|
---|
[79ccca0] | 373 | <para>The recommended method to set up a font for
|
---|
| 374 | <application>MPlayer</application> is to link a TTF file to
|
---|
[874f1e88] | 375 | the <filename class="directory">/usr/share/mplayer</filename> directory.
|
---|
| 376 | For example:</para>
|
---|
[01062dd] | 377 |
|
---|
[874f1e88] | 378 | <screen><userinput>install -v -m750 -d /usr/share/mplayer &&
|
---|
[36ec89cb] | 379 | ln -v -sf /usr/share/fonts/X11-TTF/luxisri.ttf \
|
---|
[f29d6ee] | 380 | ~/.mplayer/subfont.ttf</userinput></screen>
|
---|
[01062dd] | 381 |
|
---|
[79ccca0] | 382 | <para>There are several other ways to set up a font package. To use a
|
---|
| 383 | prerendered <application>MPlayer</application> font package, extract
|
---|
[f29d6ee] | 384 | and link one of the font tarballs using the following commands:</para>
|
---|
[0a35e881] | 385 |
|
---|
[d4dc95a] | 386 | <screen role="root"><userinput>tar -xvf ../&mplayer-font;.tar.bz2 \
|
---|
[0a35e881] | 387 | -C /usr/share/mplayer/font &&
|
---|
[9a9df1f8] | 388 | chown -v -R root:root /usr/share/mplayer/font &&
|
---|
[0a35e881] | 389 | cd /usr/share/mplayer/font &&
|
---|
[0e2aa08] | 390 | ln -v -sf &mplayer-font;/font-arial-<replaceable><font size></replaceable>-iso-8859-1/* .</userinput></screen>
|
---|
[f29d6ee] | 391 |
|
---|
| 392 | <para>Available font sizes are 14, 18, 24 or 28.</para>
|
---|
[0a35e881] | 393 |
|
---|
[79ccca0] | 394 | <para>Additional information as well as additional methods to set up an
|
---|
| 395 | <application>MPlayer</application> font package can be found at <ulink
|
---|
[f29d6ee] | 396 | url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
|
---|
[0a35e881] | 397 |
|
---|
[f29d6ee] | 398 | </sect3>
|
---|
[874f1e88] | 399 | -->
|
---|
| 400 |
|
---|
[36ec89cb] | 401 | <!--
|
---|
[61e8418] | 402 | Following section should be removed after BLFS-6.2.
|
---|
| 403 | Current Udev creates persistent cd/dvd links automatically
|
---|
[f29d6ee] | 404 | <sect3>
|
---|
| 405 | <title>Installation for DVD Playback (Optional)</title>
|
---|
[01062dd] | 406 |
|
---|
[79ccca0] | 407 | <para>If you want DVD playback with <application>MPlayer</application>,
|
---|
[cbcc71f1] | 408 | you need to ensure a link exists between your DVD drive and
|
---|
[61e8418] | 409 | <filename>/dev/dvd</filename>. This process is described in the
|
---|
| 410 | <ulink url="&lfs-root;/chapter07/symlinks.html">Creating custom
|
---|
| 411 | symlinks to devices</ulink> section in LFS. The user must be part
|
---|
| 412 | of the <systemitem class="groupname">cdrom</systemitem> group in
|
---|
| 413 | order to use the device.</para>
|
---|
[f29d6ee] | 414 |
|
---|
| 415 | </sect3>
|
---|
[8f3e5fd0] | 416 | -->
|
---|
[874f1e88] | 417 | </sect2>
|
---|
| 418 |
|
---|
| 419 | <sect2 role="commands">
|
---|
| 420 | <title>Command Explanations</title>
|
---|
| 421 |
|
---|
| 422 | <para><parameter>--enable-gui</parameter>: This option is set to build GMPlayer,
|
---|
| 423 | a GTK frontend for MPlayer.</para>
|
---|
| 424 | <para><parameter>--enable-menu</parameter>: This option is set to enable the
|
---|
| 425 | on-screen-display.</para>
|
---|
| 426 | <para><parameter>--codecsdir=/usr/lib/mplayer/codecs</parameter>: Use this option
|
---|
| 427 | if you installed the binary codecs.</para>
|
---|
| 428 |
|
---|
[f29d6ee] | 429 | </sect2>
|
---|
| 430 |
|
---|
| 431 | <sect2 role="configuration">
|
---|
| 432 | <title>Configuring MPlayer</title>
|
---|
| 433 |
|
---|
| 434 | <sect3 id="mplayer-config">
|
---|
| 435 | <title>Config Files</title>
|
---|
| 436 |
|
---|
| 437 | <para><filename>/etc/mplayer/*</filename> and
|
---|
| 438 | <filename>~/.mplayer/*</filename></para>
|
---|
| 439 |
|
---|
| 440 | <indexterm zone="mplayer mplayer-config">
|
---|
| 441 | <primary sortas="e-AA.mplayer">~/.mplayer/*</primary>
|
---|
| 442 | </indexterm>
|
---|
| 443 |
|
---|
| 444 | <indexterm zone="mplayer mplayer-config">
|
---|
| 445 | <primary sortas="e-etc-mplayer">/etc/mplayer/*</primary>
|
---|
| 446 | </indexterm>
|
---|
| 447 |
|
---|
| 448 | </sect3>
|
---|
| 449 |
|
---|
| 450 | <sect3>
|
---|
| 451 | <title>Configuration Information</title>
|
---|
| 452 |
|
---|
[f7ae70f] | 453 | <para>Typically, there's no configuration required for the system-wide
|
---|
| 454 | files in <filename class='directory'>/etc/mplayer</filename> (in fact,
|
---|
| 455 | this directory is empty unless you copied the default files as mentioned
|
---|
| 456 | above). Configuration can be accomplished by choosing the configuration
|
---|
| 457 | button located on the <application>MPlayer</application> GUI. Any
|
---|
[874f1e88] | 458 | configuration changes made in the GUI will be saved in the user's
|
---|
[f29d6ee] | 459 | <filename class='directory'>~/.mplayer</filename> directory.</para>
|
---|
| 460 |
|
---|
| 461 | </sect3>
|
---|
| 462 |
|
---|
| 463 | </sect2>
|
---|
[874f1e88] | 464 |
|
---|
[f29d6ee] | 465 | <sect2 role="content">
|
---|
| 466 | <title>Contents</title>
|
---|
| 467 |
|
---|
| 468 | <segmentedlist>
|
---|
| 469 | <segtitle>Installed Programs</segtitle>
|
---|
| 470 | <segtitle>Installed Libraries</segtitle>
|
---|
| 471 | <segtitle>Installed Directories</segtitle>
|
---|
| 472 |
|
---|
| 473 | <seglistitem>
|
---|
[874f1e88] | 474 | <seg>gmplayer, mplayer and mencoder</seg>
|
---|
| 475 | <seg>none</seg>
|
---|
| 476 | <seg>/etc/mplayer, /usr/lib/mplayer, /usr/share/mplayer and
|
---|
| 477 | /usr/share/doc/mplayer</seg>
|
---|
[f29d6ee] | 478 | </seglistitem>
|
---|
| 479 | </segmentedlist>
|
---|
| 480 |
|
---|
| 481 | <variablelist>
|
---|
| 482 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 483 | <?dbfo list-presentation="list"?>
|
---|
| 484 | <?dbhtml list-presentation="table"?>
|
---|
| 485 |
|
---|
| 486 | <varlistentry id="gmplayer">
|
---|
| 487 | <term><command>gmplayer</command></term>
|
---|
| 488 | <listitem>
|
---|
[79ccca0] | 489 | <para>is a symlink to <command>mplayer</command> which
|
---|
[874f1e88] | 490 | brings up the GTK frontend of
|
---|
[f29d6ee] | 491 | <application>MPlayer</application>.</para>
|
---|
| 492 | <indexterm zone="mplayer gmplayer">
|
---|
| 493 | <primary sortas="b-gmplayer">gmplayer</primary>
|
---|
| 494 | </indexterm>
|
---|
| 495 | </listitem>
|
---|
| 496 | </varlistentry>
|
---|
| 497 |
|
---|
| 498 | <varlistentry id="mplayer-prog">
|
---|
| 499 | <term><command>mplayer</command></term>
|
---|
| 500 | <listitem>
|
---|
[874f1e88] | 501 | <para> is the main MPlayer video player.</para>
|
---|
[f29d6ee] | 502 |
|
---|
[874f1e88] | 503 | <!-- This is not the place for usage directions, right?
|
---|
| 504 | <para>Examples of usage:</para>
|
---|
[f29d6ee] | 505 |
|
---|
| 506 | <screen><userinput>mplayer -fs blfs.avi
|
---|
[1e901a7] | 507 | mplayer -vo fbdev -fb /dev/fb0 dvd://1 \
|
---|
| 508 | -aid 128 -sub en -framedrop
|
---|
[01062dd] | 509 | mplayer -fs vcd://1 # works both for VCDs and SVCDs
|
---|
[9a003fe1] | 510 | mplayer http://fredrik.hubbe.net/plugger/test.mpg</userinput></screen>
|
---|
[f29d6ee] | 511 |
|
---|
[f7ae70f] | 512 | <para>For further information, look at the very good documentation
|
---|
| 513 | included with the package in the source tree subdirectory
|
---|
[f29d6ee] | 514 | <filename class="directory">DOCS</filename> (also installed at
|
---|
[8f3e5fd0] | 515 | <filename class='directory'>/usr/share/doc/mplayer-&mplayer-version;</filename>).</para>
|
---|
[874f1e88] | 516 | -->
|
---|
[f29d6ee] | 517 | <indexterm zone="mplayer mplayer-prog">
|
---|
| 518 | <primary sortas="b-mplayer">mplayer</primary>
|
---|
| 519 | </indexterm>
|
---|
| 520 | </listitem>
|
---|
| 521 | </varlistentry>
|
---|
| 522 |
|
---|
| 523 | <varlistentry id="mencoder">
|
---|
| 524 | <term><command>mencoder</command></term>
|
---|
| 525 | <listitem>
|
---|
[874f1e88] | 526 | <para>is a powerful command line video decoding, encoding and
|
---|
| 527 | filtering tool.</para>
|
---|
| 528 | <!-- Usage directions
|
---|
| 529 | is used to encode any <application>MPlayer</application>
|
---|
[79ccca0] | 530 | playable movie to DivX4, <application>XviD</application> or any
|
---|
[f29d6ee] | 531 | CODEC in <filename class='libraryfile'>libavcodec</filename> with
|
---|
| 532 | PCM/MP3/VBRMP3 audio.</para>
|
---|
| 533 |
|
---|
| 534 | <para>Example:</para>
|
---|
| 535 |
|
---|
| 536 | <screen><userinput>rm frameno.avi
|
---|
[01062dd] | 537 | mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
|
---|
[f29d6ee] | 538 | -lameopts vbr=3 -o frameno.avi
|
---|
[01062dd] | 539 |
|
---|
[f29d6ee] | 540 | <literal># mencoder should output bitrates for average encodings
|
---|
[01062dd] | 541 | # now, choose one you like best! In the following lines,
|
---|
| 542 | # replace <bitrate> and <name.avi> with statements of your
|
---|
[f29d6ee] | 543 | # personal liking.</literal>
|
---|
[01062dd] | 544 |
|
---|
[f29d6ee] | 545 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 546 | -lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> \
|
---|
| 547 | -o <name.avi>
|
---|
[01062dd] | 548 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 549 | -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> \
|
---|
| 550 | -o <name.avi>
|
---|
[f29d6ee] | 551 | mencoder -forceidx <name.avi></userinput></screen>
|
---|
[874f1e88] | 552 | -->
|
---|
[f29d6ee] | 553 | <indexterm zone="mplayer mencoder">
|
---|
| 554 | <primary sortas="b-mencoder">mencoder</primary>
|
---|
| 555 | </indexterm>
|
---|
| 556 | </listitem>
|
---|
| 557 | </varlistentry>
|
---|
[874f1e88] | 558 | <!-- not installed anymore?
|
---|
[f29d6ee] | 559 | <varlistentry id="libdha">
|
---|
| 560 | <term><filename class='libraryfile'>libdha.so</filename></term>
|
---|
| 561 | <listitem>
|
---|
[79ccca0] | 562 | <para>contains functions used by the
|
---|
[f29d6ee] | 563 | <application>MPlayer</application> programs.</para>
|
---|
| 564 | <indexterm zone="mplayer libdha">
|
---|
| 565 | <primary sortas="c-libdha">libdha.so</primary>
|
---|
| 566 | </indexterm>
|
---|
| 567 | </listitem>
|
---|
| 568 | </varlistentry>
|
---|
[874f1e88] | 569 | -->
|
---|
| 570 | <!-- not installed anymore
|
---|
[f29d6ee] | 571 | <varlistentry id="libpostproc">
|
---|
| 572 | <term><filename class='libraryfile'>libpostproc.so</filename></term>
|
---|
| 573 | <listitem>
|
---|
[79ccca0] | 574 | <para>is a post-processing filter library used by the
|
---|
[f29d6ee] | 575 | <application>MPlayer</application> programs and other packages.</para>
|
---|
| 576 | <indexterm zone="mplayer libpostproc">
|
---|
| 577 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
| 578 | </indexterm>
|
---|
| 579 | </listitem>
|
---|
| 580 | </varlistentry>
|
---|
[874f1e88] | 581 | -->
|
---|
[f29d6ee] | 582 | </variablelist>
|
---|
| 583 |
|
---|
| 584 | </sect2>
|
---|
[f45b1953] | 585 |
|
---|
| 586 | </sect1>
|
---|