Your system might have MPlayer installed already. Type mplayer
at a shell prompt. If you get bash: mplayer: not found
, read on.
If you get lots of text (output from MPlayer), skip to the next chapter.
This is a quick walk-through on getting and installing MPlayer. Some basic knowledge on Linux, the shell prompt, and compiling programs from source is assumed. If you're uncomfortable with this, ask a knowledgeable friend, or consult the many information sources on the internet (don't ask me).
If you get stuck, or the configuration or compilation of MPlayer stops with an error (only warnings may be ok), please be sure to read the MPlayer documentation.
It is assumed that you use the v0.90rc2 version of MPlayer. This is current at the time of writing of this mini-HOWTO. If you use a different version, package names, directory names, etc. may differ from what they're called here.
Download the latest MPlayer source package here. Use one of the HTTP or FTP mirrors listed for 'MPlayer v0.90rc2 source'.
tar jxvf MPlayer-0.90rc2.tar.bz2
cd MPlayer-0.90rc2
./configure --enable-gui
configure
carefully, it might give you hints about missing
libraries, etc. If there are any, install them and rerun configure
make
make
process completes successfully, become root and install MPlayer
with: make install
If something doesn't work, please be sure to read the MPlayer documentation.
Also note that the development versions of some required packages will need to be installed too (that's mentioned in the MPlayer documentation, but is repeated here for completeness). For example, besides the XFree86 package, you will need XFree86-devel installed.
To be able to use the MPlayer GUI, you must have a skin installed. To install the default skin:
default.tar.bz2
cd /usr/local/share/mplayer/Skin
tar jxvf /path/to/default.tar.bz2
w32codec.tar.bz2
cd /usr/lib
tar jxvf /path/to/w32codec.tar.bz2
mv w32codec-0.90 win32
Test drive your installation with something like: gmplayer ./MyVideos/MyFavouriteMovie.avi
If you get a window playing the movie: you're on! Press q
to quit MPlayer and move on to the next
chapter.
If not, re-read this chapter. Re-read the MPlayer documentation.
Read it again. Ask a friend. Don't ask me ;-)