QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7991|回复: 25

mplayer只有声音没有图像为何?

[复制链接]
发表于 2003-3-29 17:06:39 | 显示全部楼层 |阅读模式
请各位高手指点!!!



[root@localhost /]# mplayer /mnt/win-f/mpeg4/08.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

播放 /mnt/win-f/mpeg4/08.avi
检测到AVI文件格式。
VIDEO:  [DIV3]  352x240  24bpp  23.98 fps  287.9 kbps (35.1 kbyte/s)
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12000->176400 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
fbdev: Can't open /dev/fb0: No such device
==========================================================================
打开视频解码器: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
开始播放...
VDec: vo配置要求 - 352 x 240 (选择 csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
电影宽高比未定义 - 无法使用预放大.
VO: [null] 352x240 => 352x240 Planar YV12
A:   6.3 V:   6.3 A-V:  0.027 ct:  0.071  152/152  26%  0% 10.4% 4 0 0%
发表于 2003-3-29 17:54:16 | 显示全部楼层
mplayer -vo xv /mnt/win-f/mpeg4/08.avi

mplayer -vo x11 /mnt/win-f/mpeg4/08.avi
-vo 参数是设置显示模式
可以用mplayer -vo help列出你的mplayer支持模式
你原来默认是用fbdev模式,这个模式不支持
回复

使用道具 举报

 楼主| 发表于 2003-3-29 18:53:11 | 显示全部楼层

llc老大,还是不行呀,我适遍了-vo help下的所有参数

[root@localhost root]# mplayer -vo xv /mnt/win-f/mpeg4/08.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

播放 /mnt/win-f/mpeg4/08.avi
检测到AVI文件格式。
VIDEO:  [DIV3]  352x240  24bpp  23.98 fps  287.9 kbps (35.1 kbyte/s)
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12000->176400 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
打开/初始化所选的视频输出(-vo)设备是出错!


正在退出... (文件结束)
[root@localhost root]# mplayer -vo x11 /mnt/win-f/mpeg4/08.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

播放 /mnt/win-f/mpeg4/08.avi
检测到AVI文件格式。
VIDEO:  [DIV3]  352x240  24bpp  23.98 fps  287.9 kbps (35.1 kbyte/s)
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12000->176400 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
打开/初始化所选的视频输出(-vo)设备是出错!


正在退出... (文件结束)
[root@localhost root]# mplayer -vo help
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
可用的视频输出驱动:
        fbdev   Framebuffer Device
        null    Null video output
        pgm     PGM file
        md5     MD5 sum
        mpegpes Mpeg-PES file
        yuv4mpeg        yuv4mpeg output for mjpegtools (to "stream.yuv")
        vesa    VESA VBE 2.0 video output

[root@localhost root]# mplayer -vo yuv4mpeg /mnt/win-f/mpeg4/08.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc5-3.2 (C) 2000-2003 Arpad Gereoffy (看DOCS!)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
使用Linux的硬件RTC计时(1024Hz)
Can't open input config file /root/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

播放 /mnt/win-f/mpeg4/08.avi
检测到AVI文件格式。
VIDEO:  [DIV3]  352x240  24bpp  23.98 fps  287.9 kbps (35.1 kbyte/s)
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 12000->176400 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo_yuv4mpeg: Using (default) progressive frame mode
==========================================================================
打开视频解码器: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
开始播放...
VDec: vo配置要求 - 352 x 240 (选择 csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
电影宽高比未定义 - 无法使用预放大.
VO: [yuv4mpeg] 352x240 => 352x240 Planar YV12
A:   3.0 V:   2.2 A-V:  0.762 ct:  0.221   54/ 54  51% 47% 11.8% 50 0 0%

         ************************************************
         ****       你的系统太慢了,放不了这个!     ****
         ************************************************
可能的原因,问题,解决办法:
- 最普遍的原因:损坏的或有bug的_音频_驱动
  - 试试-ao sdl或使用 ALSA 0.5或ALSA 0.9的oss模拟。
  - 试试不同的-autosync的值,不妨从30开始。
- 视频输出太慢
  - 试试不同的-vo driver(-vo help有列表)或者试试-framedrop!
- cpu太慢
  - 不要试图在慢速cpu上播放大的dvd/divx! 试试-hardframedrop。
- 损坏的文
  - 试试下列选项的不同组合:-nobps  -ni  -mc 0  -forceidx
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - 试试 -cache 8192。
- 你使用-cache选项播放一个非交错的avi文件?
  - 试试-nocache
阅读DOCS/video.html和DOCS/sound.html来寻找调整/加速的技巧。
如果这些一个都用不上,阅读DOCS/bugreports.html!

A:   7.4 V:   4.8 A-V:  2.634 ct:  0.480  116/116  57% 59% 12.1% 111 0 0%






还有就是llc老大能不能解释一下你写到的echo $XMODIFIERS这条命令的意思以及它的详细用法,我想应该是输出吧,它输出到哪里去呢?
回复

使用道具 举报

发表于 2003-5-11 00:40:39 | 显示全部楼层
错误和这位老兄一模一样,打死也不出图像.
显卡是GF2MX400,CPU是Athlon1.2G,应该不会出现速度慢的问题
回复

使用道具 举报

发表于 2003-5-11 11:52:27 | 显示全部楼层
安装nvidia驱动试试
回复

使用道具 举报

发表于 2003-5-12 17:23:18 | 显示全部楼层
自然是该安装的都安装过了,还是没有效果,好痛苦.
回复

使用道具 举报

发表于 2003-5-12 17:49:12 | 显示全部楼层
xvinfo命令有错误吗?
回复

使用道具 举报

发表于 2003-5-13 02:32:46 | 显示全部楼层
xvinfo信息如下:
看起来是没有错的样子
X-Video Extension version 2.2
screen #0
  Adaptor #0: "NV10 Video Overlay"
    number of ports: 1
    port base: 103
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x22
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
    number of attributes: 9
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 66046)
      "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_SET_DEFAULTS" (range 0 to 0)
              client settable attribute
      "XV_BRIGHTNESS" (range -512 to 511)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4096)
      "XV_SATURATION" (range 0 to 8191)
              client settable attribute
              client gettable attribute (current value is 4096)
      "XV_HUE" (range 0 to 360)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_ITURBT_709" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 2046 x 2046
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
  Adaptor #1: "NV05 Video Blitter"
    number of ports: 32
    port base: 104
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x22
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
    no port attributes defined
    maximum XvImage size: 2046 x 2046
    Number of image formats: 5
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x3
        guid: 03000000-0000-0010-8000-00aa00389b71
        bits per pixel: 32
        number of planes: 1
        type: RGB (packed)
        depth: 0
        red, green, blue masks: 0xff0000, 0xff00, 0xff
回复

使用道具 举报

发表于 2003-5-13 12:32:37 | 显示全部楼层
怪事,等其他有经验的朋友回答吧,我没试过这样
回复

使用道具 举报

发表于 2003-5-13 21:38:41 | 显示全部楼层
郁闷了。。。。。
回复

使用道具 举报

发表于 2003-12-12 14:50:32 | 显示全部楼层
这个问题我也碰到了,一模一样,有解决的办法吗?
回复

使用道具 举报

发表于 2003-12-12 23:58:53 | 显示全部楼层
问题解决,就是在安装以前要先装上几个软件包,严格按照论坛中的安装手册 就行了
回复

使用道具 举报

发表于 2003-12-17 02:27:07 | 显示全部楼层
参考mplayer/DOCS下的中文文档,安装部份。
回复

使用道具 举报

发表于 2004-10-9 15:18:55 | 显示全部楼层
#mplayer -vo xv ****.avi

结果!!!---

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
开始播放...
VDec: vo配置要求 - 640 x 272 (选择 csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
电影宽高比为 2.35:1 - 预放大到正确的电影宽高比.
VO: [xv] 640x272 => 640x272 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)
Segmentation fault
bash-2.05b#
===================================================================

#mplayer -vo x11 ***.avi的话

可以打开。。不过全屏的话,窗口保持在开始的大小。。。全屏不了。

:-(
回复

使用道具 举报

发表于 2004-10-9 17:36:42 | 显示全部楼层
你的机器 XV 有问题?
试试别的方式吧~~~
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-12-4 03:31 , Processed in 0.268387 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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