CODEC Installation (Optional)
If you downloaded any proprietary CODECs (which can provide
support for additional audio and video formats such as Real,
Indeo and QuickTime), extract them to /usr/lib/mplayer/codecs
using the following
commands as the root
user
(substitute and/or add different CODEC filenames, if necessary):
install -v -d -m755 /usr/lib/mplayer/codecs &&
tar -xvf ../essential-20061022.tar.bz2 \
-C /usr/lib/mplayer/codecs --strip-components=1 &&
chown -v -R root:root /usr/lib/mplayer/codecs
If you installed any CODECs, ensure you add --with-codecsdir=/usr/lib/mplayer/codecs
to the
configure script.
GUI Installation (Optional)
To enable building the GUI version of MPlayer (requires GTK+-2.10.13 or
GTK+-1.2.10), add --enable-gui
to the configure script. You'll also
need to extract at least one skin. Extract the desired skin and
create the default location (as the root
user):
install -v -d -m755 /usr/share/mplayer/Skin &&
tar -xvf ../Blue-1.7.tar.bz2 \
-C /usr/share/mplayer/Skin &&
chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
ln -sfv Blue /usr/share/mplayer/Skin/default
Main MPlayer Installation
Note
The package maintainers recommend building without any
optimizations.
This package (unfortunately) expects the X Window system to be installed in the
/usr/X11R6
directory. If you're
using a recent version of Xorg
and it is installed in any other location, ensure you have
followed the instructions in the Creating an X11R6
Compatibility Symlink section.
MPlayer can build a shared
post-processing library from the internal FFmpeg package which other packages can link
to. This requires MPlayer to
link dynamically to this library instead of the default
statically linked method. If you desire to build the shared
library, add --enable-shared-pp
to
the configure
script. Note that the FFmpeg
package can also build this library (which MPlayer can link to instead of building it),
ensure you don't overwrite an existing one.
You may wish to examine the output from ./configure --help to find out
what additional parameters to configure are needed to include
the dependencies you have installed on your system. To link in
existing FFmpeg libraries (and
MPlayer won't have to build
them), you must pass a total of nine additional options to the
configure script.
Four to disable building the static FFmpeg libraries, four to enable using the
system-installed shared libraries and --with-extraincdir=/usr/include/ffmpeg
so the
build can locate the FFmpeg
interface headers.
Install MPlayer by running the
following commands:
patch -Np0 -i ../asmrules_fix_20061231.diff &&
patch -Np0 -i ../cddb_fix_20070605.diff &&
patch -Np1 -i ../MPlayer-1.0rc1-ext_ffmpeg-1.patch &&
./configure --prefix=/usr \
--confdir=/etc/mplayer \
--enable-largefiles \
--enable-dynamic-plugins &&
make
This package does not come with a test suite.
Now, as the root
user:
make install &&
install -v -m755 -d /usr/share/doc/mplayer-1.0rc1 &&
cp -v -R DOCS/* /usr/share/doc/mplayer-1.0rc1
Passing certain parameters to configure may result in the
creation of libdha.so.1.0
. If so,
you may wish to create a symlink to this library in case other
packages link to libdha.so
. Use the
following command as the root
user to create the symbolic link:
ln -v -s libdha.so.1.0 /usr/lib/libdha.so
You will need codecs.conf
only if
you want to change its properties, as the main binary contains an
internal copy of it. Ensure any changes you make to codecs.conf
achieve the desired results, as
incorrect entries in this file have been known to cause errors
and render the player unusable. If necessary, create the file
using the following command.
install -m644 etc/codecs.conf /etc/mplayer
You may also want to copy all the default configuration files to
/etc/mplayer
for future reference
or more customization ability.
install -m644 etc/*.conf /etc/mplayer
MPlayer requires that the RTC
run at a frequency of 1024 Hz. Make this setting change at
boot-time by adding a line to /etc/sysctl.conf
:
echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf
OSD and Subtitles Font Installation (Required if '--enable-menu'
Was Passed to 'configure')
The recommended method to set up a font for MPlayer is to link a TTF file to your
~/.mplayer
directory. A link should
be created in each user's home directory who may use MPlayer. For example:
install -v -m750 -d ~/.mplayer &&
ln -v -sf /usr/share/fonts/X11-TTF/luxisri.ttf \
~/.mplayer/subfont.ttf
There are several other ways to set up a font package. To use a
prerendered MPlayer font
package, extract and link one of the font tarballs using the
following commands:
tar -xvf ../font-arial-iso-8859-1.tar.bz2 \
-C /usr/share/mplayer/font &&
chown -v -R root:root /usr/share/mplayer/font &&
cd /usr/share/mplayer/font &&
ln -v -sf font-arial-iso-8859-1/font-arial-<font size>
-iso-8859-1/* .
Available font sizes are 14, 18, 24 or 28.
Additional information as well as additional methods to set up an
MPlayer font package can be
found at http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install.