MPlayer完全安裝手冊
安裝之前要準備的工作:1。安裝Lame。Lame是開源MP3解碼器。
version:3.97
download:http://lame.sourceforge.net/download/download.html
安裝:解壓安裝下來的包放在tmp,配置,安裝。
注:我是用ROOT登錄的。所以只在ROOT的環境下安裝。
[root@localhost lame-3.97]#./configure --prefix=/usr
[root@localhost lame-3.97]#make
[root@localhost lame-3.97]#make install
Note: If you install Lame without --prefix=/usr MPlayer may not properly link to the Lame libraries.
2.安裝XviD,XviD是ISO MPEG-4 vedio編碼器
version:1.1.2
download:http://www.xvid.org/downloads.html
[root@localhost tmp]#cd xvidcore-1.1.2/build/generic/
[root@localhost generic]#./configure
[root@localhost generic]#make
[root@localhost generic]#make install
3.安裝RealPlayer。Download RealPlayer 10.0 GOLD:
http://www.real.com/linux/
Select: "Download RPM Package"
首先要Check for HelixPlayer:
[root@localhost ]# rpm -q HelixPlayer
HelixPlayer-1.0.6-1.2.2
卸載HelixPlayer:
[root@localhost ]# rpm -e HelixPlayer
Install RealPlayer 10 GOLD:
[root@localhost]# rpm -ivh RealPlayer10GOLD.rpm
Preparing... ########################################### [100%]
1:RealPlayer ########################################### [100%]
4。LIVE555 Streaming Support
download:http://www.live555.com/liveMedia/public/
解壓到tmp文件夾下面:
[root@localhost live]#./genMakefiles linux
[root@localhost live]#make
[root@localhost live]#make install
前面的準備工作完成后,開始安裝MPlayer了
首先下載下面四個文件:
下載相關codes ( http://www.mplayerhq.hu/MPlayer/ ) 主要都在這里
Mplayer-1.0rc1.tar.bz2(主程序)( http://www.mplayerhq.hu/MPlayer/rele...1.0rc1.tar.bz2 )
Blue-1.6.tar.bz2 (皮膚) (http://www2.mplayerhq.hu/MPlayer/skins/Blue-1.6.tar.bz2)
all-20060611.tar.bz2(http://www.mplayerhq.hu/MPlayer/rele...060611.tar.bz2 )
windows-all-20060611.zip(建議不要在win下使用. rar,用. zip)
( http://www.mplayerhq.hu/MPlayer/rele...l-20060611.zip )
這是我的mplayer的一些組件,你可以去http://www.mplayerhq.hu/MPlayer/ 下載你自己喜歡的皮膚和字體.
安裝過程(請把你的終端打開)
a.安裝相應的解碼
進入主目錄后,以root身份安裝 ,這樣改變身份:在終端輸入su或者su root ,然后輸入密碼就ok啦,有沒有看到 $ 變成了 #
接著note: All of MPlayer's codecs codecs must be installed in
/usr/local/lib/codecs/
[root@localhost tmp]#tar jxvf all-20060611.tar.bz2
[root@localhost tmp]#mkdir /usr/local/lib/codecs/
[root@localhost tmp]#mkdir /usr/local/lib/wincodecs/
[root@localhost tmp]#mv -f all-20060611/* /usr/local/lib/codecs/
[root@localhost tmp]#mv -f windows-all-20060611/* /usr/local/lib/wincodecs/
因為win32 codecs were placed in /usr/lib/win32.所以要連接起來。
[root@localhost tmp]#ln -s /usr/lib/win32 /usr/local/lib/codecs
b.安裝mplayer
[root@localhost tmp]#tar jxvf MPlayer-1.0rc1.tar.bz2
[root@localhost tmp]#cd Mplayer-1.0rc1
[root@localhost tmp]#./configure --enable-gui --enable-largefiles \
--enable-menu --prefix=/usr –confdir=/etc/mplayer
[root@localhost tmp]#make
[root@localhost tmp]#make install
c。安裝字體:
in FC5: xorg-x11-fonts-truetype. You need http://www.mjmwired.net/resources/mj...a-fc5.html#ttf package for the last option below
[root@localhost tmp]# mkdir ~/.mplayer/
[root@localhost tmp]# ln -s /usr/share/X11/fonts/TTF/luxisri.ttf ~/.mplayer/subfont.ttf
d。設置皮膚
You only need one skin in a directory named default in the MPlayer Skins directory (/usr/share/mplayer/skins/).
[root@localhost tmp]# bzip2 -cd Blue-1.6.tar.bz2 | tar xvf - -C /usr/share/mplayer/skins/
[root@localhost tmp]# mv /usr/share/mplayer/skins/Blue/ /usr/share/mplayer/skins/default/
設置默認的 skin (I picked 'Blue'):
[root@localhost tmp]# cd /usr/share/mplayer/skins/
[root@localhost Skin]# ln -s Blue default
e。卸載
[root@localhost Mplayer-1.0rc1 ]#make uninstall
問題匯集:
New face failed. Maybe the font pdth is wrong. Please supply the text font file(~/.mplayer/subfont.ttf).
打開MPlayer->preferences->Font.在Font點擊Browse,選擇/usr/share/X11/fonts/TTF/luxisri.ttf
問題解決。
來自:http://blog.sina.com.cn/u/491529d60100060r
posted on 2007-07-04 06:13 狼愛上貍 閱讀(444) 評論(0) 編輯 收藏 所屬分類: LINUX