How to compile / install Mplayer on Debian Sarge

intro:
How to compile and install mplayer from source, to install on a Debian Sarge based desktop (probably also applicable to Ubuntu Hoary/Breezy)

subject:
mplayer, sarge, debian, compile

content:
Overview
I generally compile mplayer by hand for my systems, because I haven't yet found a decent packaged version of it.
The Debian Marillat version, was I found :

  • Not compiled with support for my Athlon processor (perhaps I can make it more efficient?)
  • Not able to do brightness properly (i.e. the whole X session gets dimmer/darker depending on mplayer having focus instead of the window itself, which is clearly not right)

Step 1

apt-get install ffmpeg
apt-get install xlibs-dev
apt-get install libpng-dev libjpeg-dev libavifile-0.7-dev libavifile-0.7c102

Step 2

  • Download mplayer 1.0 pre 7 (latest stable release) from http://www.mplayerhq.hu
  • Download the "all" codes package from http://mplayerhq.hu

Step 3
I generally install locally compiled stuff to somewhere beneath /usr/local/apps/$progName/$version ; therefore I felt the codecs best lived in /usr/local/apps/mplayer/codecs
Install the codecs to e.g. /usr/local/apps/mplayer/codecs (tar -zxf .... and mv)
Step 4
Compile and install mplayer :

./configure --prefix=/usr/local/apps/mplayer/mplayer-1.0pre7 \
--with-win32libdir=/usr/local/apps/mplayer/codecs \
--with-codecsdir=/usr/local/apps/mplayer/codecs

make
make install
Step 5
Set up mplayer so it's in your $PATH

cd /usr/local/apps/mplayer && ln -s mplayer-1.0pre7 current
cd /usr/local/bin && ln -s ../apps/mplayer/current/bin/mplayer
Step 6
Enjoy - mplayer something.avi.

Technorati Tags:

Comments

GUI

You may also want to add GUI support beside working it from command-line. So, you'd need to add: --enable-gui flag to configure script.

he u freakin moron. THERE IS

he u freakin moron. THERE IS NO PACKAGE CALLED LIBAVI* WHATEVER!
so what the fukk is this about?

*sigh*

root@fitz:~ # cat /etc/apt/sources.list
deb http://gb.archive.ubuntu.com/ubuntu dapper main restricted universe
deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe
root@fitz:~ # apt-cache show libavifile-0.7-dev
Package: libavifile-0.7-dev
Priority: optional
Section: universe/devel
Installed-Size: 312
Maintainer: Zdenek Kabelac 
Architecture: i386
Source: avifile
Version: 1:0.7.44.20051021-1ubuntu2
Replaces: libaviplay, libavifile-dev, libavifile0.6-dev, libavifile0.7-dev
Depends: libavifile-0.7c2 (= 1:0.7.44.20051021-1ubuntu2), libxft-dev, libxrender-dev
Conflicts: libavifile-0.7c102 (<= 1:0.7.42.20050215-1), libavifile-dev, libavifile0.6, libavifile-0.6-dev, libavifile0.7-dev
Filename: pool/universe/a/avifile/libavifile-0.7-dev_0.7.44.20051021-1ubuntu2_i386.deb
Size: 49132
MD5sum: 79a0a707830ecb4b139cff4b2e360a1c
Description: development header files for libavifile
 Contains the symlinks, headers and object files needed to compile
 and link programs which use aviplay library.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu

Thanks Mr Anonymous.

And what is about GUI? I

And what is about GUI? I also compiled it in the same way, and GUI has very low volume level. while console version is all right. It seemed, that both instances uses the same output plugins/

*Shrug*

I never use the GUI, but I suspect this is a bug you should raise to the attention of the mplayer developers....

Worked like a charm :-)

Thanks for this -- I followed all the steps, and got a nicely working mplayer.

-E

Downloaded version pre8.

Downloaded version pre8. configure script succesfull but then make fails.
main error message is
"pointer targets in passing argument 2 of 'vobsub_set_from_lang' differ in signedness"

Have you an idea what does it mean and how to solve it?
Thanks

Complete report under:
http://nopaste.easy-coding.de/?id=521

PS.
After that I will try to recompile again with "live 555 support"
for streaming real media files.
Did you experienced that?
Thanky in advance

Mplayer and Debian Sarge

I am sorry to say, that the present howto was only a loss of time for me.
Maybe this was because of my inexperience.
Here:

http://forums.debian.net/viewtopic.php?t=7335

there's the successful procedure that I followed.
Bye,
Rodolfo

grats

it worked like a charm for me,
I got trouble with the GUI deb pack, coudn't init GLX,
I folowed all the steps and got mplayer working
THANKS

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
We don't take kindly to automated nonsensible adverts around here.