Quick and Easy Mplayer Installation on Fedora Core 5 via Yum...

Mplayer is a movie player that plays most multimedia formats supported by many native and binary codecs. You can watch Video CD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV and QuickTime movies on Linux.

  1. FC5 rpms for mplayer are available at greysector.net
  2. Set up yum to use greysector repository:
    # cat <<EOF > /etc/yum.repos.d/greysector.repo
    [greysector]
    name=Grey Sector RPMs for Fedora Core $releasever - $basearch
    baseurl=http://rpm.greysector.net/yum/$releasever/$basearch/
    #mirrorlist=http://rpm.greysector.net/yum/mirrorlist-$releasever
    gpgkey=http://rpm.greysector.net/greysector-pubkey.txt
    enabled=0
    
    [greysector-all]
    name=Grey Sector RPMs for all Fedora Core releases - $basearch
    baseurl=http://rpm.greysector.net/yum/all/$basearch/
    #mirrorlist=http://rpm.greysector.net/yum/mirrorlist-all
    gpgkey=http://rpm.greysector.net/greysector-pubkey.txt
    enabled=0
    EOF
    
  3. Import the GPG Key:
    # rpm --import http://rpm.greysector.net/greysector-pubkey.txt
    
  4. Use yum to install or update the current rpms:
    # yum --enablerepo=greysector* install mplayer*
    
  5. You can selectively list the mplayer rpms and install the ones you want:
    # yum --enablerepo=greysector* list mplayer*
    # yum --enablerepo=greysector* install mplayer mplayer-gui mplayerplug-in mplayer-codecs mplayer-codecs-extra
    
  6. The required ones are mplayer, mplayerplug-in and mplayer-codecs.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

mplayer and mplayerplug-in in CentOS 5

I used rpmforge to get it easily installed.

  1. First install yum-protectbase to protect the base, updates and centosplus rpms.

    # yum install yum-protectbase

    Plugins are enabled in CentOS 5 by default.

    Edit the file /etc/yum.repos.d/CentOS-Base.repo and add the following line to the [base] and [updates] and [centosplus] section:

    protect=1

    Add the following line to the other sections:

    protect=0

  2. Install rpmforge-release via:

    # rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

    This will add a yum repository config file and import the appropriate GPG keys.

  3. Install mplayer and mplayerplug-in via:

    # yum --enablerepo=rpmforge install mplayer mplayerplug-in

mplayer on fc6

# yum --enablerepo=livna install mplayer*

Note: by default the plugins get installed in /usr/lib/mozilla/plugins folder, so may need to link the firefox plugins directory to it.

# mv /usr/lib/firefor-x.x/plugins /usr/lib/firefor-x.x/plugins.orig
# ln -s /usr/lib/mozilla/plugins /usr/lib/firefor-x.x/plugins

autoplay dvd with mplayer

To autoplay DVD go to "Preferences-->Removable Drives and Media" and set the DVD Disks to play the video using Mplayer with the below command:

mplayer %d

or

mplayer dvd://.
Comment