mplayer rc2 安装

Fedora 8下安装mplayer-1.0rc2播放器


如果要在Fedora 8下安装mplayer播放器,那么首先肯定要在mplayer网站上下载以下文件

http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2

http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

http://www1.mplayerhq.hu/MPlayer/releases/codecs/windows-all-20071007.zip

skin http://www1.mplayerhq.hu/MPlayer/skins/Abyss-1.6.tar.bz2

font http://www1.mplayerhq.hu/MPlayer/contrib/fonts/chinesefonts/gb2312-ming.tar.bz2

下载完后 解压解码器包放到/usr/lib/下

tar jvxf all-20071007.tar.bz2

sudo mv all-20071007 /usr/lib/codecs

unzip windows-all-20071007.zip

sudo mv windows-all-20071007 /usr/lib/win32


现在解压MPlayer-1.0rc2.tar.bz2

tar jvxf MPlayer-1.0rc2.tar.bz2

cd MPlayer-1.0rc2

sudo ./configure --prefix=/usr/local/mplayer --enable-gui --codecsdir=/usr/lib/codecs --win32codecsdir=/usr/lib/win32 --language=zh_CN

编译安装make

make install

安装完后解压skin和font

tar jvxf Abyss-1.6.tar.bz2

sudo mv Abyss-1.6 /usr/local/mplayer/share/mplayer/skin/default

tar jvxf gb2312-ming.tar.bz2

cd gb2312-ming/gbsn00lp16/

sudo cp * /usr/local/mplayer/share/mplayer/font/

好了,一切成功!


 

你如果按照上面的方法安装你就会发现你的有关视频文件是不能够播放的,比如*.rmvb!

但是任何问题都是会解决的
下面就是解决的一些方法和措施
 

适用平台:Fedora 8 64位系统验证通过。

故 障原因:yum方式安装了mplayer。下载了all-codecs解码包,解压到readme中所说的 /usr/local/lib/codecs/目录仍然不能播放rmvb。只有声音没有图像,提示Cannot find codec matching selected -vo and video format 0x30345652。其实mplayer官方的解码包名称模糊,all-codecs并不含有rmvb解码所需的全部解码器。另外由于非源码安装的 mplayer路径并不是/usr/local/lib/codecs/。

解决方法:正确安装适用64位系统的解码器

解决步骤:

1、从http://www.mplayerhq.hu/MPlayer/releases/codecs/下载下面四个文件

all-20071007.tar.bz2

essential-amd64-20071007.tar.bz2

windows-all-20071007.zip

windows-essential-20071007.zip

2、在命令行模式下用mplayer播放一个rmvb格式的文件,注意查看出错信息,看mplayer是从哪儿读取的插件。

我的出错信息如下

Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.so:
cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drv4.so.6.0:
cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.bundle/Contents/MacOS/drvc:
cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!

所以我的mplayer解码目录是/usr/lib64/codecs

3、将上述4个文件解压到你自己的mplayer提示目录即可(例如,我的系统就将4个文件解压到/usr/lib64/codecs目录)。

注意事项:

1、实际上播放rmvb只要几个文件,将所有的解码器放在一起是防止播放其他文件出现类似问题。

2、所有的文件直接在codecs目录下,而不是在codecs/all-20071007等类似目录下

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值