參考 http://www.ubuntuforums.org/showthread.php?t=78037
目前 mplayer 拍照像這樣,感覺很不錯
http://www.flickr.com/photos/csj/57612224/
步驟如下:
先安裝需要套件
- 代碼: 選擇全部
apt-get install build-essential libx11-dev libxv-dev libpng12-0 libpng12-dev checkinstall libavcodec-dev aalib1 libaa1-dev libaa1 caca-utils libcaca-dev libavcodec-dev libavifile-0.7-dev libsdl1.2debian-all libsdl1.2debian libsdl1.2-dev libesd0-dev libfaac-dev libfaad2-dev libgtk2.0-dev liblame-dev libice-dev libjpeg62-dev libmatroska-dev libmad0-dev libmpcdec-dev libmp4v2-dev libmikmod2-dev libogg-dev libtheora-dev libvorbis-dev libxinerama-dev libxv-dev xlibs-dev x-dev
取得最新 mplayer source
- 代碼: 選擇全部
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer login
cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co -P main
抓 FFmpeg libavcodec/libavutil/libavformat 最新 source
- 代碼: 選擇全部
cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg login
cvs -z3 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg
把 libavcodec, libavformat libavutil 3個資料夾移到剛剛 mplayer 的 main 裏面,修改 main/CVS/Entries,加上這三行:
- 代碼: 選擇全部
D/libavcodec////
D/libavformat////
D/libavutil////
在 /etc/apt/sources.list 加上
deb ftp://ftp.nerim.net/debian-marillat/ sid main
- 代碼: 選擇全部
apt-get update
apt-get install w32codecs
ln -s /usr/lib/win32 /usr/local/lib/codecs
切換到 main 資料夾開始編譯
- 代碼: 選擇全部
./configure --enable-gui --enable-largefiles --enable-menu
make
make install
Skin
- 代碼: 選擇全部
mkdir -p /usr/local/share/mplayer/Skin/
到這網頁抓 clearlooks skin for mplayer
http://www.gnomelook.org/content/show.php?content=21745
- 代碼: 選擇全部
tar zxvf 21745-clearlooks-mplayer.tgz
mv clearlooks-mplayer /usr/local/share/mplayer/Skin/default
subfont 使用 fierfly newsung
- 代碼: 選擇全部
ln -s /usr/share/fonts/truetype/fireflysung.ttf /usr/local/share/mplayer/subfont.ttf