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

Posted on in Categories , , , , , , last updated September 2, 2008

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        
[[email protected] 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

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

34 comment

  1. 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. # 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!
    
  3. 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.

  4. 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

  5. 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

  6. 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)
    [[email protected] ~]# 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