LinuxSir.cn,穿越时空的Linuxsir!

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

mplayer 不能播放某些rmvb文件的音频(AAC音频?)

[复制链接]
发表于 2004-10-31 22:49:52 | 显示全部楼层 |阅读模式
我的mplayer是MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team
基本上正常,就是遇到一些rmvb的文件放不出声音,它是用哪中音频编码呢?real的codecs我都装了,包括rp32win,各位大虾,帮我看看这么解决啊。
我在google上找了很久都找不到缺什么,看到有类似的说不要用internal faad,要用external faad,我就去找faad来,又不会编译。
$ mplayer 375.rmvb
mplayer: Symbol `enca_analyse_const' has different size in shared object, consider re-linking
mplayer: Symbol `enca_analyser_alloc' has different size in shared object, consider re-linking
mplayer: Symbol `enca_analyser_free' has different size in shared object, consider re-linking
mplayer: Symbol `enca_charset_name' has different size in shared object, consider re-linking
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon Willamette 1703 MHz (Family: 8, Stepping: 3)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/wang/.mplayer/config
Reading /home/wang/.mplayer/codecs.conf: Can't open '/home/wang/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/wang/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
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 375.rmvb.
REAL file format detected.
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 5
Samplerate: 44100
avg byte/sec: 96124
Block align: 1395
bits/sample: 16
cbSize: 70
Unknown extra header dump: [17] [1] [10] [0] [1e] [0] [73] [5] [3c] [0] [2] [0] [0] [0] [8] [0] [0] [20] [0] [0] [0] [0] [0] [2] [0] [4] [0] [0] [0] [3] [2] [0] [0] [0] [4] [0] [0] [2f] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [4] [2] [0] [0] [0] [8] [0] [0] [20] [0] [0] [0] [0] [0] [2] [0] [4] [0] [0] [0] [30]
===========================
Not audio/video stream or unsupported!
VIDEO:  RV40 [40008000,01081020]  640x480  (aspect 0.00)  23.00 fps
Clip info:
copyright: (C) 2004
comment:
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/RealPlayer9/Codecs/cook.so.6.0'
Decoder init failed, error code: 0x80040005
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening win32 dll 'cook3260.dll'
Win32 LoadLibrary failed to load: cook3260.dll, /usr/lib/win32/cook3260.dll, /usr/local/lib/win32/cook3260.dll
Error loading dll
ERROR: Could not open required DirectShow codec cook3260.dll.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Opening audio decoder: [realaud] RealAudio decoder
opening shared obj '/usr/lib/RealPlayer9/Codecs/cook.shlb'
Error: /usr/lib/RealPlayer9/Codecs/cook.shlb: cannot open shared object file: No such file or directory
opening win32 dll 'cook.shlb'
Win32 LoadLibrary failed to load: cook.shlb, /usr/lib/win32/cook.shlb, /usr/local/lib/win32/cook.shlb
Error loading dll
ERROR: Could not open required DirectShow codec cook.shlb.
Read the RealAudio section of the DOCS!
ADecoder preinit failed
ADecoder init failed
Requested audio codec family [faad] (afm=faad) not available.
Enable it at compilation.
Cannot find codec for audio format 0x6B6F6F63.
Read DOCS/HTML/en/codecs.html!
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0" => local display)
==========================================================================
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib/RealPlayer9/Codecs/drv4.so.6.0'
Selected video codec: [rv40] vfm:realvid (Linux RealPlayer 9 RV40 decoder)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar I420  [fs]
V:   1.0   25  81% 31%  0.0% 0 0 98%%
Exiting... (Quit)
$

我的./mplayer/codecs.conf里面关于faad的内容如下:
audiocodec faad
  info "FAAD AAC (MPEG2/MPEG4 Audio) decoder"
  status working
  fourcc mp4a,MP4A
  fourcc "AAC " ; Used in NSV
  format 0xff
  driver faad
  dll libfaad2
我去下载了一个faad2-2.0.tar.gz,又不会编译。
]$ cd faad2
]$ ls
aacDECdrop/  ChangeLog     configure.in  faad2.spec.in  in_mpeg4aac.nsi  NEWS      README.linux
AUTHORS      cnv_FAAD.nsi  COPYING       frontend/      libfaad/         plugins/  TODO
bootstrap    common/       CoreAAC/      include/       Makefile.am      README
]$vi README.linux
To compile under Linux.
----------------------
just run :
- autoreconf -vif
then run configure with options you want.
run ./configure --help for more informations.

about the xmms plugin.
---------------------
The xmms plugin need to be build after the install of the faad project.
so after you have installed correctly faad (--with-xmms options) you need
to configure and build the xmms plugin part in the plugins/xmms directory.
Read the README and INSTALL files into the xmms directory.
可是我找不到autoreconf来run。
 楼主| 发表于 2004-10-31 22:56:18 | 显示全部楼层
Unknown extra header dump: [17] [1] [10] [0] [1e] [0] [73] [5] [3c] [0] [2] [0] [0] [0] [8] [0] [0] [20] [0] [0] [0] [0] [0] [2] [0] [4] [0] [0] [0] [3] [2] [0] [0] [0] [4] [0] [0] [2f] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [0] [4] [2] [0] [0] [0] [8] [0] [0] [20] [0] [0] [0] [0] [0] [2] [0] [4] [0] [0] [0] [30]
这一部分信息是不是说文件坏了?
发表于 2004-10-31 23:10:07 | 显示全部楼层
mplayer -ao help
mplayer -forceidx
发表于 2004-11-1 14:12:50 | 显示全部楼层
编译时没有加相应参数,默认不支持faad音频。
解决方法就是重新编译加上 --enable-external-faad 配置参数。
 楼主| 发表于 2004-11-1 18:35:48 | 显示全部楼层
]$ mplayer -ao help
mplayer: Symbol `enca_analyse_const' has different size in shared object, consider re-linking
mplayer: Symbol `enca_analyser_alloc' has different size in shared object, consider re-linking
mplayer: Symbol `enca_analyser_free' has different size in shared object, consider re-linking
mplayer: Symbol `enca_charset_name' has different size in shared object, consider re-linking
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon Willamette 1882 MHz (Family: 8, Stepping: 3)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/wang/.mplayer/config
Available audio output drivers:
        mpegpes Mpeg-PES audio output
        oss     OSS/ioctl audio output
        alsa    ALSA-0.9.x-1.x audio output
        arts    aRts audio output
        esd     EsounD audio output
        nas     NAS audio output
        sdl     SDLlib audio output
        null    Null audio output
        pcm     RAW PCM/WAVE file writer audio output
        plugin  Plugin audio output


谢谢楼上两位,我是rpm安装的,也加--enable-external-faad参数吗?晚上试试。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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