The MPlayer package contains a powerful audio/video player controlled via the command line or graphical interface which is able to play almost every popular audio and video file format. With supported video hardware and additional drivers, MPlayer can play video files without an X Window System installed.
For MPlayer general information and available features, including a full list of file formats, codecs and output devices supported by MPlayer, visit the MPlayer web site.
This package is known to build and work properly using an LFS-7.1 platform.
Download (HTTP): http://www.linuxfromscratch.org/~krejzi/mplayer-1.0~rc4+svn20120427.tar.xz
Download MD5 sum: f2723e317e5a6935af2460b48c3fa0c4
Download size: 10 MB
Estimated disk space required: 178 MB
Estimated build time: 2.2 SBU
Skins
Default GUI skin: http://www.mplayerhq.hu/MPlayer/skins/Blue-1.8.tar.bz2
Download MD5 sum: 340368f4e33f767d9df109990fb29c02
Download size: 218 KB
Additional skins: http://www1.mplayerhq.hu/MPlayer/skins/
Skins are not required to build and use MPlayer .
CDParanoia-III-10.2, Samba-3.6.4, libbluray, libcdio, LIVE555 Streaming Media, RTMPDump, TiVo vstream client and XMMS
ALSA-1.0.25, EsounD-0.2.41, PulseAudio-2.0, SDL-1.2.15, JACK, OpenAL and NAS
AAlib-1.4rc5, libpng-1.5.9, libjpeg-8d, libmng-1.0.10, giflib-4.1.6, DirectFB, libcaca, SVGAlib and OpenJPEG-1.5.0
libmad-0.15.1b, LZO-2.06, Speex-1.2rc1, libtheora-1.1.1, mpg123-1.14.1, liba52-0.7.4, FAAC-1.28, FAAD2-2.7, libdv-1.0.0, XviD-1.3.2, libvpx-1.0.0, LAME-3.99.3, tooLAME, TwoLAME, libgsm, libdca, libmpcdec, OpenCore Adaptive Multi Rate, CrystalHD, x264, Dirac, Schroedinger, libnut
Fontconfig-2.9.0, FreeType-2.4.9, FriBidi-0.19.2, Unrar-4.1.1, gtk+-2.24.10 (required for the GUI), Enca, LADSPA, libbs2b, LIRC and LIRC Client Daemon, libxslt-1.1.26 (required to build the HTML documentation), docbook-xml-4.5 (required to build the HTML documentation) and docbook-xsl-1.76.1 (required to build the HTML documentation)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/mplayer
The package maintainers recommend building without any optimizations.
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.
Install MPlayer by running the following commands:
./configure --prefix=/usr \
--confdir=/etc/mplayer \
--enable-dynamic-plugins \
--enable-menu \
--enable-gui &&
make
This package does not come with a test suite.
Now, as the root user:
make install &&
To build and install the HTML documentation, run as root:
make doc && install -d /usr/share/doc/mplayer-svn_20120427 && cp -v DOCS/HTML/en/* /usr/share/doc/mplayer-svn_20120427
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 -v -m644 etc/codecs.conf /etc/mplayer
You may alternatively want to copy all the default configuration
files to /etc/mplayer for future
reference or more customization ability.
install -v -m644 etc/*.conf /etc/mplayer
To enable the GTK frontend of MPlayer, you'll need to install at least one
skin. Extract the desired skin and create the default location
(as the root user):
tar -xvf ../Blue-1.8.tar.bz2 \
-C /usr/share/mplayer/skins &&
ln -sfv Blue /usr/share/mplayer/skins/default
--enable-gui: This option
is set to build GMPlayer, a GTK frontend for MPlayer.
--enable-menu: This option
is set to enable the on-screen-display.
Typically, there's no configuration required for the system-wide
files in /etc/mplayer (in fact,
this directory is empty unless you copied the default files as
mentioned above). Configuration can be accomplished by choosing
the configuration button located on the MPlayer GUI. Any configuration changes made
in the GUI will be saved in the user's ~/.mplayer directory.
Last updated on 2012-05-10 16:52:26 +0000