Red Hat / CentOS Linux: Enable and Install Media, CD / DVD, Moive MP3 Players

by Vivek Gite · 19 comments

Q. How do I enable and install Media player under CentOS or Fedora or Red Hat Enterprise Linux systems? How do I play mp3s under RHEL / CentOS Linux 5.x? How do I play CD / DVD movies under RHEL / CentOS Linux version 5.x?

A. EPEL (Extra Packages for Enterprise Linux) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages but you will not find mp3, dvd and music / media player under EPEL.

RPMforge Repo

RPMforge is a collaboration of Dag, Dries, and other packagers. They provide over 4000 packages for CentOS, including mplayer, xmms-mp3, dvd, cd and other popular media players tools. It is not part of RedHat or CentOS / Fedora but is designed to work with these major distributions.

How do I enable RPMforge repo?

Login as root user and type the following command at a shell prompt:
# rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.$(uname -i).rpm
Sample output:

Retrieving http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
warning: /var/tmp/rpm-xfer.jWb790: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:rpmforge-release       ########################################### [100%]

Import GPG keys, enter:
# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

A note about CentOS v5.x / 4.x

You also need to install yum-priorities, which is available in the CentOS v5 / 4 repositories:
# yum -y install yum-priorities
Sample output:

Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * epel: mirrors.xmission.com
 * base: mirrors.gigenet.com
 * updates: pubmirrors.reflected.net
 * addons: centos.mirrors.tds.net
 * extras: centos.mirrors.tds.net
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package yum-priorities.noarch 0:1.1.10-9.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 yum-priorities          noarch     1.1.10-9.el5.centos  base               11 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)         

Total download size: 11 k
Downloading Packages:
(1/1): yum-priorities-1.1 100% |=========================|  11 kB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: yum-priorities               ######################### [1/1] 

Installed: yum-priorities.noarch 0:1.1.10-9.el5.centos
Complete!

Test your setup

Finally, type the following command to test new repo:
# yum check-update
Sample output:

Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading "priorities" plugin
Loading mirror speeds from cached hostfile
 * epel: mirrors.xmission.com
 * rpmforge: fr2.rpmfind.net
 * base: mirrors.gigenet.com
 * updates: pubmirrors.reflected.net
 * addons: centos.mirrors.tds.net
 * extras: centos.mirrors.tds.net
rpmforge                  100% |=========================| 1.1 kB    00:00
primary.xml.gz            100% |=========================| 2.5 MB    00:06
rpmforge  : ################################################## 7247/7247
0 packages excluded due to repository priority protections

cadaver.x86_64                           0.22.5-1.el5.rf        rpmforge
lftp.x86_64                              3.7.3-1.el5.rf         rpmforge
mtr.x86_64                               2:0.72-1.el5.rf        rpmforge
rsync.x86_64                             3.0.3-1.el5.rf         rpmforge
syslinux.x86_64                          3.71-1.el5.rf          rpmforge
udftools.x86_64                          1.0.0b3-3.el5.rf       rpmforge
[root@centos tmp]# yum check-update
Loading "skip-broken" plugin
Loading "fastestmirror" plugin
Loading "priorities" plugin
Loading mirror speeds from cached hostfile
 * epel: mirrors.xmission.com
 * rpmforge: fr2.rpmfind.net
 * base: mirrors.gigenet.com
 * updates: pubmirrors.reflected.net
 * addons: centos.mirrors.tds.net
 * extras: centos.mirrors.tds.net
0 packages excluded due to repository priority protections

cadaver.x86_64                           0.22.5-1.el5.rf        rpmforge
lftp.x86_64                              3.7.3-1.el5.rf         rpmforge
mtr.x86_64                               2:0.72-1.el5.rf        rpmforge
rsync.x86_64                             3.0.3-1.el5.rf         rpmforge
syslinux.x86_64                          3.71-1.el5.rf          rpmforge
udftools.x86_64                          1.0.0b3-3.el5.rf       rpmforge 

How do I install media players?

Type the following command to install media players:
# yum -y install mplayer vlc xmms-mp3 xmms-flac xmms-wma xmms-skins

To play mp3 enter

$ mplayer *.mp3
OR
$ xmms &

To play CD / DVD or media file enter

$ vlc moive.avi
$ vlc &
$ mplayer file.avi

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 19 comments… read them below or add one }

1 Frolov Denis 09.03.08 at 1:14 pm

for install audio and video players install EPEL and redhat-club repository

rpm -ihv http://repo.redhat-club.org/redhat/5/i386/redhatclub-repository-release-5-2.el5.rhc.noarch.rpm http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm

install audio, video software

yum install audacious*, mplayer, mplayer-gui, xine, xine-lib-extras-nonfree, xmms*, amarok, smplayer, smplayer-themes, moc, easytag, grip

install IM software

yum install psi, psi-icons, psi-i18n, licq*, gajim, sim

install bittorrent clients

yum install deluge, transmission, bittorrent, bittorrent-gui, aria2

install image viewers

yum install geeqie, f-prot

yum install djvulibre, epdfview

2 kinglyr 10.12.08 at 6:32 pm

When you go to intall moc (yum install moc) you get Error: Missing Dependency: libx264.so.58 is needed by package ffmpeg-libs

3 amitkumar 10.20.08 at 2:34 pm

mp3 player

and vcd cutter

and any softer

4 Frolov Denis 10.21.08 at 1:37 am
# yum install moc
Loading "list-data" plugin
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * epel: mirror.yandex.ru
 * extras: mirror.yandex.ru
 * redhatclub-repository: repo.redhat-club.org
 * base: mirror.yandex.ru
 * updates: mirror.yandex.ru
 * addons: mirror.yandex.ru
 * redhatclub-repository-devel: redhat-club.org
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package moc.i386 0:2.4.3-el5.rhc.1 set to be updated
--> Processing Dependency: libavcodec.so.51 for package: moc
--> Processing Dependency: libavutil.so.49 for package: moc
--> Processing Dependency: libavformat.so.52 for package: moc
--> Running transaction check
---> Package ffmpeg-libs.i386 0:0.4.9-el5.rhc.0.46.20080225.1 set to be updated
--> Processing Dependency: libx264.so.58 for package: ffmpeg-libs
--> Running transaction check
---> Package x264.i386 0:0.0.0-el5.rhc.0.12.20080227 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 moc                     i386       2.4.3-el5.rhc.1  redhatclub-repository  166 k
Installing for dependencies:
 ffmpeg-libs             i386       0.4.9-el5.rhc.0.46.20080225.1  redhatclub-repository  1.9 M
 x264                    i386       0.0.0-el5.rhc.0.12.20080227  redhatclub-repository  248 k

Transaction Summary
=============================================================================
Install      3 Package(s)
Update       0 Package(s)
Remove       0 Package(s)         

Total download size: 2.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): x264-0.0.0-el5.rhc 100% |=========================| 248 kB    00:00
(2/3): ffmpeg-libs-0.4.9- 100% |=========================| 1.9 MB    00:00
(3/3): moc-2.4.3-el5.rhc. 100% |=========================| 166 kB    00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: x264                         ######################### [1/3]
  Installing: ffmpeg-libs                  ######################### [2/3]
  Installing: moc                          ######################### [3/3] 

Installed: moc.i386 0:2.4.3-el5.rhc.1
Dependency Installed: ffmpeg-libs.i386 0:0.4.9-el5.rhc.0.46.20080225.1 x264.i386 0:0.0.0-el5.rhc.0.12.20080227
Complete!
5 uma 11.28.08 at 1:39 pm

Howto find out LINUX 5 CPU information, clock speed

6 nobody 12.10.08 at 8:18 am

Hi!

I got the errors below after executing “yum install mplayer”:

Error: Missing Dependency: libdvdread.so.3 is needed by package lsdvd
Error: Missing Dependency: libcucul.so.0 is needed by package mplayer
Error: Missing Dependency: libdvdread.so.3 is needed by package libdvdplay

Anyone has an idea how to solve this problem?

Thanks.

7 brajesh 12.25.08 at 7:10 pm

hi,
i m very new to rhel. i m using rhel ws 3. plz suggest how & which packages i’ll hav to
dwnld 4 playing media files. i guess u hav d right answers 4 dis.

thanx

8 kareem 01.19.09 at 4:47 am

hi,
how to install the media players and software packages in red hat linux

9 kareem 01.19.09 at 5:04 am

and what different red hat Linux and EPEL

THANKS

10 ranjan 01.21.09 at 7:22 pm

That is the BEST ever description of the process to get media players installed on CentOS/RHEL machines.

Saved me hours !!! Thanks a lot man. This is awesome !

I appreciate it

11 ashwani 01.25.09 at 2:48 pm

hi,
plzz tell me how can i run exe file on red hat linux 5 .and how can i install drivers four webcam and bluetootj devices

12 navdeep shanker 01.31.09 at 6:08 pm

hi i want 2 know that how can i run the exe files in red hat 9..
thanx

13 raj 03.25.09 at 5:32 pm

hello friend i like process to run a cd or dvd and how to install it

this is the great site i thanks to that person who made this system

REgard raj

14 akki 07.28.09 at 5:47 am

hi im using rhel5 and iwnt to download the bit torrent

15 Chetan 08.07.09 at 10:29 am

hi everyone.

i am using centos.
here is in my music player he’s playing wav. midi file but showing eror for mp3 file
what i do please tell me solution.

16 Aditya 08.17.09 at 10:21 am

Hey !!
plzz guide me to install VLC player on CentOS ..

ty

17 Filth 12.01.09 at 1:44 pm

yum install vlc

18 parveen dabas 01.08.10 at 1:15 pm

dhanyawad filth

19 parveen dabas 01.08.10 at 1:15 pm

wel dhanyawad means thanks dude

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All