linux下安装mplayer播放器

这个学期学习linux系统,自从装上Redhat后,每次进入linux都不能听歌看电影,很是不爽。从网上找了一下,都 说mplayer不错,但是安装好像很麻烦,所以一直没装,前几天装了Redflag6.0,里面有一个Realone player 不错,但是感觉红旗不太好用,所以又装上了Fedora7.0,还是没有播放器。这几天快考试了,除了复习也没有事干,于是就试着装了一下 mplayer,但是感觉没有传说中的那么难,只花了不到一个小时 就装上了,除了rm格式的视频只有声音没有图像以外,其它格式的都能播放,我感觉是解码器的问题。---------哈哈,好了,心动吧。那就开始吧,让 你的linux系统能够娱乐。以下是我安装的步骤:
=========================================
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下听歌看电影了。怎么样,还不赶快行动吗?
祝安装顺利。哈哈,行动吧。 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值