glfs/multimedia/videoutils/mplayer/mplayer-inst.xml
Igor Živković a9869ad275 updated to mplayer-1.0pre2
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1531 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-11-17 03:43:16 +00:00

59 lines
2.3 KiB
XML

<sect2>
<title>Installation of <application>MPlayer</application></title>
<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>install -d /usr/lib/mplayer/extralite &amp;&amp;
tar xjvf ../extralite.tar.bz2 -C /usr/lib/mplayer &amp;&amp;
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
--enable-gui --enable-menu --enable-shared-pp \
--with-codecsdir=/usr/lib/mplayer/extralite &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
make -C libavcodec/libpostproc install &amp;&amp;
cp etc/codecs.conf /etc/mplayer &amp;&amp;
tar xjvf ../default-1.7.tar.bz2 -C /usr/share/mplayer/Skin
</command></userinput></screen>
<para>If <application>FreeType</application> is in use, the only advantage of prerendered fonts is
that they are faster. Install them like this:</para>
<screen><userinput><command>tar xjvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font</command></userinput></screen>
<para>Set the proper permissions for codecs, skins and fonts:</para>
<screen><userinput><command>chown -R root:root /usr/{lib/mplayer/extralite,share/mplayer}</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> to the devices named
<filename>/dev/scd0</filename>,
<filename>/dev/scd1</filename> and so on.</para>
</sect3>
</sect2>