(作者/l4nneret)为了能在 Linux 下也能播放多媒体文件,于是安装据称很强悍的 Kmplayer 播放器。过程如下:在 http://www.mplayerhq.hu/MPlayer/ 这里看到 Kmplayer 的主程序已经更新到了 1.0rc2 版。
下载主程序:MPlayer-1.0rc2.tar.bz2
两个解码包:all-20071007.tar.bz2 和 windows-all-20071007.zip
皮肤文件:Abyss-1.7.tar.bz2
在终端中以 root 身份进行安装:
mkdir /usr/lib/codecs ;建立解码器文件夹
mkdir /usr/lib/wincodecs ;建立win解码器文件夹
tar jxvf all-20060611.tar.bz2 ;解压缩文件
mv all-20071007/* /usr/lib/codecs ;复制到相应的文件夹中
unzip windows-all-20060611.zip ;解压缩文件
mv windows-all-20071007/* /usr/lib/wincodecs ;复制到相应的文件夹中
开始安装 kmplayer
tar jxvf MPlayer-1.0rc2.tar.bz2 ;解压缩文件
cd MPlayer-1.0rc2 ;进入解压目录
./configure --prefix=/usr/local/mplayer --enable-gui --enable-freetype --codecsdir=/usr/lib/codecs/ --codecsdir=/usr/lib/wincodecs/ --language=zh_CN
[注意,以前版本,可能在1.0rc1的时候,似乎是要这么配置的" --with-codecsdir=/usr/lib/codecs/ --with-win32libdir=/usr/lib/wincodecs/ ",有 with ,现在不用了,所有的解码目录指定均用 codecsdir 即可 ]
接着:
make
make install
安装皮肤:
tar jxvf Abyss-1.7.tar.bz2
mv Abyss /usr/local/mplayer/share/mplayer/skins/
cd /usr/local/mplayer/share/mplayer/skins/
mv Abyss default
安装字体:(注意,此时已经切换到了普通用户下)
cp /usr/share/fonts/truetype/uming.ttf $HOME/.mplayer
mv uming.ttf subfont.ttf
[如果不安装字体,在开启 kmplayer 时会提示缺少字体 subfont.ttf,这里就是把 uming.tff 复制到其目录下,然后更名为 subfont.ttf。这里,字体的路径根据 linux 发行版的不同稍有不同,我的是 OpenSuse V11.0]
至此,已经安装成功。
体验一下 kmplayer 的是否如传说中的强悍功能:
打开一般常用的格式如 :rm,rmvb,mov,avi,mkv,asf都能正常播放,只是一个 ts 格式奥运开幕式的文件无法播放,不过至少还能看到一个开始画面。这在windows中用暴风和万能解码也没法播放。当然有另外一个软件可以播放这种格式。这里,在反复调节kmplayer输出驱动的时候,kmplayer崩溃了,呵呵。但是你正常使用的话,是不会出现这种崩溃的情况。
zougang123 于 2009-10-14 21:04:24发表:
4# kidcao1987
我按着楼主说的做了 可是鄙人是菜鸟 我不知道安装好后怎样使用mpayer
楼主可否讲解一下步骤 在下感激不尽
kidcao1987 于 2008-11-08 20:47:54发表:
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.2.3, ok
Checking for host cc ... cc
Checking for cross compilation ... yes
Checking for CPU vendor ... GenuineIntel (15:3:4)
Checking for CPU type ... Intel(R) Pentium(R) 4 CPU 3.00GHz
Checking for kernel support of mmx ... failed
It seems that your kernel does not correctly support mmx.
To use mmx extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of mmxext ... failed
It seems that your kernel does not correctly support mmxext.
To use mmxext extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse ... failed
It seems that your kernel does not correctly support sse.
To use sse extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse2 ... failed
It seems that your kernel does not correctly support sse2.
To use sse2 extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of cmov ... failed
It seems that your kernel does not correctly support cmov.
To use cmov extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... CPU optimization disabled. CPU not recognized or your compiler is too old.
error
Checking for assembler support of -pipe option ... no
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as ) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.24-19-generic, ok
Checking for -lposix ... no
Checking for -lm ... no
Checking for langinfo ... no
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... none
Checking for __builtin_expect ... no
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... no
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (trying inet_aton next)
Checking for inet_aton() ... no (network support disabled)
Checking for network ... no
Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.
Check "configure.log" if you do not understand why it failed.
heheguo 于 2008-10-25 19:48:22发表:
按楼住的做,到最后一步,不行啊。没搞好,还是弹出错误找不到字体文件啊。。楼主帮忙解释下啊,不会啊
切换用户后。按楼住的命令,会提示权限不够
[ 本帖最后由 heheguo 于 2008-10-26 22:32 编辑 ]
rtl 于 2008-09-15 16:37:30发表:
lz ?的是 Mplayer ,而不是 Kmplayer
(s):a) (s):a) (s):a)
[ 本帖最后由 rtl 于 2008-9-15 16:38 编辑 ]