Home > documentation, Linux, MPlayer, open source software > Compiling and installing MPlayer

Compiling and installing MPlayer

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: