在RHEL4下安装MPlayer

 
1. 下载安装文件
-------------------------------------------------------------------
1) 主程序: 
   http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc1.tar.bz2

2) 字体文件: 
   http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2

3) 默认皮肤文件: 
   http://www1.mplayerhq.hu/MPlayer/Skin/plastic-1.2.tar.bz2
  
4) 支持avi等w32多媒体格式的插件:
   http://www1.mplayerhq.hu/MPlayer/releases/codecs/win32codecs-20040703.tar.bz2

5) 支持realplay(rm, ram等)多媒体格式的插件:
   http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

ps: 皮肤文件可以根据自己的喜好从 http://www.mplayerhq.hu/design7/dload.html 下载.


2. 将安装文件复制到 /root 的自定义目录下(如: /root/mplayer/), 然后解压缩
-------------------------------------------------------------------
1) [root@localhost ~]# tar jxvf MPlayer-1.0rc1.tar.bz2
2) [root@localhost ~]# tar jxvf font-arial-iso-8859-1.tar.bz2
3) [root@localhost ~]# tar jxvf plastic-1.2.tar.bz2
4) [root@localhost ~]# tar jxvf essential-20061022.tar.bz2
5) [root@localhost ~]# tar jxvf win32codecs-20040703.tar.bz2


3. 新建库文件存放目录(如: /usr/lib/win32), 并复制w32codecs和essential支持文件到这里
-----------------------------------------------------------------------
1) [root@localhost ~]# mkdir /usr/lib/win32
2) [root@localhost ~]# cp /root/mplayer/win32codecs-20040703/*  /usr/lib/win32
3) [root@localhost ~]# cp -r /root/mplayer/essential-20061022 /usr/lib


4. 进到MPlayer目录配置安装参数
-------------------------------------------
1) [root@localhost ~]# cd /root/mplayer
2) [root@localhost ~]# cd MPlayer-1.0rc1
3) [root@localhost ~]# ./configure --enable-gui  --with-reallibdir=/usr/essential-20061022 --language=zh_CN


5. 执行安装
-------------------------------------------
1) [root@localhost ~]# make
2) [root@localhost ~]# make install


6. 安装字体和界面皮肤
------------------------------------------
1) [root@localhost ~]# cp /root/mplayer/font-arial-iso-8859-1/font-arial-14-iso-8859-1/* /usr/local/share/mplayer/font/
2) [root@localhost ~]# cp -r /root/mplayer/plastic /usr/local/share/mplayer/skins/default


7. 复制input.conf文件
------------------------------------------
1) [root@localhost ~]# cp /root/mplayer/MPlayer-1.0rc1/etc/input.conf  /usr/local/share/mplayer


8. 运行MPlayer
------------------------------------------
1) 启动图形界面播放模式:
 [root@localhost ~]# gmplayer
2) 启动控制台播放模式:
 [root@localhost ~]# mplayer
 

做完1-8步, 则MPlayer安装完毕. 如果要添加皮肤文件, 可以参考第9步.


9. 添加皮肤
-----------------------------------------
1) 从http://www.mplayerhq.hu/design7/dload.html下载新的皮肤文件,如Orange皮肤:
   http://www.mplayerhq.hu/MPlayer/skins/Orange-1.3.tar.bz2

2) 将文件保存到指定目录后(如: /root/mplayer/), 解压缩:
   [root@localhost ~]# tar jxvf Orange-1.3.tar.bz2

3) 将解压后的文件复制到skins文件夹, 并指名为orange:
   [root@localhost ~]# cp -r /root/mplayer/Orange /usr/local/share/mplayer/skins/orange

完成后, 执行gmplayer启动图形模式, 在右建弹出菜单中找到 "皮肤浏览器"即可换肤.
 


参考:
--------------------------------------------------
http://mp.dev.hu/DOCS/HTML/zh/documentation.html
http://www.mplayerhq.hu/homepage/design7/dload.html
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值