实验环境:CentOS 6.5 x86_64
Mplayer官网:http://www.mplayerhq.hu/
RPM Fusion官网:http://rpmfusion.org/
EPEL网址:http://fedoraproject.org/wiki/EPEL/zh-cn
1.准备yum源。
[[email protected] ~]# wget http://download1.rpmfusion.org/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm
[[email protected] ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[[email protected] ~]# yum -y install rpmfusion-free-release-6-1.noarch.rpm
[[email protected] ~]# yum -y install epel-release-6-8.noarch.rpm
2.安装mplayer。
[[email protected] ~]# yum list | grep mplayer
mplayer.x86_64 1.0-0.140.20120205svn.el6.1 @rpmfusion-free-updates
mplayer-common.x86_64 1.0-0.140.20120205svn.el6.1 @rpmfusion-free-updates
mplayer-doc.x86_64 1.0-0.140.20120205svn.el6.1 rpmfusion-free-updates
mplayer-gui.x86_64 1.0-0.140.20120205svn.el6.1 rpmfusion-free-updates
mplayer-tools.x86_64 1.0-0.140.20120205svn.el6.1 rpmfusion-free-updates
[[email protected] ~]# yum -y install mplayer
3.安装视频解码器。
首先到mplayer官网下载解码器,我下的是all-20110131.tar.bz2
[[email protected] ~]# tar -jxvf all-20110131.tar.bz2
*默认解码器的安装目录是/usr/local/lib/codecs/,没有的话新建:
[[email protected] ~]# mkdir /usr/local/lib/codecs/
[[email protected] ~]# mv all-20110131/* /usr/local/lib/codecs/
4.安装mplayer图形化界面。
[[email protected] ~]# yum -y install mplayer-gui
现在就大功告成了,赶快去体验一下你的视频播放器吧!