找回密码
 注册
查看: 10586|回复: 82

Mplayer是Linux下功能超强的电影播放器

[复制链接]
发表于 2004-11-4 22:08:04 | 显示全部楼层 |阅读模式
(从源代码安装 MPlayer 需要先安装各种开发包。用 RH/FC 的社员们请先确定安装了开发部分的所有软件包。那些开发包默认是不安装的
------jiangtao9999)

Mplayer是Linux下功能超强的电影播放器,当然它也可以播放mp3,wma等声音格式文件,总之,它可以播放大家见到的所有多媒体格式文件及mms,rtsp流媒体文件。如果要直接点击网页在线观看mms,rtsp流媒体文件,需要安装相应的支持Mozilla浏览器的插件,关于流媒体方面的知识将在后面介绍。

   以下流程在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


--

╔───────╗
│欢迎大家测试 o│
│xdby.kmip.net│
╚──────㊣╝
AddType application/x-httpd-php .php
※ 来源:.笔山书院 BBS http://bbs.qxntc.edu.cn [FROM: 220.172.245.*]
发表于 2004-11-5 22:26:42 | 显示全部楼层
老大,我莫名了
我是用rh9的;当我解压MPlayer-1.0pre5.tar.bz2 时发生了如下错误,能不能帮忙解决一下?

[root@localhost mplayer]# tar jxvf MPlayer-1.0pre5.tar.bz2
tar (child): MPlayer-1.0pre5.tar.bz2: Cannot open: 没有那个文件或目录
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

帮忙解决一下!谢谢
回复

使用道具 举报

 楼主| 发表于 2004-11-5 22:35:24 | 显示全部楼层
有没有装bunzip2
回复

使用道具 举报

发表于 2004-11-5 23:38:36 | 显示全部楼层
救救我  我按你的说明做的一直很顺利 可是到了[root@localhost MPlayer-1.0pre5]# make
却显示
Makefile:7: config.mak: 没有那个文件或目录
make: *** No rule to make target `config.mak'.  Stop.
[root@localhost MPlayer-1.0pre5]# make install
Makefile:7: config.mak: 没有那个文件或目录
make: *** No rule to make target `config.mak'.  Stop.
怎么会这样 怎么解决 谢谢
回复

使用道具 举报

发表于 2004-11-6 08:57:10 | 显示全部楼层
./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/essential-20040704 –-language=zh_CN
楼上这步你做了没有?
回复

使用道具 举报

发表于 2004-11-6 10:27:34 | 显示全部楼层
做了啊  都显示很正常 难道有什么错误吗
我刚才又重新做了一次./configure --enable-gui --disable-gcc-checking --with-reallibdir=/usr/lib/essential-20040704 –-language=zh_CN
显示[root@localhost root]# cd MPlayer-1.0pre5
[root@localhost MPlayer-1.0pre5]# ./configure --enable-gui --disable-gcc-checkin
g --with-reallibdir=/usr/lib/essential-20040704 –-language=zh_CN
Detected operating system: Linux
Detected host architecture: i386

******************************************************************************

Hmm. You really want to compile MPlayer with an *UNSUPPORTED* C compiler?
Ok. You know. Do it. Did you read DOCS/HTML/en/users-vs-dev.html???

DO NOT SEND BUGREPORTS OR COMPLAIN, it's *YOUR* compiler's fault!
Get ready for mysterious crashes, no-picture bugs, strange noises... REALLY!
Lame which is used by mencoder produces weird errors, too.

If you have any problem, install a GCC 2.95.x or 3.x version and try again.
If the problem _still_ exists, then read DOCS/HTML/en/bugreports.html !

  *** DO NOT SEND BUG REPORTS OR COMPLAIN it's *YOUR* compiler's fault! ***

******************************************************************************

     
Checking for CPU vendor ... GenuineIntel (15:1:3)
Checking for CPU type ...  Intel(R) Celeron(R) CPU 1.70GHz
./configure: line 745: [: : integer expression expected
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: –-language=zh_CN
[root@localhost MPlayer-1.0pre5]# make
Makefile:7: config.mak: 没有那个文件或目录
make: *** No rule to make target `config.mak'.  Stop.
[root@localhost MPlayer-1.0pre5]#


这是为什么
回复

使用道具 举报

发表于 2004-11-6 10:34:51 | 显示全部楼层
我这个是REDHAT9.2 买的盗板的 它不会是缺什么吧
回复

使用道具 举报

发表于 2004-11-6 10:52:56 | 显示全部楼层
?!
帖子里的 ./configure 参数有问题!


已修改:
-language=zh_CN
改为
--language=zh_CN
回复

使用道具 举报

发表于 2004-11-6 10:59:38 | 显示全部楼层
回复

使用道具 举报

发表于 2004-11-6 11:04:17 | 显示全部楼层
多了个空格?估计悠然雨是粘贴复制的。
回复

使用道具 举报

发表于 2004-11-6 11:13:52 | 显示全部楼层
好像是个全角的
回复

使用道具 举报

 楼主| 发表于 2004-11-6 12:57:12 | 显示全部楼层
不好意思,我只管转贴
回复

使用道具 举报

发表于 2004-11-6 13:15:04 | 显示全部楼层
rtsp需要live.com的支持吧?
回复

使用道具 举报

发表于 2004-11-6 20:50:02 | 显示全部楼层
bunzip2?
是什么?在哪里有的装啊?应该用什么命令啊?
啊~~
实在是不好意思,没办法,我刚刚接触linux4个礼拜!嘿嘿,请高手帮忙啦^_^
回复

使用道具 举报

发表于 2004-11-7 06:51:32 | 显示全部楼层
shulami, 你是不是没有在那个文件的所在目录里 tar jxvf 啊?
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-5-18 14:13 , Processed in 0.048561 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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