系统f9,已更新
我用的是源码安装,需下载以下东西:
libmad-0.15.1b-5.fc9.i386.rpm
zlib-1.2.3-18.fc9.i386.rpm
openmotif-libs-2.2.4-6.1.i386.rpm
all-20071007.tar.bz2
Blue-1.7.tar.bz2
MPlayer-1.0rc2.tar.bz2
MPlayer-1.0rc2.tar.bz2.md5
MPlayer-1.0rc2.tar.bz2.sha1
MPlayer-1.0rc2.tar.bz2.torrent
windows-all-20071007.zip
前三个是安装时要用到,首先安装它们,在安装openmotif-libs-2.2.4-6.1.i386.rpm时会有一个依赖关系,使用yum install {软件名},就可以了,会自动安装
然后再安装openmotif-libs-2.2.4-6.1.i386.rpm
以下是重点,依照http://pengjiayou.com/blog/mplayer-installed-fedora-9/,不过稍稍作了些修改,以下安装要在root下,命令可以cp
安装codecs:
#mkdir /usr/lib/wincodecs/
#mkdir /usr/lib/codecs/
#cd /root/download/mplayer/
#tar vjxf all-20071007.tar.bz2
#mv all-20071007/* /usr/lib/codecs/
#chmod 644 /usr/lib/codecs/*
#chown root.root /usr/lib/codecs/*
#unzip windows-all-20071007.zip
#mv windows-all-20071007/* /usr/lib/wincodecs
#chmod 644 /usr/lib/wincodes/*
#chown root.root /usr/lib/wincodecs/*
安装mplayer:
#cd /root/download/mplayer/
#tar vjxf MPlayer-1.0rc2.tar.ba2
在这修改一下文件 libvo/video_out.c中的内容,文件在MPlayer-1.0rc2中
#ifdef HAVE_DXR2
extern vo_functions_t video_out_dxr2;
#endif
extern vo_functions_t video_out_dxr3; // ошибка сделана тут
#ifdef HAVE_IVTV
extern vo_functions_t video_out_ivtv;
#endif
以上内容改为
#ifdef HAVE_DXR2
extern vo_functions_t video_out_dxr2;
#endif
#ifdef HAVE_DXR3
extern vo_functions_t video_out_dxr3; / / Added patch HAVE_DXR3 because that is not compiling mplayer
#endif
#ifdef HAVE_IVTV
extern vo_functions_t video_out_ivtv;
#endif
以上步骤参考http://blog.csdn.net/jixiuffff/archive/2009/06/21/4286856.aspx
#cd MPlayer-1.0rc2
#./configure --enable-gui --win32codecsdir=/usr/lib/win32 --codecsdir=/usr/lib/codecs --language=zh_CN --disable -ivtv
#make
#make install
安装皮肤
复制皮肤到/usr/local/share/mplayer/skins/default下
#cd /root/download/mplayer/
#tar vjxf Blue-1.7.tar.bz2
#mv Blue /usr/local/share/mplayer/skins/default
最后需要对skins修改一下,把Blue文件放到skins下,并重命名为default。mplayer可以使用了,不过要在终端下输入:gmplayer ,第一次打开时会出错,不要紧。然后设置字体,右击,首选项中有。设置字体后就不会出错了!
现在 可以用了。
kxajd001 于 2009-07-24 15:17:15发表:
路过 学一下 :0w5ty(1
boxfile 于 2009-07-09 08:33:18发表:
[b] 3# [i]你是怎么得到我的ip的
ielnto 于 2009-07-08 20:43:49发表:
顺路恭喜
xiazhouquan 于 2009-07-08 20:13:19发表:
恭喜,不过我用yumex。把gstreamer的所有包及xine装上就行,几分钟
bbsytc 于 2009-07-08 19:57:41发表:
祝贺你
boxfile 于 2009-07-08 19:36:34发表:
安装mplayer,用了我两天的时间。
希望对那些学习linux的朋友有所帮助!!!