Saturday, October 15, 2011

How to enable Media playback on CentOS, Oracle Linux and RHEL 6

This HOW-TO will go thru the process of enabling multimedia like DivX, WMV and other codecs
(or MPlayer and its codecs) on CentOS 6 and other Enterprise Linux versions (like Oracle and Red Hat)

First make sure you have the ATrpms and RPMforge repositories enabled.
If you like Media player in gnome (based on totem and gstreamer) Then just install the 2 packages below. Otherwise see the Mplayer install.

Install plugins for gnome default media player
Open a terminal
yum install gstreamer-ffmpeg gstreamer-plugins-ugly gstreamer-plugins-bad libmms
Thats it! Now you can play almost everything.
If you feel that its not enough, then install MPlayer too.

Install Mplayer
su - root
yum install ffmpeg libdvdcss libdvdread libdvdnav lsdvd mplayer gnome-mplayer

# Then download the lastest complete codec pack. (This was the latest at the time)
cd ~
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
tar -jxvf all-20110131.tar.bz2
cd all-20110131

# Create the codecs directory and copy the plugins there.
mkdir /usr/lib/codecs
cp * /usr/lib/codecs

Now you should have GNOME-Mplayer under Sound & Video in the start menu.
Enjoy!
Web Analytics