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:$ 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
$ tar xjvf all-20061022.tar.bz2
$ sudo mkdir /usr/local/lib/codecs/
$ sudo cp $HOME/Desktop/all-20061022/*.* /usr/local/lib/codecs/
$ 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
$ cd $HOME/Desktop/mplayer/
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make && sudo checkinstall -D
$ mkdir $HOME/.mplayer/
$ sudo cp /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
$ 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/
original credits for this here