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.
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*
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