在Ubuntu 11.04 下面,Mplayer安装


安装mplayer步骤

第一步:下载文件

(1)主程序:http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre5.tar.bz2
(2)字体文件:http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2
(3)Skin文件(支持GUI):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-20040704.tar.bz2

PS:如果上面的地址无法访问的话,请去这个地址下载http://www1.mplayerhq.hu/MPlayer/

相关阅读:Fedora 14下Mplayer + KMPlayer的安装 http://www.linuxidc.com/Linux/2011-06/37541.htm

2、把以上5个文件拷入/root下(可以自己选择目录),解压:
[root@localhost root]#tar jxvf MPlayer-1.0pre5.tar.bz2
[root@localhost root]# tar jxvffont-arial-iso-8859-1.tar.bz2
[root@localhost root]# tar jxvfplastic-1.2.tar.bz2

[root@localhost root]# tar jxvfwin32codecs-20040703.tar.bz2
[root@localhost root]# tar jxvfessential-20040704.tar.bz2

解压后的文件名比较长,可以考虑通过mv或ln等命令进行文件夹改名或连接,方便下面过程的进行。本文档没有做文件名处理。

3、拷贝w32codec支持库(win32codecs-20040703)及realplay支持库(essential-20040704)

一定要先执行这一步,而且拷入的目录一定要注意,如果你已安装了realplay8或realplay9也可不需拷入realplay的支持库,只是下面运行configure时要注意它所在的目录。www.linuxidc.com
[root@localhost root]#mkdir /usr/lib/win32
[root@localhost root]# cp/root/win32codecs-20040703/* /usr/lib/win32
[root@localhostroot]# cp -r /root/essential-20040704 /usr/lib

4、进入Mplayer安装目录并执行,注意参数:
[root@localhost root]#cd MPlayer-1.0pre5
[root@localhost MPlayer-1.0pre5]# ./configure--enable-gui --disable-gcc-checking--with-reallibdir=/usr/lib/essential-20040704 --language=zh_CN
(不建议加上 --disable-gcc-checking参数----jiangtao9999)

#说明:--enable-gui是用来支持图形界面的播入器,--disable-gcc-checking是用来跳过对gcc版本的检查(但不保证在所有的linux下都能通过下面的操作。如有这种情况,请说明),--with-reallibdir=/usr/lib/essential-20040704是用来指定realplay支持库所在的目录。如果你已安装了realplay8那这个选项应该为:--with-reallibdir=/usr/lib/RealPlay8/codecs如果你已安装了realplay9(你可根据实际修改):--with-reallibdir=/root/Real/codecs,–-language=zh_CN是用来指定Mplayer的字体为中文。1.0版本已经支持rtsp流,所以不用–-enable-live。

现在进行到这一步

当前目录:/root/MPlayer-1.0pre5

./configure--enable-gui --disable-gcc-checking--with-reallibdir=/usr/lib/essential-20040704 --language=zh_CN

出现问题:

“X11support required for GUI compilation”

整整好了一个晚上和一个上午解决了几个问题,但是还是被“

“X11support required for GUI compilation”给卡住了,goolge了N次,找了很多帖子,安装了别人说的一切的包,还是不顶用。

最后偶然发现KMPlayer,是基于Mplayer的,没用几分钟就搞定安装成功,经测试很给力。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值