Blog - PC-Installation
[Pour les lecteurs français, cliquez sur le drapeau en haut à gauche pour basculer sur la page en français]
By default on my CentOS installation, I have "Movie Player" to watch videos and to listen musics.
But most of the time it can't read the videos.
So I tried to install a more versatile player.
At the beginning, I tried to install "VLC". But after a lot of problems and error messages, I gived up.
It seems that it's not possible to install easily VLC on CentOS.
And after some search in forums, I found the graal : "mplayer".
Please read the description on wikipedia:
http://en.wikipedia.org/wiki/MPlayer
That sounds a powerful player and very light in term of CPU consumption.
Important note:
MPlayer is a very good player but it don't have an easy GUI interface.
So to use it day to day, a "Frontends" should be installed.
Here the list of "MPlayer Frontends" available:
http://www.mplayerhq.hu/design3/projects.html
2 of them, seems to be very popular: "GnomeMplayer" and "SMPlayer"
For "SMPlayer", it sounds good, but no rpm for CentOS/RHel.
http://smplayer.sourceforge.net/
So I installed "GnomeMplayer"
Here the main site:
https://sites.google.com/site/kdekorte2/gnomemplayer
Here the blog of the author:
http://kdekorte.blogspot.fr/search/label/GnomeMplayer
I installed them last year, and it was working perfectly for a while.
But recently, I upgraded to CentOS 6.4, and I had some trouble with it.
After some investigations:
yum list mplayer
Installed Packages
mplayer.x86_64 4:1.2-91_snap20130509.el6 @atrpms
Available Packages
mplayer.i686 1.0.4-3.el6 linuxtech
yum list gnome-mplayer
Installed Packages
gnome-mplayer.x86_64 1.0.0-12.el6 @atrpms
Here the last version:
http://mplayerhq.hu/design7/news.html
When I write this article, it's:
2013-05-05, Sunday :: MPlayer 1.1.1 update
Obviously, I have a mismatch somewhere.
For "GnomeMplayer", only 1.0.0 version is available at "atrpms" repository.
In the blog, the version 1.0.7 is available.
But in the download page:
http://code.google.com/p/gnome-mplayer/downloads/list
The version 1.0.8 is ready...
First attempt to re-install "MPlayer" (failed):
So I downloaded tha last version from:
http://mplayerhq.hu/design7/dload.html
Player 1.1.1 release HTTP (xz compressed, 11 MB)
MPlayer-1.1.1.tar.xz
And installed it manually:
yum remove gnome-mplayer
yum remove mplayer
yum repolist
I keep only:
* epel
* rpmfusion-free-updates
* rpmfusion-nonfree-updates
I put all the other in the "--disablerepo" clause.
yum list mplayer --disablerepo=base,elrepo,extras,rpmforge,updates,linuxtech,atrpms
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* epel: nl.mirror.eurid.eu
* rpmfusion-free-updates: rpmfusion.famillecollet.com
* rpmfusion-nonfree-updates: rpmfusion.famillecollet.com
Available Packages
mplayer.x86_64 1.0-0.140.20120205svn.el6.1 rpmfusion-free-updates
Sounds good.
yum install mplayer --disablerepo=base,elrepo,extras,rpmforge,updates,linuxtech,atrpms
Hum, the installer, in add, of "mplayer" try to install 8 others components, as "ffmpeg".
But it detects conflicts:
Transaction Check Error:
file /usr/lib64/libfaad.so.2.0.0 from install of faad2-libs-1:2.7-2.el6.3.x86_64 conflicts with file from package libfaad2-1:2.7-18.el6.x86_64
file /usr/lib64/libswresample.so.0 from install of ffmpeg-libs-0.10.7-1.el6.x86_64 conflicts with file from package libswresample0-1.2.1-59.el6.x86_64
file /usr/lib64/libswscale.so.2 from install of ffmpeg-libs-0.10.7-1.el6.x86_64 conflicts with file from package libswscale2-1.2.1-59.el6.x86_64
file /usr/lib64/libpostproc.so.52 from install of ffmpeg-libs-0.10.7-1.el6.x86_64 conflicts with file from package libpostproc52-1.2.1-59.el6.x86_64
My solution:
yum remove ffmpeg
Do again:
yum install mplayer --disablerepo=base,elrepo,extras,rpmforge,updates,linuxtech,atrpms
But no way. By the difficulties, I give up and I found a better solution.
Second attempt to re-install "MPlayer" (success):
Follow instructions from:
http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS
Step 1 and Step 2, good
For Step 3, I did it, but in add, some newer codec must be installed.
( see discusion in: http://www.linuxquestions.org/questions/linux-software-2/install-mplayer-on-centos-6-0-64bit-915855/
)
Note: on page: http://www.mplayerhq.hu/MPlayer/releases/codecs/
all-20110131.tar.bz2 is still the lastest release available.
wget www1.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
bunzip2 all-20110131.tar.bz2
tar xvf all-20110131.tar
cd all-20110131
more README
...
If you use a prebuilt MPlayer package it will most likely be /usr/lib/codecs,
see the documentation of your package for details.
...
ll /usr/lib/codecs
yes, for me all the codecs are there
mv * /usr/lib/codecs
So here, "MPlayer is installed". So I need to install a latest version of "gnome-mplayer"
I tried to install the version 1.0.8 from the source and to compile it. No way...
So I browsed the web to find a latest version, as only version 1.0.0 is available at "atrpms".
yum list gnome-mplayer
Installed Packages
gnome-mplayer.x86_64 1.0.0-12.el6 @atrpms
yum list gnome-mplayer --disablerepo=base,elrepo,extras,rpmforge,updates,linuxtech,atrpms
Here the page, I found useful informations
http://pkgs.org/download/gnome-mplayer
http://pkgs.org/centos-6-rhel-6/puias-i386/gnome-mplayer-1.0.3-2.puias6.i686.rpm.html
So for my CentOS 6, a RPM version 1.0.4 is available in "Nux Dextop" yum repository.
http://pkgs.org/centos-6-rhel-6/nux-dextop-x86_64/gnome-mplayer-1.0.4-16.el6.nux.x86_64.rpm.html
Install Howto
1. Download the latest "nux-dextop-release" RPM from
http://li.nux.ro/download/nux/dextop/el6/x86_64/
it seems to be:
nux-dextop-release-0-2.el6.nux.noarch.rpm
Note:
smplayer 0.8.5 (smplayer-0.8.5-1.el6.nux.x86_64.rpm) seems to be available here, but I don't installed it now, maybe later.
2. Install nux-dextop-release rpm:
rpm -Uvh nux-dextop-release*rpm
3. Install gnome-mplayer rpm package:
yum install gnome-mplayer
yum list gnome-mplayer
...
Installed Packages
gnome-mplayer.x86_64 1.0.4-16.el6.nux @nux-dextop
Conclusion:
Finally MPlayer with the gnome-mplayer version 1.0.4 is installed on my CentOS 6, and it's working.
It's what I need. So I'am happy, even if I spent a long time to install it.