[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 |
|
---|
[01062dd] | 7 | <!ENTITY mplayer-download-http "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
| 8 | <!ENTITY mplayer-download-ftp "ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
|
---|
[9a9df1f8] | 9 | <!ENTITY mplayer-md5sum "5fadd6957d3aab989cd760ff38fb8fdf">
|
---|
| 10 | <!ENTITY mplayer-size "6.8 MB">
|
---|
| 11 | <!ENTITY mplayer-buildsize "97 MB (additional 22 MB for essential CODECs)">
|
---|
| 12 | <!ENTITY mplayer-time "2.0 SBU">
|
---|
[6c0c2a83] | 13 |
|
---|
[9a9df1f8] | 14 | <!ENTITY mplayer-codec "essential-20050412.tar.bz2">
|
---|
| 15 | <!ENTITY mplayer-codec-md5sum "5fe89bb095bdf9b4f9cda5479dbde906">
|
---|
| 16 | <!ENTITY mplayer-codec-size "9.3 MB">
|
---|
[6c0c2a83] | 17 |
|
---|
| 18 | <!ENTITY mplayer-skin "Blue-1.4.tar.bz2">
|
---|
[5d62564] | 19 | <!ENTITY mplayer-skin-md5sum "05dd8e4f11a715c9e5d2abf1cdeb907c">
|
---|
[6c0c2a83] | 20 | <!ENTITY mplayer-skin-size "221 KB">
|
---|
| 21 |
|
---|
| 22 | <!ENTITY mplayer-font "font-arial-iso-8859-1">
|
---|
| 23 | <!ENTITY mplayer-font-md5sum "1ecd31d17b51f16332b1fcc7da36b312">
|
---|
| 24 | <!ENTITY mplayer-font-size "234 KB">
|
---|
[01062dd] | 25 | ]>
|
---|
| 26 |
|
---|
[0b5a693] | 27 | <sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
|
---|
[f29d6ee] | 28 | <?dbhtml filename="mplayer.html"?>
|
---|
| 29 |
|
---|
| 30 | <sect1info>
|
---|
| 31 | <othername>$LastChangedBy$</othername>
|
---|
| 32 | <date>$Date$</date>
|
---|
| 33 | </sect1info>
|
---|
| 34 |
|
---|
| 35 | <title>MPlayer-&mplayer-version;</title>
|
---|
| 36 |
|
---|
| 37 | <indexterm zone="mplayer">
|
---|
| 38 | <primary sortas="a-MPlayer">MPlayer</primary>
|
---|
| 39 | </indexterm>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="package">
|
---|
| 42 | <title>Introduction to MPlayer</title>
|
---|
| 43 |
|
---|
[79ccca0] | 44 | <para>The <application>MPlayer</application> package contains an audio/video
|
---|
| 45 | player controlled via the command line or a graphical interface which is able
|
---|
| 46 | to play almost every popular audio and video file format and CODEC
|
---|
| 47 | (COder/DECoder, also COmpressor/DECompressor). With supported video
|
---|
| 48 | hardware and additional drivers, <application>MPlayer</application> can play
|
---|
[f29d6ee] | 49 | video files without an <application>X Window System</application> installed.</para>
|
---|
| 50 |
|
---|
[79ccca0] | 51 | <para>For <application>MPlayer</application> general information and
|
---|
| 52 | available features, including a full list of file formats, CODECs and
|
---|
| 53 | output devices supported by <application>MPlayer</application>, visit the
|
---|
[f29d6ee] | 54 | <ulink url="http://www1.mplayerhq.hu/homepage/design7/info.html">
|
---|
| 55 | <application>MPlayer</application> web site</ulink>.</para>
|
---|
| 56 |
|
---|
| 57 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 58 | <itemizedlist spacing="compact">
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Download MD5 sum: &mplayer-md5sum;</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>Download size: &mplayer-size;</para>
|
---|
| 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
| 72 | <para>Estimated disk space required: &mplayer-buildsize;</para>
|
---|
| 73 | </listitem>
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>Estimated build time: &mplayer-time;</para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[d7ecaa6] | 80 |
|
---|
[f29d6ee] | 81 | <itemizedlist spacing='compact'>
|
---|
| 82 | <title>Patches</title>
|
---|
| 83 | <listitem>
|
---|
[79ccca0] | 84 | <para>Required Patch (for fbdev driver support): <ulink
|
---|
[f29d6ee] | 85 | url="&patch-root;/MPlayer-&mplayer-version;-kernel_2.6-1.patch"/></para>
|
---|
| 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
| 89 | <itemizedlist spacing='compact'>
|
---|
| 90 | <title>CODECs</title>
|
---|
| 91 | <listitem>
|
---|
[79ccca0] | 92 | <para>Proprietary CODECs: <ulink
|
---|
[f29d6ee] | 93 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-codec;"/></para>
|
---|
| 94 | </listitem>
|
---|
| 95 | <listitem>
|
---|
| 96 | <para>Download MD5 sum: &mplayer-codec-md5sum;</para>
|
---|
| 97 | </listitem>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>Download size: &mplayer-codec-size;</para>
|
---|
| 100 | </listitem>
|
---|
[79ccca0] | 101 | <listitem><para>Additional CODECs: <ulink
|
---|
[f29d6ee] | 102 | url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
|
---|
| 103 | </listitem>
|
---|
| 104 | </itemizedlist>
|
---|
| 105 |
|
---|
| 106 | <itemizedlist spacing='compact'>
|
---|
| 107 | <title>Skins</title>
|
---|
| 108 | <listitem>
|
---|
[79ccca0] | 109 | <para>Default GUI skin: <ulink
|
---|
[f29d6ee] | 110 | url="http://www1.mplayerhq.hu/MPlayer/Skin/&mplayer-skin;"/></para>
|
---|
| 111 | </listitem>
|
---|
| 112 | <listitem>
|
---|
| 113 | <para>Download MD5 sum: &mplayer-skin-md5sum;</para>
|
---|
| 114 | </listitem>
|
---|
| 115 | <listitem>
|
---|
| 116 | <para>Download size: &mplayer-skin-size;</para>
|
---|
| 117 | </listitem>
|
---|
| 118 | <listitem>
|
---|
[79ccca0] | 119 | <para>Additional skins: <ulink
|
---|
[f29d6ee] | 120 | url="http://www1.mplayerhq.hu/MPlayer/Skin/"/></para>
|
---|
| 121 | </listitem>
|
---|
| 122 | </itemizedlist>
|
---|
| 123 |
|
---|
| 124 | <itemizedlist spacing='compact'>
|
---|
| 125 | <title>Fonts</title>
|
---|
| 126 | <listitem>
|
---|
[79ccca0] | 127 | <para>Prerendered fonts: <ulink
|
---|
[f29d6ee] | 128 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/&mplayer-font;.tar.bz2"/></para>
|
---|
| 129 | </listitem>
|
---|
| 130 | <listitem>
|
---|
| 131 | <para>Download MD5 sum: &mplayer-font-md5sum;</para>
|
---|
| 132 | </listitem>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>Download size: &mplayer-font-size;</para>
|
---|
| 135 | </listitem>
|
---|
| 136 | <listitem>
|
---|
[79ccca0] | 137 | <para>Additional fonts: <ulink
|
---|
[f29d6ee] | 138 | url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
|
---|
| 139 | </listitem>
|
---|
| 140 | </itemizedlist>
|
---|
| 141 |
|
---|
| 142 | <note>
|
---|
[79ccca0] | 143 | <para>The CODECs, skins and fonts are not required to
|
---|
[f29d6ee] | 144 | build and use <application>MPlayer</application>.</para>
|
---|
| 145 | </note>
|
---|
| 146 |
|
---|
| 147 | <bridgehead renderas="sect3">MPlayer Dependencies</bridgehead>
|
---|
[d7ecaa6] | 148 |
|
---|
[f29d6ee] | 149 | <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
|
---|
[79ccca0] | 150 | <para><xref linkend="cdparanoia"/>,
|
---|
| 151 | <xref linkend="libdv"/>,
|
---|
| 152 | <xref linkend="libdvdread"/>,
|
---|
| 153 | <xref linkend="samba3"/>,
|
---|
| 154 | <ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>,
|
---|
[d7ecaa6] | 155 | <ulink url="http://www.matroska.org/downloads/linux.html">libmatroska</ulink>
|
---|
[79ccca0] | 156 | (requires
|
---|
| 157 | <ulink url="http://dl.matroska.org/downloads/libebml/">libebml</ulink>),
|
---|
[d7ecaa6] | 158 | <ulink url="http://www.linuxtv.org/">DVB drivers</ulink>
|
---|
[f29d6ee] | 159 | and <ulink url="http://www.metzlerbros.org/dvb/">DVB</ulink></para>
|
---|
[d7ecaa6] | 160 |
|
---|
[f29d6ee] | 161 | <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
|
---|
[79ccca0] | 162 | <para><xref linkend="alsa"/>,
|
---|
| 163 | <xref linkend="arts"/>,
|
---|
| 164 | <xref linkend="esound"/>,
|
---|
| 165 | <xref linkend="nas"/>,
|
---|
| 166 | <xref linkend="sdl"/> (also used for video output),
|
---|
| 167 | <xref linkend="xmms"/>,
|
---|
| 168 | <ulink url="http://0pointer.de/lennart/projects/polypaudio/">Polypaudio</ulink>,
|
---|
| 169 | <ulink url="http://bio2jack.sourceforge.net/">bio2jack</ulink> (requires
|
---|
[f29d6ee] | 170 | <ulink url="http://jackit.sourceforge.net/">JACK</ulink>)</para>
|
---|
[d7ecaa6] | 171 |
|
---|
[f29d6ee] | 172 | <bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead>
|
---|
[79ccca0] | 173 | <para>X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
| 174 | <xref linkend="libpng"/>,
|
---|
| 175 | <xref linkend="libjpeg"/>,
|
---|
| 176 | <xref linkend="libungif"/> or <xref linkend="giflib"/>,
|
---|
| 177 | <xref linkend="GTK"/>,
|
---|
| 178 | <xref linkend="freetype2"/>,
|
---|
| 179 | <xref linkend="fontconfig"/>,
|
---|
| 180 | <xref linkend="aalib"/>,
|
---|
[b9d81c7f] | 181 | <xref linkend="fribidi"/>,
|
---|
[79ccca0] | 182 | <ulink url="http://www.directfb.org/">DirectFB</ulink>,
|
---|
| 183 | <ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
|
---|
| 184 | <ulink url="http://www.ggi-project.org/">GGI</ulink>,
|
---|
| 185 | <ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
|
---|
| 186 | <ulink url="http://www.ladspa.org/">LADSPA</ulink>,
|
---|
| 187 | <ulink url="http://dxr2.sourceforge.net/">Dxr2</ulink>,
|
---|
| 188 | <ulink url="http://dxr3.sourceforge.net/">libdxr3</ulink>,
|
---|
[b9d81c7f] | 189 | <ulink url="http://prdownloads.sourceforge.net/zapping/">MP1E</ulink> and
|
---|
[f29d6ee] | 190 | <ulink url="http://trific.ath.cx/software/enca/">Enca</ulink></para>
|
---|
[d7ecaa6] | 191 |
|
---|
[f29d6ee] | 192 | <bridgehead renderas="sect4">Optional CODECs</bridgehead>
|
---|
[79ccca0] | 193 | <para><xref linkend="libvorbis"/>,
|
---|
| 194 | <xref linkend="xvid"/>,
|
---|
| 195 | <xref linkend="LZO"/>,
|
---|
| 196 | <xref linkend="libmad"/>,
|
---|
| 197 | <xref linkend="lame"/>,
|
---|
| 198 | <xref linkend="libfame"/>,
|
---|
| 199 | <ulink url="http://www.theora.org/">Theora</ulink>,
|
---|
| 200 | <ulink url="http://www.xiph.org/ogg/vorbis/index.html">Tremor</ulink>,
|
---|
| 201 | <ulink url="http://sourceforge.net/projects/faac">FAAD2</ulink>,
|
---|
| 202 | <ulink url="http://www.divx.com/divx/linux/">DivX4Linux</ulink>,
|
---|
| 203 | <ulink url="http://sourceforge.net/projects/toolame">TooLAME</ulink>,
|
---|
[d7ecaa6] | 204 | <ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink>
|
---|
[f29d6ee] | 205 | and <ulink url="http://www.lirc.org/">LIRC</ulink></para>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | <sect2 role="installation">
|
---|
| 210 | <title>Installation of MPlayer</title>
|
---|
| 211 |
|
---|
| 212 | <sect3>
|
---|
| 213 | <title>CODEC Installation (Optional)</title>
|
---|
| 214 |
|
---|
[79ccca0] | 215 | <para>If you downloaded any proprietary CODECs (which can provide support
|
---|
| 216 | for additional audio and video formats such as Real, Indeo and QuickTime),
|
---|
[d7ecaa6] | 217 | extract them to <filename class="directory">/usr/lib/mplayer/codecs</filename>
|
---|
[79ccca0] | 218 | using the following commands as the <systemitem
|
---|
| 219 | class="username">root</systemitem> user (substitute and/or add different
|
---|
[f29d6ee] | 220 | CODEC filenames, if necessary):</para>
|
---|
| 221 |
|
---|
| 222 | <screen role="root"><userinput>install -v -d -m755 /usr/lib/mplayer/codecs &&
|
---|
[9a9df1f8] | 223 | tar -jvxf ../&mplayer-codec; \
|
---|
[a242f2e1] | 224 | -C /usr/lib/mplayer/codecs --strip-components=1 &&
|
---|
[f29d6ee] | 225 | chown -v -R root:root /usr/lib/mplayer/codecs</userinput></screen>
|
---|
[0a35e881] | 226 |
|
---|
[79ccca0] | 227 | <para>If you installed any CODECs, ensure you add
|
---|
[d7ecaa6] | 228 | <option>--with-codecsdir=/usr/lib/mplayer/codecs</option>
|
---|
[f29d6ee] | 229 | to the <command>configure</command> script.</para>
|
---|
[0a35e881] | 230 |
|
---|
[f29d6ee] | 231 | </sect3>
|
---|
[0a35e881] | 232 |
|
---|
[f29d6ee] | 233 | <sect3>
|
---|
| 234 | <title>GUI Installation (Optional)</title>
|
---|
[0a35e881] | 235 |
|
---|
[79ccca0] | 236 | <para>To enable building the GUI version of
|
---|
| 237 | <application>MPlayer</application> (requires <xref linkend="GTK"/>), add
|
---|
[d7ecaa6] | 238 | <option>--enable-gui</option> to the <command>configure</command>
|
---|
[79ccca0] | 239 | script. You'll also need to extract at least one skin. Extract the desired
|
---|
| 240 | skin and create the default location (as the <systemitem
|
---|
[f29d6ee] | 241 | class="username">root</systemitem> user):</para>
|
---|
| 242 |
|
---|
| 243 | <screen role="root"><userinput>install -v -d -m755 /usr/share/mplayer/Skin &&
|
---|
[9a9df1f8] | 244 | tar -jvxf ../&mplayer-skin; \
|
---|
[26f7934] | 245 | -C /usr/share/mplayer/Skin &&
|
---|
[9aa1897] | 246 | chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
|
---|
| 247 | chmod -v 0755 /usr/share/mplayer/Skin/Blue{,/icons} &&
|
---|
[f29d6ee] | 248 | ln -sfv Blue /usr/share/mplayer/Skin/default</userinput></screen>
|
---|
| 249 |
|
---|
| 250 | </sect3>
|
---|
| 251 |
|
---|
| 252 | <sect3>
|
---|
| 253 | <title>Installing OSD and Subtitles Support (Optional)</title>
|
---|
| 254 |
|
---|
[79ccca0] | 255 | <para>To enable OSD (On Screen Display) and subtitles support, add
|
---|
[d7ecaa6] | 256 | <option>--enable-menu</option> to the <command>configure</command>
|
---|
[79ccca0] | 257 | script. You'll also need to set up at least one font (see font installation
|
---|
[f29d6ee] | 258 | instructions a little later).</para>
|
---|
| 259 |
|
---|
| 260 | </sect3>
|
---|
| 261 |
|
---|
| 262 | <sect3>
|
---|
| 263 | <title>Main MPlayer Installation</title>
|
---|
| 264 |
|
---|
| 265 | <note>
|
---|
| 266 | <para>The package maintainers recommend building without any
|
---|
| 267 | optimizations.</para>
|
---|
| 268 | </note>
|
---|
| 269 |
|
---|
[79ccca0] | 270 | <para><application>MPlayer</application> can build a shared post-processing
|
---|
| 271 | library from the internal <application>FFmpeg</application> package which
|
---|
[d7ecaa6] | 272 | other packages can link to. This requires <application>MPlayer</application>
|
---|
[79ccca0] | 273 | to link dynamically to this library instead of the default statically linked method.
|
---|
[d7ecaa6] | 274 | If you desire to build the shared library, add <option>--enable-shared-pp</option>
|
---|
| 275 | and <option>--disable-fastmemcpy</option> to the <command>configure</command>
|
---|
[79ccca0] | 276 | script. The <option>--disable-fastmemcpy</option> parameter is required to
|
---|
| 277 | avoid <computeroutput>undefined reference</computeroutput> errors when other
|
---|
[f29d6ee] | 278 | packages link to the shared library.</para>
|
---|
| 279 |
|
---|
[79ccca0] | 280 | <para>You may wish to examine the output from
|
---|
| 281 | <command>./configure --help</command> to find out what additional
|
---|
| 282 | parameters to <command>configure</command> are needed to include
|
---|
[f29d6ee] | 283 | the dependencies you have installed on your system.</para>
|
---|
| 284 |
|
---|
[79ccca0] | 285 | <para>Install <application>MPlayer</application> by running the following
|
---|
[f29d6ee] | 286 | commands:</para>
|
---|
| 287 |
|
---|
| 288 | <screen><userinput>patch -Np1 -i ../MPlayer-&mplayer-version;-kernel_2.6-1.patch &&
|
---|
[0a35e881] | 289 | ./configure --prefix=/usr --confdir=/etc/mplayer \
|
---|
[26f7934] | 290 | --enable-largefiles &&
|
---|
[f29d6ee] | 291 | make</userinput></screen>
|
---|
[ec2270f] | 292 |
|
---|
[f29d6ee] | 293 | <para>This package does not come with a test suite.</para>
|
---|
[ace94c34] | 294 |
|
---|
[f29d6ee] | 295 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[ec2270f] | 296 |
|
---|
[f29d6ee] | 297 | <screen role="root"><userinput>make install &&
|
---|
[9a9df1f8] | 298 | install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &&
|
---|
[f29d6ee] | 299 | cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen>
|
---|
| 300 |
|
---|
[79ccca0] | 301 | <para>Passing parameters to <command>configure</command> may result
|
---|
[f29d6ee] | 302 | in the creation of <filename class='libraryfile'>libdha.so.1.0</filename>. If so,
|
---|
[79ccca0] | 303 | you may wish to create a symlink to this library in case other packages link
|
---|
| 304 | to <filename class='libraryfile'>libdha.so</filename>. Use the following
|
---|
| 305 | command as the <systemitem class="username">root</systemitem> user
|
---|
[f29d6ee] | 306 | to create the symlink:</para>
|
---|
[9aa1897] | 307 |
|
---|
[f29d6ee] | 308 | <screen role="root"><userinput>ln -v -s libdha.so.1.0 /usr/lib/libdha.so</userinput></screen>
|
---|
[9aa1897] | 309 |
|
---|
[f29d6ee] | 310 | <para>You will need <filename>codecs.conf</filename> only if you want to
|
---|
| 311 | change its properties, as the main binary contains an internal copy of
|
---|
[79ccca0] | 312 | it. Ensure any changes you make to <filename>codecs.conf</filename> achieve
|
---|
[f29d6ee] | 313 | the desired results, as incorrect entries in this file have been known to
|
---|
[79ccca0] | 314 | cause errors and render the player unusable. If necessary, create the file
|
---|
[f29d6ee] | 315 | using the following command.</para>
|
---|
[01062dd] | 316 |
|
---|
[f29d6ee] | 317 | <screen role="root"><userinput>install -m644 etc/codecs.conf /etc/mplayer</userinput></screen>
|
---|
[01062dd] | 318 |
|
---|
[f29d6ee] | 319 | <para>You may also want to copy all the default configuration files to
|
---|
[79ccca0] | 320 | <filename class='directory'>/etc/mplayer</filename> for future reference or
|
---|
[f29d6ee] | 321 | more customization ability.</para>
|
---|
[9aa1897] | 322 |
|
---|
[f29d6ee] | 323 | <screen role="root"><userinput>install -m644 etc/*.conf /etc/mplayer</userinput></screen>
|
---|
[9aa1897] | 324 |
|
---|
[46fe005] | 325 | <para><application>MPlayer</application> requires that the RTC run at a
|
---|
| 326 | frequency of 1024 Hz. Make this setting change at boot-time by adding
|
---|
| 327 | a line to <filename>/etc/sysctl.conf</filename>:</para>
|
---|
| 328 |
|
---|
| 329 | <screen role="root"><userinput>echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf</userinput></screen>
|
---|
| 330 |
|
---|
[f29d6ee] | 331 | </sect3>
|
---|
[0a35e881] | 332 |
|
---|
[f29d6ee] | 333 | <sect3>
|
---|
[79ccca0] | 334 | <title>OSD and Subtitles Font Installation (Required if '--enable-menu' Was
|
---|
[f29d6ee] | 335 | Passed to 'configure')</title>
|
---|
[0a35e881] | 336 |
|
---|
[79ccca0] | 337 | <para>The recommended method to set up a font for
|
---|
| 338 | <application>MPlayer</application> is to link a TTF file to
|
---|
| 339 | your <filename class="directory">~/.mplayer</filename> directory. A link
|
---|
| 340 | should be created in each user's home directory who may use
|
---|
[f29d6ee] | 341 | <application>MPlayer</application>. For example:</para>
|
---|
[01062dd] | 342 |
|
---|
[f29d6ee] | 343 | <screen><userinput>install -v -m750 -d ~/.mplayer &&
|
---|
[9a9df1f8] | 344 | ln -v -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf \
|
---|
[f29d6ee] | 345 | ~/.mplayer/subfont.ttf</userinput></screen>
|
---|
[01062dd] | 346 |
|
---|
[79ccca0] | 347 | <para>There are several other ways to set up a font package. To use a
|
---|
| 348 | prerendered <application>MPlayer</application> font package, extract
|
---|
[f29d6ee] | 349 | and link one of the font tarballs using the following commands:</para>
|
---|
[0a35e881] | 350 |
|
---|
[f29d6ee] | 351 | <screen role="root"><userinput>tar -jvxf ../&mplayer-font;.tar.bz2 \
|
---|
[0a35e881] | 352 | -C /usr/share/mplayer/font &&
|
---|
[9a9df1f8] | 353 | chown -v -R root:root /usr/share/mplayer/font &&
|
---|
[0a35e881] | 354 | cd /usr/share/mplayer/font &&
|
---|
[f29d6ee] | 355 | ln -v -sf &mplayer-font;/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</userinput></screen>
|
---|
| 356 |
|
---|
| 357 | <para>Available font sizes are 14, 18, 24 or 28.</para>
|
---|
[0a35e881] | 358 |
|
---|
[79ccca0] | 359 | <para>Additional information as well as additional methods to set up an
|
---|
| 360 | <application>MPlayer</application> font package can be found at <ulink
|
---|
[f29d6ee] | 361 | url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
|
---|
[0a35e881] | 362 |
|
---|
[f29d6ee] | 363 | </sect3>
|
---|
[01062dd] | 364 |
|
---|
[f29d6ee] | 365 | <sect3>
|
---|
| 366 | <title>Installation for DVD Playback (Optional)</title>
|
---|
[01062dd] | 367 |
|
---|
[79ccca0] | 368 | <para>If you want DVD playback with <application>MPlayer</application>,
|
---|
| 369 | you need to ensure a link exists from your DVD drive to
|
---|
| 370 | <filename>/dev/dvd</filename>. If necessary, create the link using the
|
---|
[f29d6ee] | 371 | following commands:</para>
|
---|
[01062dd] | 372 |
|
---|
[f29d6ee] | 373 | <screen role="root"><userinput>cat >> /etc/udev/rules.d/24-dvd.rules << "EOF"
|
---|
[79ccca0] | 374 | <literal># Create a /dev/dvd symlink
|
---|
[d7ecaa6] | 375 |
|
---|
[f29d6ee] | 376 | KERNEL="<replaceable>[dvd drive]</replaceable>", SYMLINK="dvd"</literal>
|
---|
[d7ecaa6] | 377 |
|
---|
[f29d6ee] | 378 | EOF
|
---|
| 379 | udevstart</userinput></screen>
|
---|
| 380 |
|
---|
| 381 | <para>Replace <replaceable>[dvd drive]</replaceable> with whatever
|
---|
| 382 | device is appropriate, for example <filename>hdc</filename>. If
|
---|
| 383 | you don't know which device to choose, type:</para>
|
---|
| 384 |
|
---|
| 385 | <screen><userinput>dmesg | grep DVD</userinput></screen>
|
---|
| 386 |
|
---|
| 387 | <para>It should result in an output like:</para>
|
---|
| 388 |
|
---|
| 389 | <screen><computeroutput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
|
---|
| 390 | ATAPI CD/DVD-ROM drive</computeroutput></screen>
|
---|
| 391 |
|
---|
| 392 | </sect3>
|
---|
| 393 |
|
---|
| 394 | </sect2>
|
---|
| 395 |
|
---|
| 396 | <sect2 role="configuration">
|
---|
| 397 | <title>Configuring MPlayer</title>
|
---|
| 398 |
|
---|
| 399 | <sect3 id="mplayer-config">
|
---|
| 400 | <title>Config Files</title>
|
---|
| 401 |
|
---|
| 402 | <para><filename>/etc/mplayer/*</filename> and
|
---|
| 403 | <filename>~/.mplayer/*</filename></para>
|
---|
| 404 |
|
---|
| 405 | <indexterm zone="mplayer mplayer-config">
|
---|
| 406 | <primary sortas="e-AA.mplayer">~/.mplayer/*</primary>
|
---|
| 407 | </indexterm>
|
---|
| 408 |
|
---|
| 409 | <indexterm zone="mplayer mplayer-config">
|
---|
| 410 | <primary sortas="e-etc-mplayer">/etc/mplayer/*</primary>
|
---|
| 411 | </indexterm>
|
---|
| 412 |
|
---|
| 413 | </sect3>
|
---|
| 414 |
|
---|
| 415 | <sect3>
|
---|
| 416 | <title>Configuration Information</title>
|
---|
| 417 |
|
---|
[79ccca0] | 418 | <para>Typically, there's no configuration required for the system-wide files
|
---|
| 419 | in <filename class='directory'>/etc/mplayer</filename> (in fact, this
|
---|
| 420 | directory is empty unless you copied the default files as mentioned above).
|
---|
| 421 | Configuration can be accomplished by choosing the configuration button located
|
---|
| 422 | on the <application>MPlayer</application> GUI. Any
|
---|
| 423 | configuration changes made here will be copied to the user's
|
---|
[f29d6ee] | 424 | <filename class='directory'>~/.mplayer</filename> directory.</para>
|
---|
| 425 |
|
---|
| 426 | </sect3>
|
---|
| 427 |
|
---|
| 428 | </sect2>
|
---|
| 429 |
|
---|
| 430 | <sect2 role="content">
|
---|
| 431 | <title>Contents</title>
|
---|
| 432 |
|
---|
| 433 | <segmentedlist>
|
---|
| 434 | <segtitle>Installed Programs</segtitle>
|
---|
| 435 | <segtitle>Installed Libraries</segtitle>
|
---|
| 436 | <segtitle>Installed Directories</segtitle>
|
---|
| 437 |
|
---|
| 438 | <seglistitem>
|
---|
| 439 | <seg>gmplayer, mplayer, and mencoder</seg>
|
---|
| 440 | <seg>libdha.so and optionally, libpostproc.so</seg>
|
---|
[79ccca0] | 441 | <seg>~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer,
|
---|
[f29d6ee] | 442 | /usr/share/mplayer, and /usr/share/doc/mplayer-&mplayer-version;</seg>
|
---|
| 443 | </seglistitem>
|
---|
| 444 | </segmentedlist>
|
---|
| 445 |
|
---|
| 446 | <variablelist>
|
---|
| 447 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 448 | <?dbfo list-presentation="list"?>
|
---|
| 449 | <?dbhtml list-presentation="table"?>
|
---|
| 450 |
|
---|
| 451 | <varlistentry id="gmplayer">
|
---|
| 452 | <term><command>gmplayer</command></term>
|
---|
| 453 | <listitem>
|
---|
[79ccca0] | 454 | <para>is a symlink to <command>mplayer</command> which
|
---|
| 455 | brings up the graphical user interface component of
|
---|
[f29d6ee] | 456 | <application>MPlayer</application>.</para>
|
---|
| 457 | <indexterm zone="mplayer gmplayer">
|
---|
| 458 | <primary sortas="b-gmplayer">gmplayer</primary>
|
---|
| 459 | </indexterm>
|
---|
| 460 | </listitem>
|
---|
| 461 | </varlistentry>
|
---|
| 462 |
|
---|
| 463 | <varlistentry id="mplayer-prog">
|
---|
| 464 | <term><command>mplayer</command></term>
|
---|
| 465 | <listitem>
|
---|
[79ccca0] | 466 | <para> manages the input formats, the CODECs and
|
---|
| 467 | the output formats to play video files, DVDs,
|
---|
| 468 | (S)VCDs or network streams containing audio and/or video
|
---|
[f29d6ee] | 469 | information on your system.</para>
|
---|
| 470 |
|
---|
| 471 | <para>Examples:</para>
|
---|
| 472 |
|
---|
| 473 | <screen><userinput>mplayer -fs blfs.avi
|
---|
[1e901a7] | 474 | mplayer -vo fbdev -fb /dev/fb0 dvd://1 \
|
---|
| 475 | -aid 128 -sub en -framedrop
|
---|
[01062dd] | 476 | mplayer -fs vcd://1 # works both for VCDs and SVCDs
|
---|
[1e901a7] | 477 | mplayer \
|
---|
| 478 | http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</userinput></screen>
|
---|
[f29d6ee] | 479 |
|
---|
[79ccca0] | 480 | <para>For further information, look at the very good documentation included
|
---|
| 481 | with the package in the source tree subdirectory
|
---|
[f29d6ee] | 482 | <filename class="directory">DOCS</filename> (also installed at
|
---|
| 483 | <filename class='directory'>/usr/share/doc/mplayer</filename>).</para>
|
---|
| 484 | <indexterm zone="mplayer mplayer-prog">
|
---|
| 485 | <primary sortas="b-mplayer">mplayer</primary>
|
---|
| 486 | </indexterm>
|
---|
| 487 | </listitem>
|
---|
| 488 | </varlistentry>
|
---|
| 489 |
|
---|
| 490 | <varlistentry id="mencoder">
|
---|
| 491 | <term><command>mencoder</command></term>
|
---|
| 492 | <listitem>
|
---|
[d7ecaa6] | 493 | <para>is used to encode any <application>MPlayer</application>
|
---|
[79ccca0] | 494 | playable movie to DivX4, <application>XviD</application> or any
|
---|
[f29d6ee] | 495 | CODEC in <filename class='libraryfile'>libavcodec</filename> with
|
---|
| 496 | PCM/MP3/VBRMP3 audio.</para>
|
---|
| 497 |
|
---|
| 498 | <para>Example:</para>
|
---|
| 499 |
|
---|
| 500 | <screen><userinput>rm frameno.avi
|
---|
[01062dd] | 501 | mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
|
---|
[f29d6ee] | 502 | -lameopts vbr=3 -o frameno.avi
|
---|
[01062dd] | 503 |
|
---|
[f29d6ee] | 504 | <literal># mencoder should output bitrates for average encodings
|
---|
[01062dd] | 505 | # now, choose one you like best! In the following lines,
|
---|
| 506 | # replace <bitrate> and <name.avi> with statements of your
|
---|
[f29d6ee] | 507 | # personal liking.</literal>
|
---|
[01062dd] | 508 |
|
---|
[f29d6ee] | 509 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 510 | -lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> \
|
---|
| 511 | -o <name.avi>
|
---|
[01062dd] | 512 | mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
|
---|
[1e901a7] | 513 | -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> \
|
---|
| 514 | -o <name.avi>
|
---|
[f29d6ee] | 515 | mencoder -forceidx <name.avi></userinput></screen>
|
---|
| 516 | <indexterm zone="mplayer mencoder">
|
---|
| 517 | <primary sortas="b-mencoder">mencoder</primary>
|
---|
| 518 | </indexterm>
|
---|
| 519 | </listitem>
|
---|
| 520 | </varlistentry>
|
---|
| 521 |
|
---|
| 522 | <varlistentry id="libdha">
|
---|
| 523 | <term><filename class='libraryfile'>libdha.so</filename></term>
|
---|
| 524 | <listitem>
|
---|
[79ccca0] | 525 | <para>contains functions used by the
|
---|
[f29d6ee] | 526 | <application>MPlayer</application> programs.</para>
|
---|
| 527 | <indexterm zone="mplayer libdha">
|
---|
| 528 | <primary sortas="c-libdha">libdha.so</primary>
|
---|
| 529 | </indexterm>
|
---|
| 530 | </listitem>
|
---|
| 531 | </varlistentry>
|
---|
| 532 |
|
---|
| 533 | <varlistentry id="libpostproc">
|
---|
| 534 | <term><filename class='libraryfile'>libpostproc.so</filename></term>
|
---|
| 535 | <listitem>
|
---|
[79ccca0] | 536 | <para>is a post-processing filter library used by the
|
---|
[f29d6ee] | 537 | <application>MPlayer</application> programs and other packages.</para>
|
---|
| 538 | <indexterm zone="mplayer libpostproc">
|
---|
| 539 | <primary sortas="c-libpostproc">libpostproc.so</primary>
|
---|
| 540 | </indexterm>
|
---|
| 541 | </listitem>
|
---|
| 542 | </varlistentry>
|
---|
| 543 |
|
---|
| 544 | </variablelist>
|
---|
| 545 |
|
---|
| 546 | </sect2>
|
---|
[f45b1953] | 547 |
|
---|
| 548 | </sect1>
|
---|