Howto install the subversion mplayer + gmplayer + all the codecs.

This guide intends to show how to successfully compile a fully featured svn mplayer with all the codecs and with the GUI player gmplayer. It is a bit of a difficult one so make a cup of tea and get your keyboard ready!!

Firstly install subversion, compiling tools and checkinstall and secondly download the svn mplayer plus the full codec pack:

Code:

$ sudo apt-get install build-essential checkinstall subversion
$ cd Desktop
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2

So far so good? Next to decompress the codec package and copy all them to the appropriate location. Make sure you are still on the Desktop and:

Code:

$ tar xjvf all-20061022.tar.bz2
$ sudo mkdir /usr/local/lib/codecs/
$ sudo cp $HOME/Desktop/all-20061022/*.* /usr/local/lib/codecs/

Next comes quite a large download of development files. These are required so that when mplayer is compiled you will pick up a huge amount of functionality. Don't be surprised if more are suggested, or if you already have some on your system:

Code:

$ sudo apt-get install liblame-dev libdvdread3-dev libdvdnav-dev libogg-dev \
libvorbis-dev libxv-dev libtheora-dev libpng12-dev libmpcdec-dev \
libcdparanoia0-dev libxinerama-dev x11proto-xinerama-dev libjpeg62-dev \
libgdk-pixbuf-dev libfreetype6-dev libexpat1-dev libfontconfig1-dev \
libcaca-dev libfaac-dev libmp4v2-dev libaa1-dev libavcodec-dev \
libavifile-0.7-dev libsdl1.2-dev libesd0-dev libfaad2-dev libice-dev \
libmatroska-dev libmad0-dev libmp4v2-dev libmikmod2-dev libpostproc-dev \
libspeex-dev libxvidcore4-dev libxvidcore4 avifile-xvid-plugin \
avifile-divx-plugin ladspa-sdk libsvga1-dev libsvga1 libungif4-dev \
libungif4g libenca-dev libdfb++-0.9-22 libdfb++-dev libdirectfb-0.9-22 \
libdirectfb-dev libavformat-dev libfame-0.9 libfame-dev zlib1g-dev \
liblivemedia-dev libfribidi-dev libdvdnav4 libdvdplay0 libasound2-dev \
libdv4-dev libpopt-dev zlib1g-dev xlibs-dev libflac++-dev libflac-dev \
liboggflac++-dev liboggflac-dev toolame ttf-bitstream-vera \
libdbus-glib-1-dev libx264-dev libggi2-dev libxvmc-dev libxxf86vm-dev \
libxxf86dga-dev libfontconfig-dev libartsc0-dev libglu-dev \
libglu1-mesa-dev libdts-dev libdvdread-dev libdv-dev libpng3-dev \
libpng12-dev libsmbclient-dev gawk sharutils libaudiofile-dev liblzo-dev \
libc6-dev libggimisc2 libggimisc2-dev libggiwmh0 libggiwmh0-dev \
libatk1.0-dev libcairo2-dev libgtk2.0-dev libpango1.0-dev \
libxcursor-dev libxfixes-dev x11proto-fixes-dev liba52-0.7.4-dev

I hope you still have some hard disk space left because the next task is to compile the svn mplayer and after that setup the OSD and the GUI:

Code:

$ cd $HOME/Desktop/mplayer/
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make && sudo checkinstall -D

Watch carefully for checkinstall to complain a little when making the .deb file, you may need to manually change the name and version (sections 2 and 3 of the .deb creation menu) to keep it happy. The next step is to place a font for the OSD (On Screen Display) and subtitles:

Code:

$ mkdir $HOME/.mplayer/
$ sudo cp /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf

And finally to set up a skin for the GUI. Can I say that I rarely use the GUI but in the spirit of generosity, Gentle Reader, I have included the directions on this page for a basic skin and access to gmplayer, the GUI version of mplayer. So, you now need to download a skin, decompress it and then place it in the appropriate directory:

Code:

$ cd Desktop
$ wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
$ tar xjvf Blue-1.7.tar.bz2
$ mkdir $HOME/.mplayer/skins/default/
$ cp $HOME/Desktop/Blue/*.* $HOME/.mplayer/skins/default/

And you have successfully installed the svn mplayer! Start both from the command line, the CLI version with the command mplayer and the GUI with gmplayer. And remember: "Have fun!".
original credits for this here

Clicky Web Analytics