Linux操作系统下安装Mplayer播放器方法

来源:互联网 发布:那个网站注册域名便宜 编辑:程序博客网 时间:2024/05/17 04:56
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下听歌看电影了。
原创粉丝点击