We can check your plugins and stuff

Wednesday, February 2, 2011

Build MPlayer the right way and fast on Fedora

We all know Mplayer and love it for the amazing multimedia features it has...
But for a while it has not seen any updates. Today while looking around the web I found the latest RC build of Mplayer and gave it a spin and boy does it rock :D If you are anything like me and love to compile some code to get better results, this post is for you.


Do try the latest build of MPlayer ... it's not a new project/software but the new build rocks....
I got it working with very low cpu usage and good quality with the following tweaks...


Download the latest MPlayer 1.0 RC4  from here

ftp://ftp1.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2

Also download the latest source of Yasm as it is needed.
( you can always do a yum install yasm, but this will install ver 1.0.1 not the latest and greatest ver 1.1.0)


http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz

Uncompress the yasm source, use ark or the command line whatever does it for you.

extract and change to the dir..


now export the following


#export CFLAGS='-O3 -pipe -march=native -mtune=native'
#export CXXFLAGS='-O3 -pipe -march=native -mtune=native'

Note if you have a Core 2 Duo use 'core2' for better results.



#./configure
#make -j6
#make -j6 check

you should get
===================
All 41 tests passed
===================

#make install


Now extract mplayer-checkout-2011-02-01 and change to the dir.. 

#./configure  
(this will check out the latest svn build of ffmpeg first, you must have a working internet connection)




#make -j6
#make install

That's it enjoy much faster and better quality video playback on your Fedora Linux.

No comments:

Post a Comment