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.reImport the GPG Key:po [greysector] name=Grey Sector RPMs for Fedora Core $releasever - $basearch baseurl=http://rpm.g reysector.net/yum/$releasever/ $basearch/ #mirrorlist=http:// rpm.greysector.net/yum/mirrorl ist-$releasever gpgkey=http:// rpm.greysector.net/greysector- pubkey.txt enabled=0 [greysec tor-all] name=Grey Sector RPMs for all Fedora Core releases - $basearch baseurl=http://rpm.g reysector.net/yum/all/$basearc h/ #mirrorlist=http://rpm.grey sector.net/yum/mirrorlist-all gpgkey=http://rpm.greysector.n et/greysector-pubkey.txt enabl ed=0 EOF
# rpm --import http://rpm.greysector.net/greyUse yum to install or update the current rpms:sector-pubkey.txt
# 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.
- sandip's blog
- Login or register to post comments
Comments
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.r epo 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-releas e-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
# 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.o rig
# ln -s /usr/lib/mozilla/plugins /usr/lib/firefor-x.x/plugins
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