标题: Linux操作系统下安装Mplayer播放器方法 (查看:615 回复:0)
tiresome
学徒网管




UID 474089
精华 0
积分 31
帖子 239
MST币 434 点    
BST币 31 点    赚取
阅读权限 60
注册 2006-12-29
状态 离线
 
[ 使用道具 ]  
发表于 2008-2-2 12:27  [ 资料 ]  [ 博客 ]  [ 短消息 ]  [ 加为好友
爱琴思邮件系统iGENUS V5.0
Linux操作系统下安装Mplayer播放器方法
本帖发表在我是网管论坛,帖子地址:http://bbs.54master.com/230272,1,1
STEP 1. 下载必要的文件:
下载主程序:
MPlayer-1.0pre8.tar.bz2
官方解码器:
essential-20071007.tar.bz2

官方win32_CODES-all:
windows-essential-20071007.zip

皮肤:
Orange-1.3.tar.bz2

上面的那几样东西都在官方网站找到并顺利下载
下载网址: http://www.mplayerhq.hu/homepage/design7/dload.html

STEP2. 安装codecs:

tar vjxf essential-20071007.tar.bz2
mv essential-20071007 /usr/lib/codes(or /usr/lib/codecs,this is used for.
/configure --with-codecsdir=/usr/lib/codecs/,
you must make the direct is correct,or you cant install the codes.)
chmod 644 /usr/lib/codes/*(or 777)
chown root.root /usr/lib/codes/*

unzip windows-essential-20071007.zip
mv windows-essential-20071007 /usr/lib/wincodes
(or /usr/lib/wincodecs,
this is usedfor ./configure --with-win32libdir=/usr/lib/wincodecs/,
you must make thedirect is correct,or you cant install the codes.)
chmod 644 /usr/lib/wincodes/*(or 777)
chown root.root /usr/lib/wincodes/*

STEP 3.安装MPlayer:

tar vjxf MPlayer-1.0pre8.tar.bz2
cd MPlayer-1.0pre8
./configure --prefix=/usr/local/mplayer/
--enable-gui--enable-freetype --with-codecsdir=/usr/lib/codes/--with-win32libdir=
/usr/lib/wincodes/
--disable-gcc-checking--language=zh_CN

回车后,它会让你确认是否真的愿意disable-gcc-checking ,回车就行了。
make
make的时间可能比较长.建议你可以先去干别的事。接下来我们就可以make install了。
make install

cd etc
cp example.conf /usr/local/mplayer/etc/config
cp codecs.conf /usr/local/mplayer/etc/

STEP 4.安装字体

把你想用的字体(如 simsun.ttf ,windows系统的字体目录下就有c:\windows\font\)放到/home/<你的用户名>/.mplayer 下(root用户放到/root/.mplayer下)并且改名为subfont.ttf .

拷贝(这里假设您的simsun字体临时放在 /root/ 目录下,用户为root):

cp /root/simsun.ttf /root/.mplayer/
改名:
mv /root/.mplayer/simsun.ttf /root/.mplayer/subfont.ttf

(如 果不做这一步运行时会报错:New_Face failed. Maybe the font path is wrong.please supply teh text font ~/.mplayer/subfont.ttf。如果没有~/.mplayer,只需要点菜单栏的查看 ,选择,显示隐藏文件即可。)

STEP 5.安装皮肤

tar vjxf Orange-1.3.tar.bz2
mv Orange /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
ln -s Orange default
官方网站有很多皮肤,下载以后,解压,然后放到/usr/local/mplayer/share/mplayer/skins/ 下,然后右击mplayer,选皮肤浏览,就可以看到你刚放进去的皮肤了。

STEP 6.运行
/usr/local/mplayer/bin/gmplayer
就可以运行程序了。你就可以在linux下听歌看电影了。

[ 点这里复制网址,推荐给你QQ/MSN上的好友们! ]
本站声明:以上内容由网友 tiresome 提供,与54master立场无关!
[ 顶部 ]
域名、虚拟主机、服务器租用/托管一站式IT服务 V5.0
  
 



当前时区 GMT+8, 现在时间是 2008-11-21 02:24

Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.066049 second(s), 12 queries , Gzip enabled

清除 Cookies - 关于我是网管 - 联系我是网管 - 广告服务 - 诚聘版主 - 无图版 - WAP -