LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1248|回复: 6

拷到ramdisk里面的电影为什么不能播放,问题已解决

[复制链接]
发表于 2007-11-28 22:19:17 | 显示全部楼层 |阅读模式
mkfs.ext3 /dev/ram0
mount /dev/ram0 /media/ramdisk
运行上面的命令后,拷了个电影到/media/ramdisk里面,
然后用mplayer打开,可是一打开就自动关闭了,
这是为什么?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2007-11-29 09:50:34 | 显示全部楼层
你用命令行开mplayer, 然后看看出啥错
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-29 20:19:26 | 显示全部楼层
Post by 超级用户;1789069
你用命令行开mplayer, 然后看看出啥错


root@sina-desktop:/media/ramdisk# mplayer bbs.wofei.net\@银翼杀手CD2.rmvb
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
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 bbs.wofei.net@银翼杀手CD2.rmvb.
REAL file format detected.
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
Stream mimetype: logical-fileinfo
VIDEO:  [RV40]  800x452  24bpp  23.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
name: bbs.wofei.net@����ɱ��CD2
author: ������ӰԷ��Ʒ�
copyright: www.wofei.net
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 44.1 kbit/3.12% (ratio: 5512->176400)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib/win32/drvc.so'
Selected video codec: [rv3040] vfm: realvid (Linux RealPlayer 10 RV30/40 decoder)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
alsa-init: 1 soundcard found, using: default
alsa: 44100 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
VDec: vo config request - 800 x 452 (preferred colorspace: Planar I420)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> Planar YV12 special converter
VO: [xv] 800x452 => 800x452 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)?,?% 0 0


MPlayer interrupted by signal 6 in module: vo_check_events
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
alsa-uninit: pcm closed
以上是出错信息,
大家帮分析下为什么?
回复 支持 反对

使用道具 举报

发表于 2007-11-29 22:19:29 | 显示全部楼层
X11 error: BadAlloc (insufficient resources for operation)?,?% 0 0

内存不够用了.
回复 支持 反对

使用道具 举报

发表于 2007-11-29 23:08:29 | 显示全部楼层
天哪! 你把一张CD全部cp进内存! 你的内存多大?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-11-30 09:14:03 | 显示全部楼层
我的内存1G
所以想划出700多M的空间放电影,ff的临时文件
回复 支持 反对

使用道具 举报

发表于 2007-11-30 12:11:19 | 显示全部楼层
楼主这种目的用 tmpfs 似乎更适合一些, 比如 /dev/shm 目录
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表