狼爱上狸

我胡汉三又回来了

MPlayer完全安装手册

安装之前要准备的工作:
1。安装Lame。Lame是开源MP3解码器。
version:3.97
download:http://lame.sourceforge.net/download/download.html
安装:解压安装下来的包放在tmp,配置,安装。
注:我是用ROOT登录的。所以只在ROOT的环境下安装。
[root@localhost lame-3.97]#./configure --prefix=/usr
[root@localhost lame-3.97]#make
[root@localhost lame-3.97]#make install
Note: If you install Lame without --prefix=/usr MPlayer may not properly link to the Lame libraries.
2.安装XviD,XviD是ISO MPEG-4 vedio编码器
version:1.1.2
download:http://www.xvid.org/downloads.html
[root@localhost tmp]#cd xvidcore-1.1.2/build/generic/
[root@localhost generic]#./configure
[root@localhost generic]#make
[root@localhost generic]#make install
3.安装RealPlayer。Download RealPlayer 10.0 GOLD:
http://www.real.com/linux/
Select: "Download RPM Package"
首先要Check for HelixPlayer:
[root@localhost ]# rpm -q HelixPlayer
HelixPlayer-1.0.6-1.2.2
卸载HelixPlayer:
[root@localhost ]# rpm -e HelixPlayer
Install RealPlayer 10 GOLD:
[root@localhost]# rpm -ivh RealPlayer10GOLD.rpm
Preparing... ########################################### [100%]
1:RealPlayer ########################################### [100%]
4。LIVE555 Streaming Support
download:http://www.live555.com/liveMedia/public/
解压到tmp文件夹下面:
[root@localhost live]#./genMakefiles linux
[root@localhost live]#make
[root@localhost live]#make install

前面的准备工作完成后,开始安装MPlayer了
首先下载下面四个文件:
下载相关codes ( http://www.mplayerhq.hu/MPlayer/ ) 主要都在这里
Mplayer-1.0rc1.tar.bz2(主程序)( http://www.mplayerhq.hu/MPlayer/rele...1.0rc1.tar.bz2 )
Blue-1.6.tar.bz2 (皮肤) (http://www2.mplayerhq.hu/MPlayer/skins/Blue-1.6.tar.bz2)
all-20060611.tar.bz2(http://www.mplayerhq.hu/MPlayer/rele...060611.tar.bz2 )
windows-all-20060611.zip(建议不要在win下使用. rar,用. zip)
( http://www.mplayerhq.hu/MPlayer/rele...l-20060611.zip )
这是我的mplayer的一些组件,你可以去http://www.mplayerhq.hu/MPlayer/ 下载你自己喜欢的皮肤和字体.
安装过程(请把你的终端打开)
a.安装相应的解码
进入主目录后,以root身份安装 ,这样改变身份:在终端输入su或者su root ,然后输入密码就ok啦,有没有看到 $ 变成了 #
接着note: All of MPlayer's codecs codecs must be installed in
/usr/local/lib/codecs/
[root@localhost tmp]#tar jxvf all-20060611.tar.bz2
[root@localhost tmp]#mkdir /usr/local/lib/codecs/
[root@localhost tmp]#mkdir /usr/local/lib/wincodecs/
[root@localhost tmp]#mv -f all-20060611/* /usr/local/lib/codecs/
[root@localhost tmp]#mv -f windows-all-20060611/* /usr/local/lib/wincodecs/
因为win32 codecs were placed in /usr/lib/win32.所以要连接起来。
[root@localhost tmp]#ln -s /usr/lib/win32 /usr/local/lib/codecs
b.安装mplayer
[root@localhost tmp]#tar jxvf MPlayer-1.0rc1.tar.bz2
[root@localhost tmp]#cd Mplayer-1.0rc1
[root@localhost tmp]#./configure --enable-gui --enable-largefiles \
--enable-menu --prefix=/usr –confdir=/etc/mplayer
[root@localhost tmp]#make
[root@localhost tmp]#make install
c。安装字体:
in FC5: xorg-x11-fonts-truetype. You need http://www.mjmwired.net/resources/mj...a-fc5.html#ttf package for the last option below
[root@localhost tmp]# mkdir ~/.mplayer/
[root@localhost tmp]# ln -s /usr/share/X11/fonts/TTF/luxisri.ttf ~/.mplayer/subfont.ttf

d。设置皮肤
You only need one skin in a directory named default in the MPlayer Skins directory (/usr/share/mplayer/skins/).
[root@localhost tmp]# bzip2 -cd Blue-1.6.tar.bz2 | tar xvf - -C /usr/share/mplayer/skins/
[root@localhost tmp]# mv /usr/share/mplayer/skins/Blue/ /usr/share/mplayer/skins/default/

设置默认的 skin (I picked 'Blue'):
[root@localhost tmp]# cd /usr/share/mplayer/skins/
[root@localhost Skin]# ln -s Blue default
e。卸载
[root@localhost Mplayer-1.0rc1 ]#make uninstall

问题汇集:
New face failed. Maybe the font pdth is wrong. Please supply the text font file(~/.mplayer/subfont.ttf).
打开MPlayer->preferences->Font.在Font点击Browse,选择/usr/share/X11/fonts/TTF/luxisri.ttf
问题解决。

来自:http://blog.sina.com.cn/u/491529d60100060r

posted on 2007-07-04 06:13 狼爱上狸 阅读(440) 评论(0)  编辑  收藏 所属分类: LINUX


只有注册用户登录后才能发表评论。


网站导航: