天天看點

linux下安裝mplayer,新手必看輕松搞定

linux下安裝mplayer,新手輕松搞定(找不到包的,可以去我的部落格下載下傳)

TEP 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/(./configure這一步不用做,直接放在指定的目錄下即可),

you must make the direct is correct,or you can‘t install the codecs.)

chmod 644 /usr/lib/codecs/*(or 777)

chown root.root /usr/lib/codecs/*

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/(./configure 同上,也是不需要執行的),

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(這裡的etc可不是系統的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,選皮膚浏覽,就可以看到你剛放進去的皮膚了。 網管下載下傳dl.bitscn.com 

  STEP 6.運作

  /usr/local/mplayer/bin/gmplayer

  就可以運作程式了。你就可以在linux下聽歌看電影了。

    本文轉自vcdog 51CTO部落格,原文連結:http://blog.51cto.com/255361/837849,如需轉載請自行聯系原作者

繼續閱讀