mplayer svn

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@9716 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Ragnar Thomsen 2012-03-15 23:46:54 +00:00
parent 7d1d69e153
commit 874f1e8833
4 changed files with 182 additions and 230 deletions

View File

@ -990,7 +990,7 @@ program you invoke. Development restarted Feb 12, so commented until a new rele
<!-- Chapter 41 --> <!-- Chapter 41 -->
<!ENTITY ffmpeg-version "0.10"> <!ENTITY ffmpeg-version "0.10">
<!ENTITY avifile-version "0.7.45"> <!ENTITY avifile-version "0.7.45">
<!ENTITY mplayer-version "1.0rc1"> <!ENTITY mplayer-version "svn_20120315">
<!ENTITY xine-ui-version "0.99.6"> <!ENTITY xine-ui-version "0.99.6">
<!ENTITY transcode-version "1.1.7"> <!ENTITY transcode-version "1.1.7">
<!ENTITY vlc-version "2.0.0"> <!ENTITY vlc-version "2.0.0">

View File

@ -44,6 +44,9 @@
<listitem> <listitem>
<para>March 15th, 2012</para> <para>March 15th, 2012</para>
<itemizedlist> <itemizedlist>
<listitem>
<para>[rthomsen] - Upgrade to MPlayer svn_20120315.</para>
</listitem>
<listitem> <listitem>
<para>[abenton] - Openssl 1.0.1.</para> <para>[abenton] - Openssl 1.0.1.</para>
</listitem> </listitem>

View File

@ -382,7 +382,7 @@ cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
try this variant : mmm, bizarrely, it accepts this but drops everything try this variant : mmm, bizarrely, it accepts this but drops everything
from the first hyphen, so that in longindex.html it looks just right (one from the first hyphen, so that in longindex.html it looks just right (one
library, two packages) --> library, two packages) -->
<varlistentry id="libpostproc-from-ffmpeg"> <varlistentry id="libpostproc">
<term><filename class="libraryfile">libpostproc.so</filename></term> <term><filename class="libraryfile">libpostproc.so</filename></term>
<listitem> <listitem>
<para>is the <application>FFmpeg</application> post processing <para>is the <application>FFmpeg</application> post processing

View File

@ -4,25 +4,20 @@
<!ENTITY % general-entities SYSTEM "../../general.ent"> <!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities; %general-entities;
<!ENTITY mplayer-download-http "http://www.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2"> <!ENTITY mplayer-download-http "http://www.linuxfromscratch.org/~andy/mplayer-15-03-12.tar.xz">
<!ENTITY mplayer-download-ftp "ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2"> <!ENTITY mplayer-download-ftp " ">
<!ENTITY mplayer-md5sum "18c05d88e22c3b815a43ca8d7152ccdc"> <!ENTITY mplayer-md5sum "775fcefab99004de09d0fae2c52dc06b">
<!ENTITY mplayer-size "8.3 MB"> <!ENTITY mplayer-size "9.9 MB">
<!ENTITY mplayer-buildsize "133-250 MB (additional 22 MB for essential CODECs)"> <!ENTITY mplayer-buildsize "137 MB">
<!ENTITY mplayer-time "1.2-2.5 SBU (depends on how FFmpeg is linked in)"> <!ENTITY mplayer-time "4.7 SBU">
<!ENTITY mplayer-codec "essential-20061022.tar.bz2"> <!ENTITY mplayer-codec "essential-20071007.tar.bz2">
<!ENTITY mplayer-codec-md5sum "abcf4a3abc16cf88c9df7e0a77e9b941"> <!ENTITY mplayer-codec-md5sum "4ea9c2dbd0945c83af1a8d0dd363993c">
<!ENTITY mplayer-codec-size "10.0 MB"> <!ENTITY mplayer-codec-size "9.5 MB">
<!ENTITY mplayer-alt-codec "all-20061022.tar.bz2">
<!ENTITY mplayer-skin "Blue-1.7.tar.bz2"> <!ENTITY mplayer-skin "Blue-1.8.tar.bz2">
<!ENTITY mplayer-skin-md5sum "e4e2020d11b681aac898103b3ba723c4"> <!ENTITY mplayer-skin-md5sum "340368f4e33f767d9df109990fb29c02">
<!ENTITY mplayer-skin-size "222 KB"> <!ENTITY mplayer-skin-size "218 KB">
<!ENTITY mplayer-font "font-arial-iso-8859-1">
<!ENTITY mplayer-font-md5sum "1ecd31d17b51f16332b1fcc7da36b312">
<!ENTITY mplayer-font-size "234 KB">
]> ]>
<sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;"> <sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
@ -42,19 +37,20 @@
<sect2 role="package"> <sect2 role="package">
<title>Introduction to MPlayer</title> <title>Introduction to MPlayer</title>
<para>The <application>MPlayer</application> package contains an <para>The <application>MPlayer</application> package contains a powerful
audio/video player controlled via the command line or graphical interface audio/video player controlled via the command line or graphical interface
which is able to play almost every popular audio and video file format and which is able to play almost every popular audio and video file format. With
CODEC (COder/DECoder, also COmpressor/DECompressor). With supported video supported video hardware and additional drivers, <application>MPlayer</application> can
hardware and additional drivers, <application>MPlayer</application> can
play video files without an <application>X Window System</application> play video files without an <application>X Window System</application>
installed.</para> installed.</para>
<para>For <application>MPlayer</application> general information and <para>For <application>MPlayer</application> general information and
available features, including a full list of file formats, CODECs and available features, including a full list of file formats, CODECs and
output devices supported by <application>MPlayer</application>, visit the output devices supported by <application>MPlayer</application>, visit the
<ulink url="http://www1.mplayerhq.hu/homepage/design7/info.html"> <ulink url="http://www.mplayerhq.hu/">
<application>MPlayer</application> web site</ulink>.</para> <application>MPlayer</application> web site</ulink>.</para>
&lfs70_checked;
<bridgehead renderas="sect3">Package Information</bridgehead> <bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact"> <itemizedlist spacing="compact">
@ -79,7 +75,7 @@
</itemizedlist> </itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead> <bridgehead renderas="sect3">Additional Downloads</bridgehead>
<!--
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<title>Patches</title> <title>Patches</title>
<listitem> <listitem>
@ -95,11 +91,15 @@
url="&patch-root;/MPlayer-&mplayer-version;-ext_ffmpeg-1.patch"/></para> url="&patch-root;/MPlayer-&mplayer-version;-ext_ffmpeg-1.patch"/></para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
-->
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<title>CODECs</title> <title>CODECs</title>
<para>Although MPlayer has built-in support for playing most popular video
and audio formats, packages with proprietary binary CODECs that enable support
for playing some rare formats are available. Most people don't need the binary
CODECs.</para>
<listitem> <listitem>
<para>Proprietary CODECs: <ulink <para>Essential binary CODECs: <ulink
url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-codec;"/></para> url="http://www.mplayerhq.hu/MPlayer/releases/codecs/&mplayer-codec;"/></para>
</listitem> </listitem>
<listitem> <listitem>
@ -108,6 +108,7 @@
<listitem> <listitem>
<para>Download size: &mplayer-codec-size;</para> <para>Download size: &mplayer-codec-size;</para>
</listitem> </listitem>
<!--
<listitem> <listitem>
<para>Alternate CODECs (provides additional functionality and is a <para>Alternate CODECs (provides additional functionality and is a
larger file): <ulink larger file): <ulink
@ -116,8 +117,9 @@
<listitem><para>Additional CODECs: <ulink <listitem><para>Additional CODECs: <ulink
url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para> url="http://www.mplayerhq.hu/MPlayer/releases/codecs/"/></para>
</listitem> </listitem>
-->
</itemizedlist> </itemizedlist>
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<title>Skins</title> <title>Skins</title>
<listitem> <listitem>
@ -135,7 +137,7 @@
url="http://www1.mplayerhq.hu/MPlayer/skins/"/></para> url="http://www1.mplayerhq.hu/MPlayer/skins/"/></para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<!--
<itemizedlist spacing='compact'> <itemizedlist spacing='compact'>
<title>Fonts</title> <title>Fonts</title>
<listitem> <listitem>
@ -153,26 +155,33 @@
url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para> url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/"/></para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
-->
<para>The CODECs, skins and fonts are not required to <para>The CODECs and skins are not required to
build and use <application>MPlayer</application>.</para> build and use <application>MPlayer</application>.</para>
<bridgehead renderas="sect3">MPlayer Dependencies</bridgehead> <bridgehead renderas="sect3">MPlayer Dependencies</bridgehead>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="x-window-system"/>
</para>
<bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead> <bridgehead renderas="sect4">Optional Input Drivers and Libraries</bridgehead>
<para role="optional"><xref linkend="cdparanoia"/>, <para role="optional">
<ulink url="http://www.metzlerbros.org/dvb/">DVB</ulink>, <xref linkend="cdparanoia"/>,
<ulink url="http://www.linuxtv.org/">DVB drivers</ulink>, <xref linkend="samba3"/>,
<ulink url="http://www.videolan.org/developers/libbluray.html">libbluray</ulink>,
<ulink url="http://www.gnu.org/software/libcdio/">libcdio</ulink>, <ulink url="http://www.gnu.org/software/libcdio/">libcdio</ulink>,
<xref linkend="libdv"/>,
<xref linkend="libdvdread"/>,
<ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink>, <ulink url="http://www.live555.com/mplayer/">LIVE555 Streaming Media</ulink>,
<xref linkend="samba3"/>, and <ulink url="http://rtmpdump.mplayerhq.hu/">RTMPDump</ulink>,
<ulink url="http://armory.nicewarrior.org/projects/vstream-client/">TiVo vstream client</ulink></para> <ulink url="http://code.google.com/p/vstream-client/">TiVo vstream client</ulink> and
<!-- Disabling for now as only internal Matroska support is available <ulink url="http://www.xmms.org/">XMMS</ulink>
<ulink url="http://www.matroska.org/downloads/linux.html">libmatroska</ulink> <!-- Mplayer uses internal versions of these:
(requires <xref linkend="libdvdread"/>,
<ulink url="http://dl.matroska.org/downloads/libebml/">libebml</ulink>), --> <xref linkend="libdvdnav"/>,
<xref linkend="libdvdcss"/>,
-->
</para>
<bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead> <bridgehead renderas="sect4">Optional Audio Output Drivers and Libraries</bridgehead>
<para role="optional"> <para role="optional">
@ -180,108 +189,69 @@
<xref linkend="arts"/>, <xref linkend="arts"/>,
<xref linkend="esound"/>, <xref linkend="esound"/>,
<xref linkend='pulseaudio'/>, <xref linkend='pulseaudio'/>,
<xref linkend="sdl"/> (also used for video output), <xref linkend="sdl"/>,
<ulink url="http://jackit.sourceforge.net/">JACK</ulink>, <ulink url="http://jackaudio.org/">JACK</ulink>,
<ulink url="http://www.ladspa.org/">LADSPA</ulink>, and <ulink url="http://openal.org/">OpenAL</ulink> and
<ulink url="http://openal.org/">OpenAL</ulink> <ulink url="http://www.radscan.com/nas.html">NAS</ulink>
<!--<xref linkend="nas"/>,-->
<!--<xref linkend="xmms"/>-->
</para> </para>
<bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead> <bridgehead renderas="sect4">Optional Video Output Drivers and Libraries</bridgehead>
<para role="optional"><xref linkend="aalib"/>, <para role="optional">
<ulink url="http://www.directfb.org/">DirectFB</ulink>, <xref linkend="aalib"/>,
<ulink url="http://trific.ath.cx/software/enca/">Enca</ulink>,
<xref linkend="fontconfig"/>,
<xref linkend="freetype2"/>,
<xref linkend="fribidi"/>,
<ulink url="http://www.ggi-project.org/">GGI</ulink>,
<xref linkend="giflib"/>,
<xref linkend="gtk2"/> <!-- or
<xref linkend="GTK"/>, -->
<ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
<xref linkend="libjpeg"/>,
<xref linkend="libpng"/>, <xref linkend="libpng"/>,
<ulink url="http://maemo.org/">maemo</ulink>, <xref linkend="libjpeg"/>,
<ulink url="http://vidix.sourceforge.net/">VIDIX</ulink>, and <xref linkend="libmng"/>,
<xref linkend="x-window-system"/></para> <xref linkend="giflib"/>,
<ulink url="http://www.directfb.org/">DirectFB</ulink>,
<ulink url="http://sam.zoy.org/projects/libcaca/">libcaca</ulink>,
<ulink url="http://www.svgalib.org/">SVGAlib</ulink> and
<ulink url="http://www.openjpeg.org/">OpenJPEG</ulink>
</para>
<bridgehead renderas="sect4">Optional CODECs</bridgehead> <bridgehead renderas="sect4">Optional CODECs</bridgehead>
<para role="optional"><ulink <para role="optional">
url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26104-700.zip">AMR
narrowband (floating point)</ulink> or
<ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26073-700.zip">AMR
naarrowband (fixed point)</ulink>,
<ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-7/26_series/26204-710.zip">
AMR wideband</ulink>,
<!-- Dead link <ulink url="http://www.divx.com/divx/linux/">DivX</ulink>, i-->
<xref linkend="faac"/>,
<xref linkend="faad2"/> (must disable the internal version),
<xref linkend="ffmpeg"/>,
<xref linkend="lame"/>,
<ulink url="http://www.videolan.org/developers/libdca.html">libdca</ulink>,
<xref linkend="libfame"/>,
<xref linkend="libmad"/>, <xref linkend="libmad"/>,
<ulink url="http://www.musepack.net/">libmpcdec</ulink>, <xref linkend="LZO"/>,
<ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink> (SVN checkout), <xref linkend="speex"/>,
<xref linkend="libvorbis"/>,
<ulink url="http://www.lirc.org/">LIRC</ulink>,
<ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink>,
<xref linkend="LZO"/> (requires
<ulink url="http://www.oberhumer.com/opensource/lzo/download/LZO-v1/lzo-1.08.tar.gz">Version 1</ulink>),
<ulink url="http://www.svgalib.org/">SVGAlib</ulink>,
<xref linkend="libtheora"/>, <xref linkend="libtheora"/>,
<xref linkend="mpg123"/>,
<xref linkend="liba52"/>,
<xref linkend="faac"/>,
<xref linkend="faad2"/>,
<xref linkend="libdv"/>,
<xref linkend="xvid"/>,
<xref linkend="libvpx"/>,
<xref linkend="lame"/>,
<ulink url="ftp://ftp.videolan.org/pub/videolan/vlc/0.8.2/contrib/toolame-02m-beta8.tar.bz2">tooLAME</ulink>, <ulink url="ftp://ftp.videolan.org/pub/videolan/vlc/0.8.2/contrib/toolame-02m-beta8.tar.bz2">tooLAME</ulink>,
<ulink url="http://sourceforge.net/projects/twolame/">TwoLAME</ulink>, <ulink url="http://sourceforge.net/projects/twolame/">TwoLAME</ulink>,
<ulink url="http://www.xiph.org/vorbis/">Tremor</ulink> (requires <ulink url="https://launchpad.net/libgsm">libgsm</ulink>,
<xref linkend="libvorbis"/> and you must disable the internal version), <ulink url="http://www.videolan.org/developers/libdca.html">libdca</ulink>,
<ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>, and <ulink url="http://www.musepack.net/">libmpcdec</ulink>,
<xref linkend="xvid"/></para> <ulink url="http://sourceforge.net/projects/opencore-amr/">OpenCore Adaptive Multi Rate</ulink>,
<ulink url="http://www.broadcom.com/support/crystal_hd/">CrystalHD</ulink>,
<bridgehead renderas="sect4">Optional Hardware Specific Options</bridgehead> <ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>,
<para>There is hardware specific packages (or vendor supplied software) you <ulink url="http://diracvideo.org/download/dirac-research/">Dirac</ulink>,
can install to improve the performance of your video card when using <ulink url="http://diracvideo.org/download/schroedinger/">Schroedinger</ulink>,
<application>MPlayer</application>. Some of the packages and/or vendor <ulink url="http://wiki.multimedia.cx/index.php?title=NUT">libnut</ulink>
supplied software and the <application>MPlayer</application> specific
driver created if it is found is shown here.</para> <!-- Internal <xref linkend="ffmpeg"/>, -->
<itemizedlist spacing='compact'> </para>
<listitem>
<para>mga: Matrox G200/G400/G450/G550 hardware YUV overlay via the <bridgehead renderas="sect4">Optional Miscellaneous Dependencies</bridgehead>
mga_vid device</para> <para role="optional">
</listitem> <xref linkend="fontconfig"/>,
<listitem> <xref linkend="freetype2"/>,
<para>xmga: Matrox G200/G400/G450/G550 overlay (mga_vid) in X11 <xref linkend="fribidi"/>,
window</para> <xref linkend="unrar"/>,
</listitem> <xref linkend="gtk2"/> (required for the GUI),
<listitem> <ulink url="http://cihar.com/software/enca/">Enca</ulink>,
<para>syncfb: Matrox G400 YUV support on framebuffer</para> <ulink url="http://www.ladspa.org/">LADSPA</ulink>,
</listitem> <ulink url="http://sourceforge.net/projects/bs2b/">libbs2b</ulink>,
<listitem> <ulink url="http://www.lirc.org/">LIRC</ulink> and
<para>3dfx: Voodoo 3/Banshee hardware YUV support (/dev/3dfx)</para> <ulink url="http://www.dolda2000.com/~fredrik/lirccd/">LIRC Client Daemon</ulink>
</listitem> </para>
<listitem>
<para>tdfxfb: Voodoo 3/Banshee hardware YUV support on tdfx
framebuffer</para>
</listitem>
<listitem>
<para>mpegpes: support for Siemens DVB hardware MPEG-1/2 decoder boards
(or MPEG-PES file output)</para>
</listitem>
<listitem>
<para>dxr2: support for DXR2 hardware MPEG-1/2 decoder boards
<ulink url="http://dxr2.sourceforge.net/">Dxr2</ulink></para>
</listitem>
<listitem>
<para>dxr3: support for DXR3/Hollywood+ hardware MPEG-1/2 decoder
boards <ulink
url="http://dxr3.sourceforge.net/">libdxr3</ulink></para>
</listitem>
<listitem>
<para>zr: support for Zoran360[56]7 based hardware MJPEG cards</para>
</listitem>
</itemizedlist>
<para condition="html" role="usernotes">User Notes: <para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/mplayer"/></para> <ulink url="&blfs-wiki;/mplayer"/></para>
@ -293,12 +263,10 @@
<sect3> <sect3>
<title>CODEC Installation (Optional)</title> <title>CODEC Installation (Optional)</title>
<para>If you downloaded any proprietary CODECs (which can provide support <para>If you downloaded the binary CODECs, extract them to
for additional audio and video formats such as Real, Indeo and QuickTime), <filename class="directory">/usr/lib/mplayer/codecs</filename> using the
extract them to <filename class="directory">/usr/lib/mplayer/codecs</filename> following commands as the <systemitem class="username">root</systemitem>
using the following commands as the <systemitem user (substitute and/or add different CODEC filenames, if necessary):</para>
class="username">root</systemitem> user (substitute and/or add different
CODEC filenames, if necessary):</para>
<screen role="root"><userinput>install -v -d -m755 /usr/lib/mplayer/codecs &amp;&amp; <screen role="root"><userinput>install -v -d -m755 /usr/lib/mplayer/codecs &amp;&amp;
tar -xvf ../&mplayer-codec; \ tar -xvf ../&mplayer-codec; \
@ -306,40 +274,22 @@ tar -xvf ../&mplayer-codec; \
chown -v -R root:root /usr/lib/mplayer/codecs</userinput></screen> chown -v -R root:root /usr/lib/mplayer/codecs</userinput></screen>
<para>If you installed any CODECs, ensure you add <para>If you installed any CODECs, ensure you add
<option>--with-codecsdir=/usr/lib/mplayer/codecs</option> <option>--codecsdir=/usr/lib/mplayer/codecs</option>
to the <command>configure</command> script.</para> to the <command>configure</command> script.</para>
</sect3> </sect3>
<sect3> <!--
<title>GUI Installation (Optional)</title>
<para>To enable building the GUI version of
<application>MPlayer</application> (requires <xref linkend="gtk2"/><!-- or
<xref linkend="GTK"/>-->), add <option>--enable-gui</option> to the
<command>configure</command> script. You'll also need to extract at least
one skin. Extract the desired skin and create the default location (as
the <systemitem class="username">root</systemitem> user):</para>
<screen role="root"><userinput>install -v -d -m755 /usr/share/mplayer/Skin &amp;&amp;
tar -xvf ../&mplayer-skin; \
-C /usr/share/mplayer/Skin &amp;&amp;
chown -v -R root:root /usr/share/mplayer/Skin/Blue &amp;&amp;
chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &amp;&amp;
ln -sfv Blue /usr/share/mplayer/Skin/default</userinput></screen>
</sect3>
<sect3> <sect3>
<title>Installing OSD and Subtitles Support (Optional)</title> <title>Installing OSD and Subtitles Support (Optional)</title>
<para>To enable OSD (On Screen Display) and subtitles support, add <para>To enable OSD (On Screen Display) and subtitles support, add
<option>--enable-menu</option> to the <command>configure</command> <option>-enable-menu</option> to the <command>configure</command>
script. You'll also need to set up at least one font (see font script. You'll also need to set up at least one font (see font
installation instructions a little later).</para> installation instructions a little later).</para>
</sect3> </sect3>
-->
<sect3> <sect3>
<title>Main MPlayer Installation</title> <title>Main MPlayer Installation</title>
@ -351,63 +301,29 @@ ln -sfv Blue /usr/share/mplayer/Skin/default</userinput></screen>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/X11R6_symlink.xml"/> href="../../xincludes/X11R6_symlink.xml"/>
<para><application>MPlayer</application> can build a shared
post-processing library from the internal
<application>FFmpeg</application> package which
other packages can link to. This requires
<application>MPlayer</application>
to link dynamically to this library instead of the default statically
linked method. If you desire to build the shared library, add
<option>--enable-shared-pp</option> to the <command>configure</command>
script. Note that the <application>FFmpeg</application> package can also
build this library (which <application>MPlayer</application> can link to
instead of building it), ensure you don't overwrite an existing one.</para>
<para>You may wish to examine the output from <para>You may wish to examine the output from
<command>./configure --help</command> to find out what additional <command>./configure --help</command> to find out what additional
parameters to <command>configure</command> are needed to include parameters to <command>configure</command> are needed to include
the dependencies you have installed on your system. To link in existing the dependencies you have installed on your system.</para>
<application>FFmpeg</application> libraries (and
<application>MPlayer</application> won't have to build them), you must
pass a total of nine additional options to the
<command>configure</command> script. Four to disable building the static
<application>FFmpeg</application> libraries, four to enable using the
system-installed shared libraries and
<option>--with-extraincdir=/usr/include/ffmpeg</option> so the build can
locate the <application>FFmpeg</application> interface headers.</para>
<para>Install <application>MPlayer</application> by running the following <para>Install <application>MPlayer</application> by running the following
commands:</para> commands:</para>
<screen><userinput>./configure --prefix=/usr \
<screen><userinput>patch -Np0 -i ../asmrules_fix_20061231.diff &amp;&amp;
patch -Np0 -i ../cddb_fix_20070605.diff &amp;&amp;
patch -Np1 -i ../MPlayer-&mplayer-version;-ext_ffmpeg-1.patch &amp;&amp;
./configure --prefix=/usr \
--confdir=/etc/mplayer \ --confdir=/etc/mplayer \
--enable-largefiles \ --enable-dynamic-plugins \
--enable-dynamic-plugins &amp;&amp; --enable-menu \
--enable-gui &amp;&amp;
make</userinput></screen> make</userinput></screen>
<para>This package does not come with a test suite.</para> <para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para> <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install &amp;&amp; <screen role="root"><userinput>make install &amp;&amp;</userinput></screen>
<!--
install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &amp;&amp; install -v -m755 -d /usr/share/doc/mplayer-&mplayer-version; &amp;&amp;
cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen> cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen>
-->
<para>Passing certain parameters to <command>configure</command> may
result in the creation of
<filename class='libraryfile'>libdha.so.1.0</filename>. If so, you may
wish to create a symlink to this library in case other packages link to
<filename class='libraryfile'>libdha.so</filename>. Use the following
command as the <systemitem class="username">root</systemitem> user to
create the symbolic link:</para>
<screen role="root"><userinput>ln -v -s libdha.so.1.0 /usr/lib/libdha.so</userinput></screen>
<para>You will need <filename>codecs.conf</filename> only if you want to <para>You will need <filename>codecs.conf</filename> only if you want to
change its properties, as the main binary contains an internal copy of change its properties, as the main binary contains an internal copy of
it. Ensure any changes you make to <filename>codecs.conf</filename> it. Ensure any changes you make to <filename>codecs.conf</filename>
@ -423,25 +339,43 @@ cp -v -R DOCS/* /usr/share/doc/mplayer-&mplayer-version;</userinput></screen
<screen role="root"><userinput>install -m644 etc/*.conf /etc/mplayer</userinput></screen> <screen role="root"><userinput>install -m644 etc/*.conf /etc/mplayer</userinput></screen>
<!-- Is this needed?
<para><application>MPlayer</application> requires that the RTC run at a <para><application>MPlayer</application> requires that the RTC run at a
frequency of 1024 Hz. Make this setting change at boot-time by adding frequency of 1024 Hz. Make this setting change at boot-time by adding
a line to <filename>/etc/sysctl.conf</filename>:</para> a line to <filename>/etc/sysctl.conf</filename>:</para>
<screen role="root"><userinput>echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf</userinput></screen> <screen role="root"><userinput>echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf</userinput></screen>
-->
</sect3> </sect3>
<sect3> <sect3>
<title>OSD and Subtitles Font Installation (Required if '--enable-menu' Was <title>Skin Installation (Optional)</title>
<para>To enable the GTK frontend of <application>MPlayer</application>,
you'll need to install at least one skin. Extract the desired skin and
create the default location (as the <systemitem class="username">root</systemitem>
user):</para>
<screen role="root"><userinput>tar -xvf ../&mplayer-skin; \
-C /usr/share/mplayer/skins &amp;&amp;
chown -v -R root:root /usr/share/mplayer/skins/Blue &amp;&amp;
chmod -v 755 /usr/share/mplayer/skins/Blue{,/icons} &amp;&amp;
ln -sfv Blue /usr/share/mplayer/skins/default</userinput></screen>
</sect3>
<!--
<sect3>
<title>OSD and Subtitles Font Installation (Required if '-enable-menu' Was
Passed to 'configure')</title> Passed to 'configure')</title>
<para>The recommended method to set up a font for <para>The recommended method to set up a font for
<application>MPlayer</application> is to link a TTF file to <application>MPlayer</application> is to link a TTF file to
your <filename class="directory">~/.mplayer</filename> directory. A link the <filename class="directory">/usr/share/mplayer</filename> directory.
should be created in each user's home directory who may use For example:</para>
<application>MPlayer</application>. For example:</para>
<screen><userinput>install -v -m750 -d ~/.mplayer &amp;&amp; <screen><userinput>install -v -m750 -d /usr/share/mplayer &amp;&amp;
ln -v -sf /usr/share/fonts/X11-TTF/luxisri.ttf \ ln -v -sf /usr/share/fonts/X11-TTF/luxisri.ttf \
~/.mplayer/subfont.ttf</userinput></screen> ~/.mplayer/subfont.ttf</userinput></screen>
@ -462,7 +396,8 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para> url="http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install"/>.</para>
</sect3> </sect3>
-->
<!-- <!--
Following section should be removed after BLFS-6.2. Following section should be removed after BLFS-6.2.
Current Udev creates persistent cd/dvd links automatically Current Udev creates persistent cd/dvd links automatically
@ -479,7 +414,18 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
</sect3> </sect3>
--> -->
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>--enable-gui</parameter>: This option is set to build GMPlayer,
a GTK frontend for MPlayer.</para>
<para><parameter>--enable-menu</parameter>: This option is set to enable the
on-screen-display.</para>
<para><parameter>--codecsdir=/usr/lib/mplayer/codecs</parameter>: Use this option
if you installed the binary codecs.</para>
</sect2> </sect2>
<sect2 role="configuration"> <sect2 role="configuration">
@ -509,13 +455,13 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
this directory is empty unless you copied the default files as mentioned this directory is empty unless you copied the default files as mentioned
above). Configuration can be accomplished by choosing the configuration above). Configuration can be accomplished by choosing the configuration
button located on the <application>MPlayer</application> GUI. Any button located on the <application>MPlayer</application> GUI. Any
configuration changes made here will be copied to the user's configuration changes made in the GUI will be saved in the user's
<filename class='directory'>~/.mplayer</filename> directory.</para> <filename class='directory'>~/.mplayer</filename> directory.</para>
</sect3> </sect3>
</sect2> </sect2>
<sect2 role="content"> <sect2 role="content">
<title>Contents</title> <title>Contents</title>
@ -525,10 +471,10 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
<segtitle>Installed Directories</segtitle> <segtitle>Installed Directories</segtitle>
<seglistitem> <seglistitem>
<seg>gmplayer, mplayer, and mencoder</seg> <seg>gmplayer, mplayer and mencoder</seg>
<seg>libdha.so and optionally, libpostproc.so</seg> <seg>none</seg>
<seg>~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer, <seg>/etc/mplayer, /usr/lib/mplayer, /usr/share/mplayer and
/usr/share/mplayer, and /usr/share/doc/mplayer-&mplayer-version;</seg> /usr/share/doc/mplayer</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -541,7 +487,7 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
<term><command>gmplayer</command></term> <term><command>gmplayer</command></term>
<listitem> <listitem>
<para>is a symlink to <command>mplayer</command> which <para>is a symlink to <command>mplayer</command> which
brings up the graphical user interface component of brings up the GTK frontend of
<application>MPlayer</application>.</para> <application>MPlayer</application>.</para>
<indexterm zone="mplayer gmplayer"> <indexterm zone="mplayer gmplayer">
<primary sortas="b-gmplayer">gmplayer</primary> <primary sortas="b-gmplayer">gmplayer</primary>
@ -552,12 +498,10 @@ ln -v -sf &mplayer-font;/font-arial-<replaceable>&lt;font size&gt;</replaceable>
<varlistentry id="mplayer-prog"> <varlistentry id="mplayer-prog">
<term><command>mplayer</command></term> <term><command>mplayer</command></term>
<listitem> <listitem>
<para> manages the input formats, the CODECs and <para> is the main MPlayer video player.</para>
the output formats to play video files, DVDs,
(S)VCDs or network streams containing audio and/or video
information on your system.</para>
<para>Examples:</para> <!-- This is not the place for usage directions, right?
<para>Examples of usage:</para>
<screen><userinput>mplayer -fs blfs.avi <screen><userinput>mplayer -fs blfs.avi
mplayer -vo fbdev -fb /dev/fb0 dvd://1 \ mplayer -vo fbdev -fb /dev/fb0 dvd://1 \
@ -569,7 +513,7 @@ mplayer http://fredrik.hubbe.net/plugger/test.mpg</userinput></screen>
included with the package in the source tree subdirectory included with the package in the source tree subdirectory
<filename class="directory">DOCS</filename> (also installed at <filename class="directory">DOCS</filename> (also installed at
<filename class='directory'>/usr/share/doc/mplayer-&mplayer-version;</filename>).</para> <filename class='directory'>/usr/share/doc/mplayer-&mplayer-version;</filename>).</para>
-->
<indexterm zone="mplayer mplayer-prog"> <indexterm zone="mplayer mplayer-prog">
<primary sortas="b-mplayer">mplayer</primary> <primary sortas="b-mplayer">mplayer</primary>
</indexterm> </indexterm>
@ -579,7 +523,10 @@ mplayer http://fredrik.hubbe.net/plugger/test.mpg</userinput></screen>
<varlistentry id="mencoder"> <varlistentry id="mencoder">
<term><command>mencoder</command></term> <term><command>mencoder</command></term>
<listitem> <listitem>
<para>is used to encode any <application>MPlayer</application> <para>is a powerful command line video decoding, encoding and
filtering tool.</para>
<!-- Usage directions
is used to encode any <application>MPlayer</application>
playable movie to DivX4, <application>XviD</application> or any playable movie to DivX4, <application>XviD</application> or any
CODEC in <filename class='libraryfile'>libavcodec</filename> with CODEC in <filename class='libraryfile'>libavcodec</filename> with
PCM/MP3/VBRMP3 audio.</para> PCM/MP3/VBRMP3 audio.</para>
@ -602,12 +549,13 @@ mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=&lt;bitrate&gt; \ -lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=&lt;bitrate&gt; \
-o &lt;name.avi&gt; -o &lt;name.avi&gt;
mencoder -forceidx &lt;name.avi&gt;</userinput></screen> mencoder -forceidx &lt;name.avi&gt;</userinput></screen>
-->
<indexterm zone="mplayer mencoder"> <indexterm zone="mplayer mencoder">
<primary sortas="b-mencoder">mencoder</primary> <primary sortas="b-mencoder">mencoder</primary>
</indexterm> </indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
<!-- not installed anymore?
<varlistentry id="libdha"> <varlistentry id="libdha">
<term><filename class='libraryfile'>libdha.so</filename></term> <term><filename class='libraryfile'>libdha.so</filename></term>
<listitem> <listitem>
@ -618,7 +566,8 @@ mencoder -forceidx &lt;name.avi&gt;</userinput></screen>
</indexterm> </indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
-->
<!-- not installed anymore
<varlistentry id="libpostproc"> <varlistentry id="libpostproc">
<term><filename class='libraryfile'>libpostproc.so</filename></term> <term><filename class='libraryfile'>libpostproc.so</filename></term>
<listitem> <listitem>
@ -629,7 +578,7 @@ mencoder -forceidx &lt;name.avi&gt;</userinput></screen>
</indexterm> </indexterm>
</listitem> </listitem>
</varlistentry> </varlistentry>
-->
</variablelist> </variablelist>
</sect2> </sect2>