mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-05 16:07:23 +08:00
bf5edeecde
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1735 af4574ff-66df-0310-9fd7-8a98e5e911e0
62 lines
2.4 KiB
XML
62 lines
2.4 KiB
XML
<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 &&
|
|
make &&
|
|
make install &&
|
|
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 at recommended location:</para>
|
|
|
|
<screen><userinput><command>tar xjvf ../default-1.7.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> to the devices named
|
|
<filename>/dev/scd0</filename>,
|
|
<filename>/dev/scd1</filename> and so on.</para>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|