分类: LINUX
2009-08-31 14:59:09
1: mplayer 主程序 MPlayer-1.0pre8.tar.bz2
2:官方解码器:
essential-20071007.tar.bz2
3:官方win32_CODES-all:
windows-essential-20071007.zip
4:皮肤:
disappearer-1.1,tar.bz2
5:字体
以上是准备工作
setp 1 安装编解码器
tar jxvf essential-20071007(2).tar.bz2
mv essential-20071007(2) /usr/lib/codecs/
unzip windows-essential-20071007.zip
mv windows-essential-20071007 /usr/lib/wincodecs
setp2 安装mplayer
tar jxvf MPlayer-1.0rc2.tar.bz2
cd MPlayer-1.0rc2
./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/ --enable-3dnow --language=zh_CN
回车开始编译
make
make install
cd etc
cp example.conf /usr/local/mplayer/etc/config
cp codecs.conf /usr/local/mplayer/etc/
setp3 安装字体
linux 系统中有字体 在/usr/share/chinese/TrueType/
root@localhost src]# ll /usr/share/fonts/chinese/TrueType/
总计 37152
-rw-r--r-- 1 root root 3710 08-31 00:24 fonts.dir
-rw-r--r-- 1 root root 3710 08-31 00:24 fonts.scale
-rw-r--r-- 1 root root 17347900 2007-08-14 ukai.ttf
-rw-r--r-- 1 root root 20615748 2007-08-14 uming.ttf
如想在root 用户下使用mplayer 则在/root/目录下创建 .mplayer目录
mkdir /root/.mplayer
cd /usr/share/fonts/chinese/TrueType/
cp uming.ttf /root/.mplayr/subfont.ttf
setp4 安装皮肤
tar jxvf disappearer-1.1.tar.bz2
mv disappearer /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
ln -s disappearer default
setp 5 运行
/usr/local/mplayer/bin/gmplayer
这样就 ok 了