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.
-
FC5 rpms for mplayer are available at greysector.net
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 EOFImport the GPG Key:
# rpm --import http://rpm.greysector.net/greysector-pubkey.txtUse yum to install or update the current rpms:
# yum --enablerepo=greysector* install mplayer*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-extraThe required ones are mplayer, mplayerplug-in and mplayer-codecs.
mplayer and mplayerplug-in in CentOS 5
I used rpmforge to get it easily installed.
First install yum-protectbase to protect the base, updates and centosplus rpms.
Install rpmforge-release via:
# 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
# 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.
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:
or