≡ Menu

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

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

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 34 comments… add one }
  • Frolov Denis September 3, 2008, 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

  • kinglyr October 12, 2008, 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

  • amitkumar October 20, 2008, 2:34 pm

    mp3 player

    and vcd cutter

    and any softer

  • Frolov Denis October 21, 2008, 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!
    
  • uma November 28, 2008, 1:39 pm

    Howto find out LINUX 5 CPU information, clock speed

  • nobody December 10, 2008, 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.

    • Vikas January 2, 2012, 8:09 am

      try
      yum install mplayer*

      Add start to the end of the player

  • brajesh December 25, 2008, 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

  • kareem January 19, 2009, 4:47 am

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

  • kareem January 19, 2009, 5:04 am

    and what different red hat Linux and EPEL

    THANKS

  • ranjan January 21, 2009, 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

  • ashwani January 25, 2009, 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

    • sathya June 21, 2010, 2:49 pm

      hi you try this to activate bluetooth
      \etc\init.d\bluetooth start

    • Vikas January 2, 2012, 8:10 am

      try wine

  • navdeep shanker January 31, 2009, 6:08 pm

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

    • steph July 25, 2010, 1:53 am

      winehq.org

  • raj March 25, 2009, 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

  • akki July 28, 2009, 5:47 am

    hi im using rhel5 and iwnt to download the bit torrent

  • Chetan August 7, 2009, 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.

  • Aditya August 17, 2009, 10:21 am

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

    ty

    • Vikas January 2, 2012, 8:11 am

      hell will work out. No to centos and redhat 6

  • Filth December 1, 2009, 1:44 pm

    yum install vlc

    • Vikas January 2, 2012, 8:11 am

      yum install vlc*

  • parveen dabas January 8, 2010, 1:15 pm

    dhanyawad filth

  • parveen dabas January 8, 2010, 1:15 pm

    wel dhanyawad means thanks dude

  • Alwin November 29, 2010, 12:40 pm

    Hello please give information about Linux CentOS to install VLC player..

  • mike December 10, 2010, 8:28 pm

    Link read the part.

  • ANAND November 10, 2011, 4:17 am

    Hi tell me how to play a video player on REDHAT linux 6.0
    when i install vlc softwares i got a massage that “unable to resolve dependecies”…….?
    please provide me link as well as procedure step by step about installing video player.

    ANAND

    • victories March 25, 2012, 2:07 pm

      yum clean all
      yum –disablerepo=epel install vlc

  • Victor March 20, 2012, 9:21 pm

    Спасибо все работает отлично. Thanks all very good work.

  • mahesh May 6, 2013, 11:44 am

    i want to install media players in red hat linux . .in my office system.
    so if i got installed did it goes any information to Technical team.
    and also how i want to install media players in the red hat linux. so how to get it.

    Thank’s

  • Afsar July 24, 2014, 11:17 am

    i m getting this error

    
    rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.$(uname -i).rpm
    Retrieving http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
    error: skipping http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm - transfer failed - Unknown or unexpected error
    warning: u 0x17689ea0 ctrl 0x1768b2a0 nrefs != 0 (apt.sw.be http)
    [root@fex214 ~]# rpm -ivh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.$(uname -i).rpm
    Retrieving http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
    error: skipping http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm - transfer failed - Unknown or unexpected error
    warning: u 0x27b4ea0 ctrl 0x27b62a0 nrefs != 0 (apt.sw.be http)
    
    

    please what should i do

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , , , , , , , ,