找回密码
 注册
查看: 1139|回复: 14

我的mplayer只闻其声,不见图象,真要命!!!!

[复制链接]
发表于 2005-1-11 10:09:19 | 显示全部楼层 |阅读模式
我的mplayer只能放声音没图象,播放是提示信息如下:
[root@tsg ~]mplayer -fs 007-101.avi
MPlayer 1.0pre6-3.4.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147
77 audio & 188 video codecs
Playing 007-101.avi.
AVI file format detected.
VIDEO:  [tscc]  800x600  32bpp  15.000 fps   66.8 kbps ( 8.2 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 16000->16000 (128.0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[camtasia @ 0x8597c48]Camtasia error: unknown depth 32 bpp
Could not open codec.
VDecoder init failed
Opening video decoder: [vfw] Win32/VfW video codecs
Loading codec DLL: 'tsccvid.dll'
Loaded DLL driver tsccvid.dll at 7f840000
VDec: vo config request - 800 x 600 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed
Cannot find codec matching selected -vo and video format 0x63637374.
Read DOCS/HTML/en/codecs.html!
==========================================================================
Checking audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 8000 hz, little endian signed int
AF_pre: 8000Hz 1ch Signed 16-bit (Little-Endian)
AO: [oss] 8000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
Video: no video
Starting playback...
A:  14.3 (14.3)  0.0% 96%

MPlayer interrupted by signal 2 in module: play_audio


下面我将贴出我的配置文件,帮帮我!
 楼主| 发表于 2005-1-11 10:12:13 | 显示全部楼层
接上文,我的mplayer配置文件如下:运行gmplayer出现如下信息:
Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147
vo: X11 running at 800x600 with depth 16 and 16 bpp (":0.0" => local display)
77 audio & 188 video codecs
结果连声音都没了,按ctrl+c出现提示:MPlayer interrupted by signal 2 in module: unknown


##
## MPlayer configuration file
##
## Configuration files are read system-wide from /usr/local/etc/mplayer.conf
## and per user from ~/.mplayer/config, where per-user settings override
## system-wide settings, all of which are overrriden by the command line.
##
## The options are the same as on the command line.
##


##
## video settings
##

# Specify default video driver (see -vo help for a list).
vo=xv

# Specify default audio driver (see -ao help for a list).
ao=oss

# fullscreen mode
fs=yes

# Change to a different videomode when going fullscreen
# (dga, x11, sdl video output drivers only).
vm=no

# Force changing display depth (valid settings are: 0, 15, 16, 24, 32).
# May need 'vm=yes' as well, only works with fbdev, dga, svga, vesa
# video output drivers.
bpp=0

# Enable software scaling (powerful CPU needed).
# Some video output drivers (svga, x11, vesa) do not support hardware scaling.
zoom=yes

# Doublebuffering can help remove flicker from subtitles/OSD.
# double=yes

# standard monitor size, with square pixels
# monitoraspect=4:3

# Use this for a widescreen monitor, non-square pixels.
# monitoraspect=16:9

# Makes the player window stay on top of all other windows.
ontop=yes

##
## Specify your preferred default skin here
## (skins are searched in /usr/local/share/mplayer/Skin/yourskin
##  and ~/.mplayer/Skin/yourskin)
##
skin = default

##
## Multiple languages are available
##
## Hungarian        igen        nem
## English                yes                no
## German                ja                nein
## Spanish                si                no
## Polish                tak                nie
## Swedish                ja                nej
## Binary                1                0
##
## You can also use spaces and/or tabs.
##

sound                = 1
# nosound        = nein
mixer                = /dev/mixer

##
## resample the fonts' alphamap
## 0        plain white fonts
## 0.75        very narrow black outline (default)
## 1        narrow black outline
## 10        bold black outline
##
# ffactor = 0.75

##
## FBdev driver:
##
# framebuffer device to use
# fb = /dev/fb0
#
# mode to use (read from fb.modes)
# fbmode = 640x480-120
#
# location of the fb.modes file
# fbmodeconfig = /etc/fb.modes

## VESA and FBdev driver: Specify your monitor's timings.
##
## (see /etc/X11/XF86Config for timings)
## ** CAUTION! IF YOUR DISPLAY DOESN'T SUPPORT AUTOMATICALLY TURNING OFF WHEN
##    OVERDRIVED (AND EVEN IF IT DOES), THIS MAY CAUSE DAMAGE TO YOUR DISPLAY!
##    WE AREN'T RESPONSIBLE, IT'S YOUR DECISION! **
##
## k, K: means multiply by 1000
## m, M: means multiply by 1.000.000
##
# horizontal frequency range
# monitor-hfreq = 31.5k-50k,70k
#
# vertical frequency range
# monitor-vfreq = 50-90
#
# dotclock (or pixelclock) range
# monitor-dotclock = 30M-300M

##
## SDL driver
##
# Use SDL video with the aalib subdriver by default.
# vo = sdl:aalib
#
# Use SDL audio driver with the esd subdriver by default.
# ao = sdl:esd
#
# Turn off XVideo hardware acceleration.
# noxv = no
#
# Force XVideo even if not detected.
# forcexv = yes


##
## Other (preferred to be default from configfile) switches
##
# Drop frames to preserve audio/video sync.
framedrop         = yes

##
## cache settings
##
# Use 8MB input cache by default.
cache                = 8192
#
# Prefill 20% of the cache before starting playback.
cache_min            = 20.0
#
# Prefill 5% of the cache before restarting playback after the cache emptied.
cache_prefill        = 5.0

# DVD: Display English subtitles if available.
# slang                = en

# DVD: Play English audio tracks if available.
# alang                = en


## This is the correct way to use "subconfig" type options in the
## configuration file. In the command line you use:
## -aop list=resample:fout=44100 , but here it is:
# aop=list=resample:fout=44100

##
## You can also include other configfiles
##
#include = /path/to/the/file/you/want/to/include

请帮我看看!
回复

使用道具 举报

发表于 2005-1-11 10:56:35 | 显示全部楼层
试试把mplayer的配置文件删除(或者移动到其他地方或者改名),在运行看看行不行。其实配置文件不是必需的。
回复

使用道具 举报

 楼主| 发表于 2005-1-11 14:51:36 | 显示全部楼层
我把/root/.mplayer/config删掉了,错误依旧阿
回复

使用道具 举报

发表于 2005-1-11 14:54:05 | 显示全部楼层
装了divx和xvid吗?
回复

使用道具 举报

 楼主| 发表于 2005-1-11 15:12:52 | 显示全部楼层
怎么装?
我发现可以看rmvb格式,有图象
但avi就没图象
回复

使用道具 举报

发表于 2005-1-11 18:37:58 | 显示全部楼层

http://www.divx.com/linux/
http://www.xvid.org

下载回来。

1.安装divx
解压后进入得到的那个目录,运行sh install.sh安装

2.安装xvid
解压缩,进入xvid-{你的版本}/build/generic目录,
#configure --prefix=/usr/local
#make
#make install
回复

使用道具 举报

发表于 2005-1-11 21:25:02 | 显示全部楼层
avi 只是一个媒体文件的保存方式,并不是一种格式。
回复

使用道具 举报

 楼主| 发表于 2005-1-12 08:50:57 | 显示全部楼层
我的系统是FC3,运行sh install.sh后如下:
[root@tsg 21]# sh install.sh
[root@tsg 21]# ./install
bash: ./install: 没有那个文件或目录
没任何反映
回复

使用道具 举报

 楼主| 发表于 2005-1-12 10:55:01 | 显示全部楼层
楼上各位帮忙的兄弟,我发现有些avi可以播放,有声音和图象而有些播放起来就之友声音
回复

使用道具 举报

发表于 2005-1-12 11:11:10 | 显示全部楼层
这样的话可能是解码器的问题。或许你的解码器不够新(去官方下载最新的),或者你的avi是用最新的编码器编码的,mplayer还不能识别。
例如我这里就有一个魔兽世界的CG动画,用mplayer是播放不了的。在我同学的电脑上(xp)也播放不了,之后他在网上下载了最新的解码器才能播放。
播放 WOW_Intro_1024.avi.
检测到AVI文件格式。
VIDEO:  [DXGM]  1024x464  24bpp  24.039 fps  2105.6 kbps (257.0 kbyte/s)
==========================================================================
打开音频解码器: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 800x600 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
找不到适合所选的-vo和视频格式 0x4D475844 的解码器!----注意这里
请看DOCS/zh/codecs.html!
==========================================================================
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)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 44100 Hz/2 channels/4 bpf/30104 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
视频: no video
开始播放...
alsa-uninit: pcm closed
回复

使用道具 举报

发表于 2005-1-12 13:02:41 | 显示全部楼层
[quote:386b20bccc="yaohanping"]我的系统是FC3,运行sh install.sh后如下:
[root@tsg 21]# sh install.sh
[root@tsg 21]# ./install
bash: ./install: 没有那个文件或目录
没任何反映[/quote]

你没有进入解压得到的目录去运行sh install.sh

估计你只装上了xvid,所以有些avi文件只能听到声音。
回复

使用道具 举报

 楼主| 发表于 2005-1-12 14:35:10 | 显示全部楼层
大哥,我当然进了解压的目录阿,但我运行sh install.sh确实没反应
回复

使用道具 举报

 楼主| 发表于 2005-1-12 14:49:00 | 显示全部楼层
大哥,我当然进了解压的目录阿,但我运行sh install.sh确实没反应
GGGO说的情况,我这里到是一样的,去下个新的解码器看看
回复

使用道具 举报

发表于 2005-1-13 10:35:15 | 显示全部楼层
mplayer默认是支持xvid和divx的,这两个解码器是内建的。
回复

使用道具 举报

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

本版积分规则

GMT+8, 2025-8-1 23:53 , Processed in 0.028181 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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