1. 前言
2. 编译安装mplayer
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
make -j 2
make install
apt-file search Xlib.h
找到了libx11-dev这个包,安装上,再重新configure && make之后,-vo就能用xv了。
3. 配置文件
ao=alsa,oss
font='WenQuanYi Micro Hei'
sub-fuzziness=1
#subcp=enca:zh:cp936
subcp=cp936
subfont-autoscale=2
subfont-osd-scale=2.5
subfont-text-scale=3
ass=true
embeddedfonts=true
slang=en,zh
sid=0
cache=8192
skin=iTunes
一些常用的快捷键在manpages中写的很详细,这里有一份很精简的介绍。
4. 播放APE
5. 全局快捷键
xdotool search --title "mPlayer"
找到,下面是一个简单的控制脚本:
WID=`xdotool search --title mPlayer | head -n 1`
if [ "x$WIDx" == "xx" ]; then echo "No mplayer window found." fi
case $1 in
play)
xdotool type --window $WID " "
;;
pause)
xdotool type --window $WID " "
;;
next)
xdotool type --window $WID ">"
;;
prev)
xdotool type --window $WID ">"
;;
vup)
xdotool type --window $WID "0"
;;
vdown)
xdotool type --window $WID "9"
;;
quit)
xdotool type --window $WID "q"
;;
*)
echo "unknow arg: $1"
;;
esac
6. TODO
转载请注明出处:http://www.cnblogs.com/stephenjy/archive/2010/03/02/1676762.html