安装过程
# download source code from http://www.mplayerhq.hu/design7/dload.html & extract
wget -cS http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.3.0.tar.xz
tar -Jxvf MPlayer-1.3.0.tar.xz
# install alsa(Advanced Linux Sound Architecture)
yum install *alsa*
# the codecs files will be installed here
mkdir -p /usr/local/lib/codecs
cp -r MPlayer-1.3.0/* /usr/local/lib/codecs/
# configure(--enable-gui是为了启用图形化界面,后面会安装皮肤)
./configure --enable-gui --language=zh_CN --codecsdir=/usr/local/lib/codecs
# configure过程中出现缺少依赖,系统不同,缺少的依赖可能有所不一样
yum install yasm # 配置过程中提示缺少yasm
yum install gtk+ # 配置过程中提示缺少X11
yum install gtk+-devel
# 安装完gtk+记得是提示版本太低, 看了下之前安装的是1.2的, 现在安装版本2
yum install gtk2-devel
# 下载皮肤文件,并放到相应目录
wget -cS http://www.mplayerhq.hu/MPlayer/skins/Blue-1.12.tar.bz2
tar
tar -jxvf Blue-1.12.tar.bz2
mkdir -p /usr/local/share/mplayer/skins
mv Blue /usr/local/share/mplayer/skins
# 设置mplayer的默认皮肤为Blue
# ref: http://www.mplayerhq.hu/DOCS/HTML/en/gui.html
cd /usr/local/share/mplayer/skins
ln -s Blue/ default
make
make install
# 运行图形化的mplayer, 皮肤取自上述的皮肤设置(即Blue)
gmplayer
运行截图
安装多个皮肤
其实非常简单,在开始安装皮肤的目录下(我的是/usr/local/share/mplayer/skins
),
把下载好的皮肤文件解压后的目录复制进去就行了, 比如我的:
drwxr-xr-x. 3 1009 1010 4096 Sep 7 2016 Blue
lrwxrwxrwx. 1 root root 5 Jun 8 10:58 default -> Blue/
drwxrwxr-x. 2 root root 4096 Oct 4 2006 iTunes
实际效果:
参考:
http://blog.csdn.net/u010048823/article/details/51292544
http://www.mplayerhq.hu/DOCS/HTML/en/gui.html
欢迎批评指正!