对不起,问一下为什么我的mplayer播放avi或者dvd的时候老是会卡?我是apt-get 的mplayer和所有必要的插件。
提示信息是,alsa-space: xrun of at least 0.112 msecs. resetting stream2.5% 0 0
但是我用xfmedia和win下面的播放器都很好。
为什么我的mplayer播放avi或者dvd的时候老是会卡
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
-
- 帖子: 209
- 注册时间: 2006-03-06 19:16
- 联系:
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
- zhuqin_83
- 帖子: 10606
- 注册时间: 2006-05-13 4:02
- 联系:
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 154
- 注册时间: 2006-08-12 22:00
笔记本类型,dell 6400
我的显卡的驱动设置(ati官方的最新不开源驱动)
root@yulewang-laptop:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon X1300 Generic
OpenGL version string: 2.0.5946 (8.27.10)
海菲茨拉的帕格尼尼二十四首随想曲的片段(网络上面可以用amule下载)
在windows下面的media player classic ,windows media player播放非常正常,
在xfmedia下面没有声音,画面正常,在perference下面选择audio,alsa,oss,esd都试过,仍然没有声音。
换到mplayer 下面,当前的vo,ao已经调整到比较满意的状态,播放一般的视频没有问题。vo=xv或者x11(效果差不多,其他的基本上不可以用), ao=oss.
播放这个文件没有声音,开始的视频停住,但后面的还很流畅
root@yulewang-laptop:~# mplayer -ao oss heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
A: 68.3 V: 0.1 A-V: 68.188 ct: 0.004 3/ 3 ??% ??% ??,?% 0 0
Badly interleaved AVI file detected - switching to -ni mode...
A: 342.7 V: 6.5 A-V:336.183 ct: 0.652 164/164 6% 0% 3.9% 0 0
Exiting... (Quit)
然后如果在播放的时候按右键快进,有声音,但是瞬间又没有声音。然后画面开始断续。
root@yulewang-laptop:~# mplayer -ao oss heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
A: 103.8 V: 60.3 A-V: 43.487 ct: 0.124 1508/1508 ??% ??% ??,?% 0 0
Exiting... (Quit)
如果这个样子,画面很正常,但是没有声音,使用快进的话很流畅,也不出声。
root@yulewang-laptop:~# mplayer -ao esd heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
/bin/sh: /usr/bin/esd: No such file or directory
[AO ESD] esd_open_sound failed: No child processes
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
V: 41.5 1039/1039 6% 0% 0.0% 0 0
Exiting... (Quit)
root@yulewang-laptop:~#
然后如果-ao alsa的结果和使用oss的一样。
最后我使用一个可以在mplayer正常播放的文件,关掉X,然后命令输入mplayer filename,出错信息是couldn't open the x11 display,然而以前的电脑可以直接打开x
还有一些文件在xfmedia下面很正常,mplayer如果使用alsa的话声音卡,提示alsa-space: xrun of at least 0.112 msecs. resetting stream2.5% 0 0
如果使用oss可以正常播放,但如果快进,声音就会变得很模糊。我过一会把输出贴出来,因为我现在还没有找到这个文件。
我的显卡的驱动设置(ati官方的最新不开源驱动)
root@yulewang-laptop:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Mobility Radeon X1300 Generic
OpenGL version string: 2.0.5946 (8.27.10)
海菲茨拉的帕格尼尼二十四首随想曲的片段(网络上面可以用amule下载)
在windows下面的media player classic ,windows media player播放非常正常,
在xfmedia下面没有声音,画面正常,在perference下面选择audio,alsa,oss,esd都试过,仍然没有声音。
换到mplayer 下面,当前的vo,ao已经调整到比较满意的状态,播放一般的视频没有问题。vo=xv或者x11(效果差不多,其他的基本上不可以用), ao=oss.
播放这个文件没有声音,开始的视频停住,但后面的还很流畅
root@yulewang-laptop:~# mplayer -ao oss heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
A: 68.3 V: 0.1 A-V: 68.188 ct: 0.004 3/ 3 ??% ??% ??,?% 0 0
Badly interleaved AVI file detected - switching to -ni mode...
A: 342.7 V: 6.5 A-V:336.183 ct: 0.652 164/164 6% 0% 3.9% 0 0
Exiting... (Quit)
然后如果在播放的时候按右键快进,有声音,但是瞬间又没有声音。然后画面开始断续。
root@yulewang-laptop:~# mplayer -ao oss heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
A: 103.8 V: 60.3 A-V: 43.487 ct: 0.124 1508/1508 ??% ??% ??,?% 0 0
Exiting... (Quit)
如果这个样子,画面很正常,但是没有声音,使用快进的话很流畅,也不出声。
root@yulewang-laptop:~# mplayer -ao esd heifetz.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel (Family: 6, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing heifetz.avi.
AVI file format detected.
VIDEO: [DIV3] 512x384 24bpp 25.000 fps 936.9 kbps (114.4 kbyte/s)
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16001->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX (MS MPEG-4 v3))
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
/bin/sh: /usr/bin/esd: No such file or directory
[AO ESD] esd_open_sound failed: No child processes
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 512 x 384 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x384 => 512x384 Planar YV12
V: 41.5 1039/1039 6% 0% 0.0% 0 0
Exiting... (Quit)
root@yulewang-laptop:~#
然后如果-ao alsa的结果和使用oss的一样。
最后我使用一个可以在mplayer正常播放的文件,关掉X,然后命令输入mplayer filename,出错信息是couldn't open the x11 display,然而以前的电脑可以直接打开x
还有一些文件在xfmedia下面很正常,mplayer如果使用alsa的话声音卡,提示alsa-space: xrun of at least 0.112 msecs. resetting stream2.5% 0 0
如果使用oss可以正常播放,但如果快进,声音就会变得很模糊。我过一会把输出贴出来,因为我现在还没有找到这个文件。
-
- 帖子: 4
- 注册时间: 2009-07-24 9:35
Re: 为什么我的mplayer播放avi或者dvd的时候老是会卡
我刚装了9。04,也卡
可原来在8。10的时候却不卡,真是奇怪!
可原来在8。10的时候却不卡,真是奇怪!