实验环境: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源。
[root@gxh ~]# wget http://download1.rpmfusion.org/free/el/updates/6/x86_64/rpmfusion-free-release-6-1.noarch.rpm
[root@gxh ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@gxh ~]# yum -y install rpmfusion-free-release-6-1.noarch.rpm
[root@gxh ~]# yum -y install epel-release-6-8.noarch.rpm
2.安装mplayer。
[root@gxh ~]# 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
[root@gxh ~]# yum -y install mplayer
3.安装视频解码器。
首先到mplayer官网下载解码器,我下的是all-20110131.tar.bz2
[root@gxh ~]# tar -jxvf all-20110131.tar.bz2
*默认解码器的安装目录是/usr/local/lib/codecs/,没有的话新建:
[root@gxh ~]# mkdir /usr/local/lib/codecs/
[root@gxh ~]# mv all-20110131/* /usr/local/lib/codecs/
4.安装mplayer图形化界面。
[root@gxh ~]# yum -y install mplayer-gui
现在就大功告成了,赶快去体验一下你的视频播放器吧!
原文链接:https://www.f2er.com/centos/379605.html