Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

View Poll Results: Was this howto helpfull?
Yes 124 89.86%
No 14 10.14%
Voters: 138. You may not vote on this poll

 
Thread Tools Display Modes
Old June 3rd, 2006   #1
sapo
Fresh Brewed Ubuntu
 
sapo's Avatar
 
Join Date: Mar 2005
Location: Brazil
Beans: 1,178
Ubuntu 7.04 Feisty Fawn
Send a message via MSN to sapo
Thumbs down Compiling MPlayer from SVN on a fresh Dapper install, wmv, mp4, x264, etc.

Well, i just installed dapper here and while trying to compile mplayer i noticed that the cvs is down (bored2k said that they are migrating to svn) anyway, i cant stay without mplayer with mp4, and other codecs support.. so i m making this first "scratch" of a howto, so people can just read it instead of solving the problems i had to solve.


GETTING THE DEPENDENCIES

First we need to enable the universe and multiverse repos, if you are lazy, just replace the contents of the /etc/apt/sources.list with this:

Code:
deb http://au.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper main restricted
deb http://au.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb http://au.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper universe multiverse
deb http://au.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe multiverse
deb-src http://security.ubuntu.com/ubuntu dapper-security universe multiverse
After saving the new sources.list:

Code:
sudo apt-get update
After the update just paste it on the terminal:

Code:
sudo apt-get install build-essential debhelper libx11-dev libxv-dev libpng12-dev checkinstall libavcodec-dev libaa1-dev caca-utils libcaca-dev libavcodec-dev libavifile-0.7-dev libsdl1.2debian-all libsdl1.2-dev libesd0-dev libfaac-dev libfaad2-dev libgtk2.0-dev liblame-dev libice-dev libjpeg62-dev libmatroska-dev libmad0-dev libmpcdec-dev libmp4v2-dev libmikmod2-dev libogg-dev libtheora-dev libvorbis-dev libxinerama-dev libxv-dev xlibs-dev x-dev cvs libquicktime0 libquicktime-dev fakeroot gnome-core-devel libpostproc-dev libx11-dev libxv-dev libavcodec-dev libgtk1.2-dev msttcorefonts nasm subversion
It will download a LOT of stuff, dont be scared its just about 47MB.


GETTING THE CODECS

Now you need to get the codecs from here:

http://www.mplayerhq.hu/design7/dload.html

Grab the Essential codecs package

To install the Win32 codecs, extract the w32codecs you can double click the package and select extract or in the terminal type:

Code:
tar xjvf essential-20060501.tar.bz2
And after that enter the directory you have extracted the package and remove the .deb package rm *.deb on a terminal should do the trick

Still inside the essential codecs dir you have just extracted, do it:

Code:
sudo mkdir /usr/lib/win32
sudo cp * /usr/lib/win32
x264 CODEC

Do it on a terminal:
Code:
svn co svn://svn.videolan.org/x264/trunk x264
cd x264
./configure
make
sudo make install
cd ..
GETTING AND COMPILING MPLAYER FROM SVN

Now you just have to extract the mplayer package and compile it, to do it

In a terminal go to the directory you have just downloaded the Mplayer Package and type the following:

Code:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
For Dapper Drake use:
Code:
./configure --prefix=/usr --enable-gui --disable-arts --disable-smb --enable-sdl --enable-x11 --enable-theora --confdir=/etc/mplayer --with-win32libdir=/usr/lib/win32 --enable-menu --enable-tv-v4l2 --disable-liblzo --enable-largefiles  --disable-libdv --disable-aa --enable-xvid --enable-x264
In Edgy Eft use:
Code:
./configure --prefix=/usr --enable-gui --disable-arts --disable-smb --enable-sdl --enable-x11 --enable-theora --confdir=/etc/mplayer --win32codecsdir=/usr/lib/win32 --enable-menu --enable-tv-v4l2 --disable-liblzo --enable-largefiles  --disable-libdv --disable-aa
And the, compile and install
Code:
make
sudo make install
Now you can try it out using mplayer on the command line, to use the it with the GUI you need to run gmplayer, but first you need to install a default skin.


INSTALLING A SKIN

Now the last step is install a Skin:

Go to: http://www.mplayerhq.hu/design7/dload.html and download a skin, Blue is the Default, but i like the QuickSilver skin

Download, extract the contents of the skin package and rename the extracted folder to default

If you downloaded the Blue Skin, do this:
Code:
tar xjvf Blue-1.5.tar.bz2
mv Blue default
sudo cp -R default/ /usr/share/mplayer/Skin/

SPECIAL THANKS
Special thanx to bored2k for his Mplayer Howto that i ve always used, and the help he gave me on the gtalk, i love you biba



Updates:
Updated the links
Now mplayer fom SVN compiles with GCC 4.0 so i updated the commands and the apt-get command to not download gcc-3.4 anymore.
x264 is working now with the SVN version!
__________________
Yet Another Coding Blog
Flash Host

Last edited by sapo; November 24th, 2006 at 09:35 AM..
sapo is offline   Reply With Quote
Old June 3rd, 2006   #2
philetus
Gee! These Aren't Roasted!
 
Join Date: Oct 2005
Beans: 175
Ubuntu 8.10 Intrepid Ibex
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

Did it work for you?

Last edited by philetus; June 3rd, 2006 at 09:41 PM.. Reason: too long
philetus is offline   Reply With Quote
Old June 3rd, 2006   #3
zahidism
Just Give Me the Beans!
 
Join Date: Jan 2006
Location: FL, USA
Beans: 78
Ubuntu 6.06
Send a message via AIM to zahidism
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

so, being the noob that i am, i installed m-player using apt get. is compiling it that much better? i would really love to reap the best quality for my xvids etc
zahidism is offline   Reply With Quote
Old June 4th, 2006   #4
daschl
A Carafe of Ubuntu
 
daschl's Avatar
 
Join Date: Apr 2005
Location: Vienna - Austria
Beans: 126
Ubuntu 7.04 Feisty Fawn
Send a message via ICQ to daschl Send a message via MSN to daschl Send a message via Skype™ to daschl
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

Quote:
Originally Posted by zahidism
so, being the noob that i am, i installed m-player using apt get. is compiling it that much better? i would really love to reap the best quality for my xvids etc
well the point is, that when you install mplayer with apt-get you install it from an official repository and the guys from ubuntu have troubles with the law when they put some codecs in.

if you compile it for yourself you may put the codecs in mplayer which you prefer most

btw: mplayer > *
__________________
free speech and free beer

When you create a new thread
- post _all_ necessary logfiles
- a good structure is essential
- highlight important stuff
daschl is offline   Reply With Quote
Old June 4th, 2006   #5
buildid
Just Give Me the Beans!
 
Join Date: May 2005
Beans: 50
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

i did compile but get this message :

gmplayer: error while loading shared libraries: libjack-0.80.0.so.0: cannot open shared object file:

any idears ?
buildid is offline   Reply With Quote
Old June 4th, 2006   #6
sapo
Fresh Brewed Ubuntu
 
sapo's Avatar
 
Join Date: Mar 2005
Location: Brazil
Beans: 1,178
Ubuntu 7.04 Feisty Fawn
Send a message via MSN to sapo
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

Quote:
Originally Posted by buildid
i did compile but get this message :

gmplayer: error while loading shared libraries: libjack-0.80.0.so.0: cannot open shared object file:

any idears ?
Thats weird, did you install all dependencies? are you running a flesh dapper install or did you upgrade from breezy?

btw, this lib is on the breezy reps but it seens that dapper doesnt have it, i ll try finding a link so you can install it.
__________________
Yet Another Coding Blog
Flash Host
sapo is offline   Reply With Quote
Old June 4th, 2006   #7
shaul26
5 Cups of Ubuntu
 
Join Date: Sep 2005
Beans: 21
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

Hey, thanks for the howto

About the x264 - I remember that in some post (can't find it) someone put instructions to change something in "codecs.conf" (i'm not sure about the file name) and when I did those instructions I had h264 decoding... and very good, more then in totem...

Hope I've helped..and sorry for my english, I'm not a native speaker..
shaul26 is offline   Reply With Quote
Old June 4th, 2006   #8
geearf
Has an Ubuntu Drip
 
geearf's Avatar
 
Join Date: May 2005
Location: Paris, France
Beans: 511
Edgy Eft Testing
Send a message via ICQ to geearf Send a message via MSN to geearf
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

I have no problem using ffmpeg and mplayer last cvs version with x264.
geearf is offline   Reply With Quote
Old June 4th, 2006   #9
sapo
Fresh Brewed Ubuntu
 
sapo's Avatar
 
Join Date: Mar 2005
Location: Brazil
Beans: 1,178
Ubuntu 7.04 Feisty Fawn
Send a message via MSN to sapo
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

Quote:
Originally Posted by geearf
I have no problem using ffmpeg and mplayer last cvs version with x264.
The x264 in the cvs works fine, but currently the mplayer cvs is down, they are migrating to svn.
__________________
Yet Another Coding Blog
Flash Host
sapo is offline   Reply With Quote
Old June 4th, 2006   #10
geearf
Has an Ubuntu Drip
 
geearf's Avatar
 
Join Date: May 2005
Location: Paris, France
Beans: 511
Edgy Eft Testing
Send a message via ICQ to geearf Send a message via MSN to geearf
Re: Compiling MPlayer on a fresh Dapper install, wmv, mp4, etc.

I know, though ffmpeg is back.
geearf is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:12 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry