glfs/multimedia/videoutils/mplayer.xml
Archaic a0f03b0675 Inserting sect1info
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2591 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-08-10 04:23:09 +00:00

288 lines
11 KiB
XML

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY mplayer-download-http "http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
<!ENTITY mplayer-download-ftp "ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-&mplayer-version;.tar.bz2">
<!ENTITY mplayer-size "4.7 MB">
<!ENTITY mplayer-buildsize "51 MB">
<!ENTITY mplayer-time "1.80 SBU">
]>
<sect1 id="mplayer" xreflabel="MPlayer-&mplayer-version;">
<sect1info>
<othername>$LastChangedBy: $</othername>
<date>$Date: $</date>
</sect1info>
<?dbhtml filename="mplayer.html"?>
<title>MPlayer-&mplayer-version;</title>
<sect2>
<title>Introduction to <application>MPlayer</application></title>
<para>The <application>MPlayer</application> package contains an audio/video player that is able to
play almost every audio and video <acronym>CODEC</acronym> and can be
controlled via the command
line or a <acronym>GUI</acronym>.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP): <ulink url="&mplayer-download-http;"/></para></listitem>
<listitem><para>Download (FTP): <ulink url="&mplayer-download-ftp;"/></para></listitem>
<listitem><para>Download size: &mplayer-size;</para></listitem>
<listitem><para>Estimated Disk space required: &mplayer-buildsize;</para></listitem>
<listitem><para>Estimated build time: &mplayer-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title>
<itemizedlist spacing='compact'>
<listitem><para>Proprietary <acronym>CODEC</acronym>s: <ulink
url="http://www1.mplayerhq.hu/MPlayer/releases/codecs/extralite.tar.bz2"/></para></listitem>
<listitem><para>Default <acronym>GUI</acronym> skin: <ulink
url="http://www1.mplayerhq.hu/MPlayer/Skin/default-1.8.tar.bz2"/></para></listitem>
<listitem><para>Prerendered fonts: <ulink
url="http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2"/></para>
</listitem>
</itemizedlist>
<note><para>The additional downloads are not required to build and use MPlayer. You can
find many more <acronym>CODEC</acronym>s, skins and fonts at <ulink
url="http://www.mplayerhq.hu/">MPlayer's homepage</ulink>.</para></note>
</sect3>
<sect3><title><application>MPlayer</application> dependencies</title>
<sect4><title>Optional</title>
<para>
X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
<xref linkend="libpng"/>,
<xref linkend="libjpeg"/>,
<xref linkend="GTK"/>,
<xref linkend="DirectFB"/>,
<xref linkend="SVGAlib"/>,
<xref linkend="freetype2"/>,
<xref linkend="fontconfig"/>,
<xref linkend="libungif"/>,
<xref linkend="libogg"/>
<xref linkend="libvorbis"/>,
<xref linkend="aalib"/>,
<xref linkend="SDL"/>,
<xref linkend="xvid"/>,
<xref linkend="arts"/>,
<xref linkend="alsa"/>,
<xref linkend="esound"/>,
<xref linkend="LZO"/>,
<xref linkend="libmad"/>,
<xref linkend="CDParanoia"/>,
<xref linkend="libdv"/>,
<xref linkend="libdvdread"/>,
<xref linkend="nas"/>,
<xref linkend="samba3"/>,
<xref linkend="lame"/>,
<xref linkend="xmms"/>,
<xref linkend="flac"/>,
<xref linkend="libfame"/>,
<ulink url="http://www.theora.org/">Theora</ulink>,
<ulink url="http://prdownloads.sourceforge.net/zapping/mp1e-1.9.3.tar.bz2">MP1E</ulink>,
<ulink url="http://faac.sourceforge.net/">FAAD2</ulink>,
<ulink url="http://www.ggi-project.org/">GGI</ulink>,
<ulink url="http://fribidi.sourceforge.net/">FriBidi</ulink>,
<ulink url="http://www.unrarlib.org/">unrarlib</ulink>,
<ulink url="http://www.lirc.org/">LIRC</ulink>,
<ulink url="http://www.dolda2000.cjb.net/~fredrik/lirccd/">lirccd</ulink> and
<ulink url="http://www.live.com/mplayer/">LIVE.COM Streaming Media</ulink>
</para></sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>MPlayer</application></title>
<para>If you downloaded any proprietary <acronym>CODEC</acronym>s,
extract them at some system-wide location (like <filename
class="directory">/usr/lib/mplayer/codecs</filename>) and add
<parameter>--with-codecsdir=<replaceable>[location]</replaceable></parameter>
option to the configure script.</para>
<note><para>The package maintainers recommend building without any
optimizations.</para></note>
<para>Install <application>MPlayer</application> by running the following commands:</para>
<screen><userinput><command>./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-largefiles --enable-shared-pp &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
make -C libavcodec/libpostproc install</command></userinput></screen>
<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
it:</para>
<screen><userinput><command>cp etc/codecs.conf /etc/mplayer</command></userinput></screen>
<para>The <acronym>GUI</acronym> version of
<application>MPlayer</application> requires a skin. Extract the default
one to the recommended location:</para>
<screen><userinput><command>install -d /usr/share/mplayer/Skin &amp;&amp;
tar xjvf ../default-1.8.tar.bz2 -C /usr/share/mplayer/Skin</command></userinput></screen>
<sect3>
<title>Installation for <acronym>DVD</acronym> playback</title>
<para>If you want <acronym>DVD</acronym> playback with
<application>MPlayer</application>, you need to make a link
from your <acronym>DVD</acronym> drive to <filename>/dev/dvd</filename>:</para>
<screen><userinput><command>ln -s /dev/<replaceable>[dvd drive]</replaceable> /dev/dvd</command></userinput></screen>
<para>Replace <replaceable>[dvd drive]</replaceable> with whatever
device is appropriate, for example <filename>/dev/hdc</filename>. If
you don't know which device to choose, type:</para>
<screen><userinput><command>dmesg | grep DVD</command></userinput></screen>
<para>It should result in an output like:</para>
<screen><userinput>hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
ATAPI CD/DVD-ROM drive</userinput></screen>
<para>If you have SCSI-Emulation activated for the drives, you'll need
to get the right SCSI-device. Every CD/DVD-ROM drive is mapped in the
same order as in <acronym>IDE</acronym> devices to the devices named
<filename>/dev/scd0</filename>,
<filename>/dev/scd1</filename> and so on.</para>
</sect3>
</sect2>
<sect2>
<title>Command explanations</title>
<para><option>--enable-shared-pp</option>: This enables the
building of a shared <filename
class="libraryfile">libpostproc</filename> (library for post processing, featuring
filters like sharpen).</para>
<para><option>--enable-gui</option>: This switch tells
<application>MPlayer</application> to compile the <acronym>GUI</acronym>
code (requires <xref linkend="GTK"/>).</para>
<para><option>--enable-menu</option>: This
switch enables the new menu support. It's like an
<acronym>OSD</acronym>, but you can
also run a shell with it.</para>
</sect2>
<sect2>
<title>Configuring MPlayer</title>
<sect3><title>Config files</title>
<para><filename>/etc/mplayer/*</filename>, <filename>~/.mplayer/*</filename></para>
</sect3>
<sect3><title>Configuration Information</title>
<para>If you wish to utilize a <application>FreeType</application> font,
you need to link a <acronym>TTF</acronym>
file to your <filename class="directory">~/.mplayer</filename> directory. For example:
<screen><userinput><command>ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf ~/.mplayer/subfont.ttf
</command></userinput></screen>
otherwise
<screen><userinput><command>tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &amp;&amp;
cd /usr/share/mplayer/font &amp;&amp;
ln -sf font-arial-iso-8859-1/font-arial-<replaceable>[font size]</replaceable>-iso-8859-1/* .</command></userinput></screen>
You can chose your font size of 14, 18, 24 or 28.
</para>
<para>Set the proper ownership for <acronym>CODEC</acronym>s, skins and fonts:</para>
<screen><userinput><command>chown -R root:root <replaceable>[CODECs location]</replaceable> &amp;&amp;
chown -R root:root /usr/share/mplayer</command></userinput></screen>
<para>Optionally, set up the <acronym>GUI</acronym> with the following commands:</para>
<screen><userinput><command>cat &gt; /etc/mplayer/mplayer.conf &lt;&lt; "EOF"</command>
gui = yes
skin = default
<command>EOF</command></userinput></screen>
<para>The first line, <userinput>gui = yes</userinput>, will make
MPlayer start in <acronym>GUI</acronym> mode automatically. If you want to decide whether to start
in <acronym>GUI</acronym> mode or not, leave that line out and start
<command>mplayer</command> with
<option>-gui</option> or as <command>gmplayer</command> (e.g.,
when starting from a Window Manager menu or command prompt). Note that
the main configuration file is called <filename>config</filename> if it
is placed in the <filename class="directory">~/.mplayer</filename> directory.</para>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application>MPlayer</application> package contains <command>mplayer</command>,
<command>gmplayer</command> and <command>mencoder</command>.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>mplayer</title>
<para><command>mplayer</command> manages the input formats, the
<acronym>CODEC</acronym>s and the output
formats to play video files, <acronym>DVD</acronym>s,
(S)<acronym>VCD</acronym>s or network streams containing
audio and/or video information on your system.</para>
<para>Examples:</para>
<screen><command>mplayer -fs blfs.avi
mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
mplayer -fs vcd://1 # works both for VCDs and SVCDs
mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg</command></screen>
<para>For further information, look at the very good
documentation included with the package in the source tree subdirectory <filename
class="directory">DOCS/</filename>.
</para></sect3>
<sect3><title>gmplayer</title>
<para><command>gmplayer</command> is <application>MPlayer</application> with a graphical user interface.</para></sect3>
<sect3><title>mencoder</title>
<para><command>mencoder</command> is used to encode any
<application>MPlayer</application> playable movie to DivX4,
<application>XviD</application> or any <acronym>CODEC</acronym> in libavcodec with
<acronym>PCM</acronym>/MP3/VBRMP3 audio.</para>
<para>Example:</para>
<screen><userinput><command>rm frameno.avi
mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
-lameopts vbr=3 -o frameno.avi</command>
# mencoder should output bitrates for average encodings
# now, choose one you like best! In the following lines,
# replace &lt;bitrate&gt; and &lt;name.avi&gt; with statements of your
# personal liking.
<command>mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=&lt;bitrate&gt; -o &lt;name.avi&gt;
mencoder -forceidx &lt;name.avi&gt;</command></userinput></screen>
</sect3>
</sect2>
</sect1>