为什么我的mplayer播放avi或者dvd的时候老是会卡

为当前最终发行版之前的所有版本提供支持
回复
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

为什么我的mplayer播放avi或者dvd的时候老是会卡

#1

帖子 yulewang » 2006-09-06 13:35

对不起,问一下为什么我的mplayer播放avi或者dvd的时候老是会卡?我是apt-get 的mplayer和所有必要的插件。
提示信息是,alsa-space: xrun of at least 0.112 msecs. resetting stream2.5% 0 0
但是我用xfmedia和win下面的播放器都很好。
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
送出感谢: 0
接收感谢: 7 次
联系:

#2

帖子 zhuqin_83 » 2006-09-06 13:40

有没有设置过mplayer的video?
各种driver试一下,找到不卡的就行。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

#3

帖子 yulewang » 2006-09-06 18:37

vo改了没用,我把ao改成oss就好了,但是使用快进功能到后面的时候声音又不对,有一些轻和失真。
还有一个avi视频在win下面可以放,在linux下面用任意的播放器都卡。
另外xfmedia在播放一些视频的时候会没有声音。
当年在老的电脑上面用Mplayer很好。但是换了一台机器就不会了。
我的电脑是dell6400,ati x1300显卡,所有的驱动都安装正确。
还有mplayer在文字终端中直接播放不可以,以前的电脑可以,只要mplayer filename就可以了。
请大虾们指教!
ahlongxp
帖子: 209
注册时间: 2006-03-06 19:16
送出感谢: 0
接收感谢: 0
联系:

#4

帖子 ahlongxp » 2006-09-06 19:54

把视频输出驱动改一个试试,改到你满意为止
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

#5

帖子 yulewang » 2006-09-06 20:31

mplayer的vo和ao , xfmedia中的perference中audio,vidio的所有可选配置,如果我能够改动到满意也就不来麻烦你们了,问题是我把所有可以选择的都选过以后仍然不满意。
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
送出感谢: 0
接收感谢: 7 次
联系:

#6

帖子 zhuqin_83 » 2006-09-06 22:40

3D加速开了没?也就是显卡驱动装了吗?
如果换用totem还卡么?
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

#7

帖子 eexpress » 2006-09-06 23:16

终端启动的mplayer有很多后台显示的运行参数的。你不提供一些?这样才知道你说的“慢”是什么样子。
你的一台机器不能终端启动mplayer,也要给出错误提示啊。
要不大家都在猜。
● 鸣学
yulewang
帖子: 154
注册时间: 2006-08-12 22:00
送出感谢: 0
接收感谢: 0

#8

帖子 yulewang » 2006-09-07 12:31

笔记本类型,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可以正常播放,但如果快进,声音就会变得很模糊。我过一会把输出贴出来,因为我现在还没有找到这个文件。
cholau
帖子: 4
注册时间: 2009-07-24 9:35
送出感谢: 0
接收感谢: 0

Re: 为什么我的mplayer播放avi或者dvd的时候老是会卡

#9

帖子 cholau » 2009-07-24 18:37

我刚装了9。04,也卡
可原来在8。10的时候却不卡,真是奇怪!
回复

回到 “老旧版本支持”