Linux CentOS6.0安装MPlayer

2011年12月10日

原帖地址:https://www.myzhenai.com/thread-14328-1-1.html
完整方法请参考:https://www.myzhenai.com/thread-14328-1-1.html
https://www.myzhenai.com/thread-14390-1-1.html

1、下载几个必要的软件包(解码器):
all-20110131.tar.bz2 和 windows-all-20071007.zip

需要的安装包及下载地址:
1、MPlayer-1.0rc4.tar.bz2 :mplayer源代码包,下载地址:https://www.mplayerhq.hu/MPlayer/releases/
2、all-20110131.tar.bz2 :解码器安装包,下载地址:https://www.mplayerhq.hu/MPlayer/releases/codecs/
3、 windows-all-20071007.zip :win32解码器安装包,下载地址:https://www.mplayerhq.hu/MPlayer/releases/codecs/
4、Clearlooks-1.2.tar.bz2 :皮肤安装包,下载地址:https://www.mplayerhq.hu/MPlayer/skins/

mplayer的编码包默认应安装在/usr/local/lib/codecs/中,win32编码默认安装在/usr/local/lib/win32
(如果装在了其他目录,在装MPlayer时,./configure的参数要指明路径,参数是–codecsdir=“包的路径”,–win32libdir=“包的路径”)
解压MPlayer解码器
# tar -jxvf all-20110131.tar.bz2
# mkdir /usr/local/lib/codecs/
# mv -f all-20110131/* /usr/local/lib/codecs/ //一定要注意,是把 all-20110131 中所有的文件复制到/usr/loc-al/lib/codecs中,而不是文件夹,否则编译后不能播放。

解压win32解码器
# unzip windows-all- 20071007 .zip
# mkdir /usr/local/lib/win32
# mv window-all- 20071007 /* /usr/local/lib/win32

二、安装
我所有的软件包都下载到目录/usr/local/ ,具体目录根据自己情况定义。
1、安装步骤:
安装主题文件:
#tar -jxvf MPlayer-1.0rc4.tar.bz2
#cd MPlayer-1.0rc4
# ./configure –codecsdir=/usr/local/lib/codecs –enable-gui –enable-largefiles –enable-menu –language=zh_CN,en –charset=utf8
解释一下参数
–enable-gui 是打开图形界面 这个我想一般都需要
–enalbe-largefiles 允许播放超过2g的大文件
–enable-menu 允许菜单
–prefix=/usr 如果加上此句,mplayer,gmplayer放到/usr/bin/目录下,没有此句,则在安装目录/bin下
–confdir=/usr/local/mplayer 这个是mplayer的安装目录
此外,还有几个参数也介绍一下,也许有用。
–disable-gcc-checking 不检查gcc的版本。此处不用,MPlayer-1.0rc1就是需要gcc4.1而CentOS 5就是gcc4.1
–language=zh_CN安装中文界面。
如果编译没有错误则执行:
#make
#make install
安装皮肤:
默认的安装路径是/usr/local/share/mplayer/skins/目录,默认的皮肤目录为default
#tar -jxvf Clearlooks-1.2.tar.bz2
#cd /usr/local/share/mplayer/skins
#mkdir default
#cd Clearlooks
#cp ./* /usr/local/mplayer/share/mplayer/skins/default
这个步骤完成你可以拥有图形界面了,进入/usr/local/bin目录执行gmplayer或mplayer打开播放器。

三、卸载程序:
#cd MPlayer-1.0rc1
#make uninstall
删除其他相关的文件。

Ubuntu11.10系统不能播放音乐文件的时候,请在新立得软件管理程序里搜索以下几个文件进行安装.
gstreamer-ffmpeg
gstreamer-plugins-bad
gstreamer-plugins-ugly


sicnature ---------------------------------------------------------------------
Your current IP address is: 3.89.163.120
Your IP address location: 美国弗吉尼亚阿什本
Your IP address country and region: 美国 美国
Your current browser is:
Your current system is:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com.cn/post/512.html

1 评论

  • 海南胡说 2016年07月11日在6:05 上午

    ./configure –codecsdir=/usr/local/lib/codecs –enable-gui –enable-largefiles –enable-menu –language=zh_CN,en –charset=utf8

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注