How to compile mplayer from the git repository

Everything related to the packages in the Ubuntu PPAs (Personal Package Archive).

How to compile mplayer from the git repository

Postby rvm » Wed Dec 23, 2009 2:55 pm

It seems now things are different to get and compile mplayer from the git repository. This repository is maintained by Uoti Urpala and contains a different version of mplayer with new things (most important, support for ffmpeg-mt).

From this post in MPlayer-users list:

The git repo already has significant advantages for some fairly large groups of people:
* those who have a multicore CPU and want to take advantage of it
for decoding (easy to use support for threaded decoding with
* those who use VDPAU (improved VO with more features, better
performance especially when using hardware decoding with
deinterlacing, and less bugs)
* those who play files with SSA/ASS subtitles (svn uses an
outdated embedded copy of libass, while git uses an up-to-date
version of the library; the newer version can handle more
features and has better vsfilter compatibility)
* those who play Matroska files with ordered chapters (ordered
chapters work in git, are not supported at all in svn)
and there are quite a lot of other changes. Most of the features will
likely never appear in svn.

I built packages for ubuntu from that repository (, but those packages are now a little bit old. I'll try to build new ones in the future.

If you want to compile mplayer from the git repository, this is how:
Code: Select all
git clone git://
cd mplayer-build/
./init --shallow

Now you can play videos (no need to install):
Code: Select all
mplayer/mplayer -lavdopts threads=4 some_high_bitrate_h264_stuff.mkv

For more info take a look at the README file in the mplayer-build directory.

Note: I had to update my git-core, the one in ubuntu hardy failed when running the ./init script. If you use hardy too, you can find a new version of git-core at
Site Admin
Posts: 2950
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to compile mplayer from the git repository

Postby dikei » Tue Jan 19, 2010 3:55 pm

You still need to install some dependencies package first, or you'll get trouble, for example: no pulse audio support, etc...
In debian-based distro just run
Code: Select all
sudo apt-get build-dep mplayer

Re: How to compile mplayer from the git repository

Postby santeesteve » Mon May 17, 2010 7:50 am

A few months ago I asked Christian Marillat, who maintains and does all the packaging for the debian-multimedia repository, to take a look at mplayer-mt. He has kindly added the package to the testing and unstable sections and updates them regularly. I just rebuilt his latest for Mepis 8.5 (OK, that was my main motivation, he's a lot better packager than me, I need to leech off his expertise), and he has managed to fix the "unknown version" bug that frontends such as SMPlayer throw up.

Anyway, I don't know if his debs are Ubuntu compatible, but it should be simple to rebuild them if not

Return to Ubuntu PPAs

Who is online

Users browsing this forum: No registered users and 1 guest