QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 18570|回复: 71

MPlayer安装成功了,同大家分享分享.

  [复制链接]
发表于 2004-12-14 18:43:01 | 显示全部楼层 |阅读模式
Mplayer是Linux下功能超强的电影播放器,当然它也可以播放mp3,wma等声音格式文件.
以下流程在RedHat9下通过,适合对Linux有初步了解的朋友:

1、下载安装所需文件:
(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



如果只是在控制台(文本)下运行,只用下载(1)(4)(5),如果想要图形界面并支持中文,以上5个都要下载。


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

[root@localhost root]# tar jxvf win32codecs-20040703.tar.bz2
[root@localhost root]# tar jxvf essential-20040704.tar.bz2



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


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

一定要先执行这一步,而且拷入的目录一定要注意,如果你已安装了realplay8或realplay9也可不需拷入realplay的支持库,只是下面运行configure时要注意它所在的目录。
[root@localhost root]# mkdir /usr/lib/win32
[root@localhost root]# cp /root/win32codecs-20040703/* /usr/lib/win32
[root@localhost root]# 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支持库所在的目录。如果你已安装了realplay 8那这个选项应该为:--with-reallibdir=/usr/lib/RealPlay8/codecs 如果你已安装了realplay 9(你可根据实际修改):--with-reallibdir=/root/Real/codecs, –-language=zh_CN是用来指定Mplayer的字体为中文。1.0版本已经支持rtsp流,所以不用 –-enable-live。


5、依次执行:
[root@localhost MPlayer-1.0pre5]# make
[root@localhost MPlayer-1.0pre5]# make install


6、拷入字体:
[root@localhost MPlayer-1.0pre5]# cp /root/ font-arial-iso-8859-1/font-arial-14-iso-8859-1/* /usr/local/share/mplayer/font/


7、拷入Skin:
[root@localhost MPlayer-1.0pre5]# cp -r /root/plastic /usr/local/share/mplayer/Skin/default



注意Skin的首字母要大写


8、拷入input.conf文件:
[root@localhost MPlayer-1.0pre5]# cp /root/ MPlayer-1.0pre5/etc/input.conf /usr/local/share/mplayer/


9、在X下运行gmplayer 可启动图形界面播入模式,控制台下运行mplayer可以启动字符播放模式。



关于Mplayer播放器的使用很简单,自己摸索一下就知道了。

反正你按照我的的方面一步一步做下去一定能装成功.

网上参考文档:

http://mp.dev.hu/DOCS/HTML/zh/documentation.html

http://www.mplayerhq.hu/homepage/design7/dload.html
发表于 2004-12-20 22:44:06 | 显示全部楼层
(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

只装(5),不装(4)
回复

使用道具 举报

发表于 2004-12-21 16:17:30 | 显示全部楼层
谢谢您,我试一试!
回复

使用道具 举报

发表于 2004-12-23 14:25:31 | 显示全部楼层
我安装完以后  为何 我的界面  除了几个 英文以外  其他全是空白?
回复

使用道具 举报

发表于 2004-12-24 01:49:36 | 显示全部楼层
8、拷入input.conf文件:
[root@localhost MPlayer-1.0pre5]# cp /root/ MPlayer-1.0pre5/etc/input.conf /usr/local/share/mplayer/
这是什么意思?起什么作用呢?谁能给解释一下吗?
我没有做这一步没什么影响吧?
回复

使用道具 举报

发表于 2004-12-24 13:20:02 | 显示全部楼层
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).


我咋出现这个错误了,谢谢
回复

使用道具 举报

发表于 2004-12-24 13:43:49 | 显示全部楼层
不好意思,搞定了,安装了gtk-devel和gtk+-devel就ok了
回复

使用道具 举报

发表于 2004-12-26 03:32:16 | 显示全部楼层
[root@localhost MPlayer-1.0pre5]# ./configure -enable-gui -disable-gcc-che               cking -with-reallibdir=/usr/lib/essential-20040704 -language=zh_CN
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 3.2.2, ok
Checking for CPU vendor ... GenuineIntel (15:1:3)
Checking for CPU type ...  Intel(R) Celeron(R) CPU 1.70GHz
Checking for GCC & CPU optimization abilities ... pentium4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for mtrr support ... yes
Unknown parameter: -enable-gui
[root@localhost MPlayer-1.0pre5]# make
Makefile:7: config.mak: 没有那个文件或目录
make: *** No rule to make target `config.mak'.  Stop.

我的不能装啊?
回复

使用道具 举报

发表于 2004-12-26 08:01:16 | 显示全部楼层
--enable-gui应该
回复

使用道具 举报

发表于 2004-12-26 17:03:39 | 显示全部楼层
装好了,哈哈
我把开发工具全装了,
但是怎么不能播放rm,rmvb各式的阿?只能看avi的阿!
回复

使用道具 举报

发表于 2004-12-27 13:38:14 | 显示全部楼层
看你下的包就知道了,去下那个all的包吧,不是essential-的,当然,现在也可以去下real9的codecs补进去,就是要再configure 一遍了,开始下载那个all的codecs包就好多了。省事。
回复

使用道具 举报

发表于 2004-12-27 17:52:28 | 显示全部楼层
    
我重装了一遍mplayer,都可以播放了哦!
谢谢大家帮忙!
回复

使用道具 举报

发表于 2004-12-28 21:50:31 | 显示全部楼层
我的装完以后界面除了英文的,其它的也全是空白,这是为什么啊?
回复

使用道具 举报

发表于 2004-12-29 05:23:44 | 显示全部楼层
楼上的朋友我也一样,界面打开都没问题,但是点右键菜单就只有图标没有文字。。我照楼主写的把字体拷入font文件夹了。。起初认为是指定mplayer的字体文zh_CN的原因,到mplayer主页去下载了gb2312的字体文件包解了也一样没变化。。 希望楼主给个解决方案吧,多谢!
回复

使用道具 举报

发表于 2004-12-29 10:08:53 | 显示全部楼层
我的RedHat9现在遇到问题是x11******for GUI complient
不知道我的系统缺什么了,请教高手
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-20 16:57 , Processed in 0.253231 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表