#if a specific file passed, play that...
if [ $1 ];then
[ "$PREFGUI" = "gimv" ] && exec gimv "$@"
exec gmplayer $MYVIDOUT "$@"
fi
#detect if a dvd inserted...
if [ "`cddetect -d/dev/dvd | grep 'no disc'`" = "" ];then
if [ "`dvd+rw-mediainfo /dev/dvd 2>/dev/null | grep 'Media Book Type' | grep 'DVD-ROM book'`" != "" ];then
killall yaf-splash #remove free-space string at top of window.
exec gmplayer $MYVIDOUT dvd://1
fi
fi
老大给看看
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=MPlayer media player
GenericName=Multimedia player
Comment=Multimedia player
Icon=mplayer.xpm
Exec=mplayershell
Terminal=false
Categories=AudioVideo
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;
Name[zh_CN]=MPlayer 媒体播放器
只安装hinese_pack_total-4和mplayer
由 labrador 于 星期日, 01/04/2009 - 22:09 发表
这个死机,自带的那个管理中心下载的也死机,我不知道是不是一个版本
这样会输出更多的调试信息,看看gmplayer死在什么地方了。
出来界面,选择mp3,播放很流畅。可点击图标进就死机。
另外保存完文人文件不能关机,添加acpi=force才正常关机的。
# gmplayer -msglevel all=9
MPlayer 1.0rc2-4.2.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 107, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
编译用了实时 CPU 检测。
创建配置文件: /root/.mplayer/config
X11 opening display: :0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1680x1050 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours LAYER FULLSCREEN X atoms
Disabling DPMS
DPMSDisable stat: 1
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
读取 /root/.mplayer/codecs.conf: 打不开 '/root/.mplayer/codecs.conf': No such file or directory
读取 /etc/mplayer/codecs.conf: 115 音频和 237 视频编解码器
Configuration: --prefix=/usr --confdir=/etc/mplayer --disable-mencoder --enable-gui --language=zh_CN --enable-runtime-cpudetection --disable-gl --disable-libavutil_a --disable-libavcodec_a --disable-libavformat_a --disable-libpostproc_a --enable-menu
命令行: '-msglevel' 'all=9'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 90 binds
get_path('menu.conf') -> '/root/.mplayer/menu.conf'
[MENU] 打不开菜单配置文件: /root/.mplayer/menu.conf
菜单已初始化: /etc/mplayer/menu.conf
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
get_path('skins') -> '/root/.mplayer/skins'
get_path('Skin') -> '/root/.mplayer/Skin'
SKIN dir 1: '/root/.mplayer/skins'
SKIN dir 1 (obsolete): '/root/.mplayer/Skin'
SKIN dir 2: '/usr/share/mplayer/skins'
SKIN dir 2 (obsolete): '/usr/share/mplayer/Skin'
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
vo: X11 truecolor visual 0x21, depth 24, R:FF0000 G:FF00 B:FF
Unicode font: 7572 glyphs.
[[[init getch2]]]
#BK try fix some problems with running mplayer and gmplayer.
MYVIDOUT="-vo xv,x11"
[ "`readlink /usr/X11R7/bin/X`" = "Xvesa" ] && MYVIDOUT="-vo x11"
PREFGUI="gmplayer"
#[ "`which gimv`" != "" ] && PREFGUI="gimv"
#if a specific file passed, play that...
if [ $1 ];then
[ "$PREFGUI" = "gimv" ] && exec gimv "$@"
exec gmplayer $MYVIDOUT "$@"
fi
#detect if a dvd inserted...
if [ "`cddetect -d/dev/dvd | grep 'no disc'`" = "" ];then
if [ "`dvd+rw-mediainfo /dev/dvd 2>/dev/null | grep 'Media Book Type' | grep 'DVD-ROM book'`" != "" ];then
killall yaf-splash #remove free-space string at top of window.
exec gmplayer $MYVIDOUT dvd://1
fi
fi
#CDTYPE1="`cddetect -d/dev/dvd | grep 'cdtype: audio'`"
#CDTYPE2="`cddetect -d/dev/cdrom | grep 'cdtype: audio'`"
#[ "$CDTYPE1" != "" ] && exec gmplayer $MYVIDOUT
#fall down...
exec gmplayer $MYVIDOUT
###END###
次原文件,点击这个打开好好的,我按你说的编辑保存,
#!/bin/sh
#BK try fix some problems with running mplayer and gmplayer.
MYVIDOUT="-vo x11"
[ "`readlink /usr/X11R7/bin/X`" = "Xvesa" ] && MYVIDOUT="-vo x11"
没有重启直接点图标还是死机
你点击 /usr/share/applications/mplayer.desktop ,看看对头不。
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=MPlayer media player
GenericName=Multimedia player
Comment=Multimedia player
Icon=mplayer.xpm
Exec=mplayershell
Terminal=false
Categories=AudioVideo
MimeType=application/ogg;application/x-ogg;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/m4a;audio/x-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg;video/x-mpeg2;video/msvideo;video/x-msvideo;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/x-fli;video/x-theora;video/x-matroska;
Name[zh_CN]=MPlayer 媒体播放器
发表新评论