Archive

Archive for the ‘MPlayer’ Category

Compiling and installing MPlayer

11 September 2010 Leave a comment

MPlayer is a program for playing music and video files, and much more. I occasionally compile MPlayer twice or three times a year. Below are the steps I use, collected together so I don’t lose them.

  1. Download the binary codecs. I usually choose the latest version of all codecs as packaged in the tarball all-20*. As of this writing, the latest comprehensive binary codecs package for Linux is all-20100303.tar.bz2.
  2. Download the MPlayer source from the SVN repository:
    $ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
    
  3. As root, install the binary codecs:
    $ sudo mkdir /usr/local/lib/codecs/
    $ sudo cp -rf all-20100303/* /usr/local/lib/codecs/
    $ sudo ln -s /usr/local/lib/codecs /usr/lib/win32
    
  4. As a normal user, cd into the top-level directory of the MPlayer source distribution and configure MPlayer:
    $ ./configure --enable-largefiles --enable-menu --prefix=$HOME/usr
    
  5. Now compile and install:
    $ make
    $ make install
    
Advertisements