1、先裝解碼器: mkdir /opt/mp/lib && mkdir /opt/mp/lib/codecs cd /opt/mp/lib/codecs (把all-20061022.tar.bz2 下到這個目錄) tar xvf all-20061022.tar.bz2 rm all-20061022.tar.bz2 chown -v root:root *
2、裝圖形界面: mkdir /opt/mp/share && mkdir /opt/mp/share/mplayer && mkdir /opt/mp/share/mplayer/skins cd /opt/mp/share/mplayer/skins (把Blue-1.7.tar.bz2下到這個目錄) tar xvf Blue-1.7.tar.bz2 rm Blue-1.7.tar.bz2 chown -v -R root:root Blue chmod -v 755 Blue{,/icons} ln -sv Blue default 關於更多的皮膚直接到mplayer網站下了解到/opt/mp/share/mplayer/skins里就行了。
3、編譯安裝mplayer源碼: 首先我們隨便找個目錄就在/opt/mp cd /opt/mp (把mplayer-checkout-snapshot.tar.bz2弄到這裡來) tar xvf mplayer-checkout-snapshot.tar.bz2 rm mplayer-checkout-snapshot.tar.bz2 cd mplayer-checkout-2007-01-28 (進入源碼目錄,最後面這個號數有可能變,天天都在開發)
我們先不忙編譯,我們先看下幫助:
./configure --help (貼出部份信息,稍加解釋) 這是默認安裝的位置如下: --prefix=DIR prefix directory for installation [/usr/local]我們裝到/opt/mp --bindir=DIR directory for installing binaries [PREFIX/bin]這裡就變成了/opt/mp/bin --datadir=DIR directory for installing machine independent data files (skins, etc) [PREFIX/share/mplayer] --mandir=DIR directory for installing man pages [PREFIX/man] --confdir=DIR directory for installing configuration files [PREFIX/etc/mplayer] 這個我們給他改個位置放到 /etc/mplayer下,你應該明配置的大部份都在/etc下吧。
--libdir=DIR directory for object code libraries [PREFIX/lib] 上面這些你該明白了吧!
--codecsdir=DIR directory for binary codecs [LIBDIR/codecs] 解碼器位置:我們的: /opt/mp/lib/codecs --win32codecsdir=DIR directory for Windows DLLs [LIBDIR/codecs] --xanimcodecsdir=DIR directory for XAnim codecs [LIBDIR/codecs] --realcodecsdir=DIR directory for RealPlayer codecs [LIBDIR/codecs] win xanim real 解碼器我們全部指到 /opt/mp/lib/codecs 好管理
--disable-mencoder disable MEncoder (A/V encoder) compilation [enable] --disable-mplayer disable MPlayer compilation [enable] --enable-gui enable GMPlayer compilation (GTK+ GUI) [disable] 圖形界面要這個關閉了的 一會選上打開 --enable-gtk1 force using GTK 1.2 for the GUI [disable] GTK1.2不要他不選 --enable-largefiles enable support for files > 2GB [disable] 這個也要 --enable-linux-devfs set default devices to devfs [disable] --enable-termcap use termcap database for key codes [autodetect] --enable-termios use termios database for key codes [autodetect] 這種[autodetect]自動動根據你的系統有無配置不管他 --disable-iconv disable iconv for encoding conversion [autodetect] --disable-langinfo do not use langinfo [autodetect] --enable-lirc enable LIRC (remote control) support [autodetect] --enable-lircc enable LIRCCD (LIRC client daemon) input [autodetect] 上面的還有一部份沒貼,該要的都自動打開了的不管他。
--charset=charset convert the console messages to this character set 這個是設編碼的,gtk2的一般不用管他 --language=list a white space or comma separated list of languages for translated man pages, the first language is used for messages and the GUI (the environment variable $LINGUAS is also honored) [en] (Available: bg cs de dk el en es fr hu it ja ko mk nb nl pl ro ru sk sv tr uk pt_BR zh_CN zh_TW all) 語言選項:默認英語,你懂那國語言就選哪個國語,我懂中文;我就選 zh_CN
下面這一部份是相依賴的,如果在./configure過程說沒找到,但你確信你裝了的。你就得給他指路徑。我的X之類就沒找到;如下請看: --extra-libs=FLAGS extra linker flags --extra-libs-mplayer=FLAGS extra linker flags for MPlayer --extra-libs-mencoder=FLAGS extra linker flags for MEncoder --with-extraincdir=DIR extra header search paths in DIR (*) 這個頭文件找不到,我就得在./configure (加上) --with-extraincdir=/usr/X11R7/include/ --with-extralibdir=DIR extra linker search paths in DIR (*) 庫文件也找不到 又得加上 --with-extralibdir=/usr/X11R7/lib --with-xvmclib=NAME adapter-specific library name (e.g. XvMCNVIDIA)
--with-freetype-config=PATH path to freetype-config --with-fribidi-config=PATH path to fribidi-config --with-glib-config=PATH path to glib*-config --with-gtk-config=PATH path to gtk*-config --with-sdl-config=PATH path to sdl*-config --with-dvdnav-config=PATH path to dvdnav-config 我已說明兩個例子,如過你在./configure過程中不過。提什麼沒找到。如果你沒裝就得裝上,如果你確信裝了的,也有可能沒找到路徑。在./configure 後面加上相應參數指明路徑就行了。
Languages: Messages/GUI: zh_CN 語言部份 Manual pages: en
Enabled optional drivers: Input: ftp network pvr tv-v4l2 tv-v4l tv libdvdcss dvdread vcd dvb Codecs: qtx libavcodec real xanim win32 faad2 libmpeg2 liba52 mp3lib tremor(internal) Audio output: alsa esd oss sdl mpegpes(dvb) Video output: xvidix cvidix md5sum sdl pnm jpeg png mpegpes(dvb) fbdev opengl dga xv x11 xover tga 支持的解碼以及一些設備。 Audio filters: Disabled optional drivers: Input: vstream radio live555 cddb cdda dvdnav smb Codecs: x264 xvid libdv amr_wb amr_nb faac musepack libdts libtheora speex toolame twolame libmad liblzo gif Audio output: sun openal jack polyp arts ivtv dxr2 nas Video output: winvidix bl zr zr2 ivtv dxr3 dxr2 vesa gif89a svga caca aa ggi xmga mga xvmc dfbmga directfb tdfx_vid s3fb tdfxfb 3dfx Audio filters: ladspa
'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer compile *** DO NOT REPORT BUGS if you tweak these files ***
'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.
Please check mtrr settings at /proc/mtrr (see DOCS/HTML/zh_CN/video.html#mtrr)
Check configure.log if you wonder why an autodetection failed (make sure development headers/packages are installed).
NOTE: The --enable-* parameters unconditionally force options on, completely skipping autodetection. This behavior is unlike what you may be used to from autoconf-based configure scripts that can decide to override you. This greater level of control comes at a price. You may have to provide the correct compiler and linker flags yourself. If you used one of these options (except --enable-gui and similar ones that turn on internal features) and experience a compilation or linking failure, make sure you have passed the necessary compiler/linker flags to configure.
If you suspect a bug, please read DOCS/HTML/zh_CN/bugreports.html.