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