mplayer - Movie player ChangeLog

HOWTO


# MPlayer
# =======
# Most of the following prerequisites are optional, but I don't know
# for sure which are not.  The list tends to change with each MPlayer
# release, so I won't even try to note which are mandatory and which
# are not.  Take the link for each one to see what it is and what it
# does, skip the ones that you don't need...

# If you decide you don't want to deal with building it yourself, you can
# get an MPlayer package instead:
# http://www.linuxpackages.net/pkg_details.php?id=10087
# http://www.slackages.com/linux/slackages/slack110.html
# http://faleiros.eti.br/?q=SlackBuild/mplayer

# Prerequisites:
# iconv
# samba's libsmbclient
# DirectFB
# XFree86 or X.org
# GGI
# aalib
# caca
# SVGALib
# DVB (for TV cards, etc.)
# libpng (required for gui)
# libjpeg
# libungif
# vesautils
# SDL
# NAS
# DXR2 (a decoder card)
# DXR2/H+ (a decoder card)
# libmp1e
# fame (I think this is broken, it used to be included with mplayer,
#  configure still looks for it there, but now ffmpeg's libavcodec is
#  preferred)
# aRts (Slack has an 'arts' package)
# EsounD
# Polyp
# JACK and bio2jack
# ALSA
# libdvdread (if you don't use libmpdvdkit for some reason)
# cdparanoia (required for CDDA support)
# freetype (required for ttf fonts)
# fribidi (add --enable-fribidi to the configure line to use this)
# ENCA
# zlib
# liblzo
# libmad
# tooLAME
# twoLAME
# OggVorbis (for playing ogg and ogg vorbis files)
# OggTheora (a video codec)
# mp3lib (copy included in ./mp3lib/; to disable pass --disable-mp3lib)
# liba52
# libdca/libdts
# libmpeg2
# libmpcdec
# faac
# faad2 (for AAC support; it'll use ./libfaad2/ unless you
#  specify --enable-external-faad)
# xanim (for it's codecs)
# RealPlayer (for it's codecs)
# live.com streaming media libraries (formerly here: http://www.live.com/liveMedia/, currently ?)
# ffmpeg's libavcodec, libavformat libraries
# AMR narrowband, wideband
# libdv
# x264
# NUT
# lame's libmp3lame
# XMMS' libxmms (add --enable-xmms for the XMMS inputplugin)
# GTK+ >= 1.2.10
# Glib >= 1.2.10
# LIRC (remote control support)

# Once you install MPlayer, if you'd like to install the mplayerplug-in for
# Netscape, Mozilla, Firefox, etc., see the mplayerplug-in howto

# Create directories for source and tarballs
mkdir -p -m 0700 ~/installed/mplayer ~/src/mplayer


# Codecs
# ======
# Note: I originally had 'essential' here, then I tried to play a movie
# file, I was missing a codec - so I changed this to 'all'.  At the request
# of one of the developers ('all' is huge), I've changed it back to
# 'essential' again.  You shouldn't need it, but if you end up needing
# 'all', you can grab it from the MPlayer site.

# Get the codecs tarball
cd
test -f installed/mplayer/essential-20071007.tar.bz2 &&
mv installed/mplayer/essential-20071007.tar.bz2 .
test ! -f essential-20071007.tar.bz2 &&
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/\
essential-20071007.tar.bz2

# Become root to install it
su

# If you have an old /usr/lib/win32 or /usr/local/lib/win32 directory with
# old codecs in it, back it up somewhere.  The default codec location is now
# /usr/local/lib/codecs.  If you have xine installed from a package, you
# may want to create a /usr/lib/codecs symlink pointing to
# /usr/local/lib/codecs so it can find them too.

test ! -d /usr/local/lib/codecs && mkdir -p /usr/local/lib/codecs
tar xjvf essential-20071007.tar.bz2 -C /usr/local/lib/codecs
mv /usr/local/lib/codecs/essential-20071007/* /usr/local/lib/codecs/
rmdir /usr/local/lib/codecs/essential-20071007
chown -R root:root /usr/local/lib/codecs

# Become yourself again
exit

# Save the tarball for later
rm -f installed/mplayer/win32codecs.tar.* \
installed/mplayer/qt6dlls.tar.* installed/mplayer/xanimdlls.tar.* \
installed/all-*.tar.* installed/mplayer/essential-*.tar.*
mv essential-20071007.tar.bz2 installed/mplayer/


# MPlayer 1.1.1
# =============
# Note: last update I just updated everything from 1.0rc2 to 1.1.1,
# I did not check for skin updates or any of that (next time)

# Get it
cd
test -f installed/mplayer/MPlayer-1.1.1.tar.xz &&
mv installed/mplayer/MPlayer-1.1.1.tar.xz .
test ! -f MPlayer-1.1.1.tar.xz &&
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.1.tar.xz

# Extract the source
cd src/mplayer
find -maxdepth 1 -type d -name "MPlayer-*" -exec rm -r {} \;
tar xJvf ~/MPlayer-1.1.1.tar.xz
cd MPlayer-1.1.1
test $UID = 0 && chown -R root:root .

## If you have Samba installed outside of the /usr or /usr/local prefixes,
## ie. under /usr/local/samba, use this:
# --with-extralibdir=/usr/local/samba/lib \
# --with-extraincdir=/usr/local/samba/include

## To specify the xanim codecs directory, pass it to configure like this:
# --xanimcodecsdir=/usr/local/xanim/mods
## (if you install 'all', they'll be in there)

## To tell it where to find your RealPlayer codecs:
# --realcodecsdir=/usr/local/RealPlayer/codecs

## As time goes on, if you upgrade to a version of gcc that didn't exist
## when this version of MPlayer was released, you may need to pass
## --disable-gcc-check to configure

## The configure line that I used last time was:
## (one of these is long enough that it may wrap in your browser)
# ./configure --enable-gui --enable-xmms \
#  --with-extralibdir=/usr/local/samba/lib \
#  --with-extraincdir=/usr/local/samba/include:/lib/modules/`uname -r`/build/include \
#  --xanimcodecsdir=/usr/local/xanim/mods \
#  --realcodecsdir=/usr/local/RealPlayer/codecs \
#  --disable-inet6
#
# (the /lib/modules/... part is so it would detect PVR support so i can use
# MPlayer with my TV card, I don't know why it wasn't looking at the kernel
# includes anyway, which usually don't match up with the /usr/include/linux
# ones)
#
## Last time I installed it on a 64-bit no-gui server (for '-vo png' mainly)
## I just used this:
# ./configure --libdir=/usr/local/lib64 --mandir=/usr/local/lib64 \
#  --disable-inet6

# Configure the build
./configure --enable-gui

# Build it
make

# Become root to clean up old files and to install it
su

# Install it
make install

# Become yourself again
exit

# Save the tarball for later
cd
rm -f installed/mplayer/MPlayer-*.tar.*
mv MPlayer-1.1.1.tar.xz installed/mplayer/

# If you have one, /usr/local/share/pixmaps/mplayer.xpm can be used as a
# desktop icon for /usr/local/bin/gmplayer

# To set up MPlayer for use with LIRC (Linux Infrared Remote Control), run
# 'mplayer -input cmdlist' to get the list of all available commands, and
# set up those commands with the matching remote buttons in ~/.lircrc  Run
# LIRC's 'irw' to see what each button's name is.  Here is the mplayer-
# related section of my ~/.lircrc:
# http://englanders.us/pub/linux/misc/lircrc-mplayer


# Skins
# =====
# All of the skins' tarballs will go here:
mkdir -p -m 0700 ~/installed/mplayer/skins
cd ~/installed/mplayer/skins

# Become root to download and install all of them:
su

# Install the "Blue" skin, make it the default for gmplayer (the GUI)
wget -nc -nv http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2 \
http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2.md5
test -s "Blue-1.7.tar.bz2.md5" &&
( cat Blue-1.7.tar.bz2.md5 |
    sed 's/\/home\/ftp\/MPlayer\/skins\///' | md5sum -c &&
     rm -f Blue-1.7.tar.bz2.md5 )
tar xjf Blue-1.7.tar.bz2 -C /usr/local/share/mplayer/skins/
chown -R $USER .

# You can get lots more from the MPlayer web site's download page
# Install them system-wide into /usr/local/share/mplayer/skins/ or
# for a non-root user by putting them in ~/.mplayer/skins/

# Fix the ownership and permissions of all of the skins:
chown -R root:root /usr/local/share/mplayer/skins
find /usr/local/share/mplayer/skins -type d -exec chmod 755 {} \;
find /usr/local/share/mplayer/skins -type f -exec chmod 644 {} \;

# Make the 'Blue' skin the default skin for gmplayer (the GUI):
ln -sf /usr/local/share/mplayer/skins/Blue \
/usr/local/share/mplayer/skins/default

# Become yourself again
exit


# Fonts (for gmplayer - the GUI)
# =====
# You can either do something like this, here using a TrueType font
# that comes with X:
su -c "ln -sf /usr/X11R6/lib/X11/fonts/TTF/Vera.ttf \
/usr/local/share/mplayer/subfont.ttf"

# or you can install a font set.  In this case, iso-8859-1:
cd
test -d installed/mplayer/fonts && rm -r installed/mplayer/fonts
test ! -f installed/mplayer/font-arial-iso-8859-1.tar.bz2 &&
wget -N http://www.mplayerhq.hu/MPlayer/releases/fonts/\
font-arial-iso-8859-1.tar.bz2

# Become root to install it
su

tar xjvf font-arial-iso-8859-1.tar.bz2 -C /usr/local/share/mplayer/
test ! -L /usr/local/share/mplayer/font &&
test -d /usr/local/share/mplayer/font &&
  rmdir /usr/local/share/mplayer/font
chown -R root:root /usr/local/share/mplayer/font-arial-iso-8859-1
ln -sf /usr/local/share/mplayer/font-arial-iso-8859-1/\
font-arial-18-iso-8859-1 /usr/local/share/mplayer/font

# Become yourself again
exit

cd
mv -f font-arial-*.tar.bz2 installed/mplayer/

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2013-07-22 12:01am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]