|
发表于 2010-2-28 23:00:35
|
显示全部楼层
Post by Innuendo;2072094
请问具体是什么codec?能否把你播放amr文件时的输出贴一下。我的mplayer一直是自己编译的,加了n多参数,对付常用视频、音频都没什么问题,不过没安装那个codecs包。
这是我用mplayer播放amr文件时候的输出:
$ mplayer Fergie_-_Labels_Or_Love.amr
MPlayer SVN-r30526-4.4.3 (C) 2000-2010 MPlayer Team
142 audio & 332 video codecs
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 Fergie_-_Labels_Or_Love.amr.
Cache fill: 0.00% (0 bytes)
libavformat file format detected.
[amr @ 0x99951a0]max_analyze_duration reached
[amr @ 0x99951a0]Estimating duration from bitrate, this may be inaccurate
[lavf] Audio stream found, -aid 0
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 8000 Hz, 1 ch, s16le, 0.0 kbit/0.00% (ratio: 0->16000)
Selected audio codec: [ffamrnb] afm: ffmpeg (AMR Narrowband)
==========================================================================
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 12.7 (12.7) of 0.0 (unknown) 1.5% 0%
MPlayer interrupted by signal 2 in module: enable_cache
MPlayer interrupted by signal 2 in module: play_audio
A: 12.7 (12.7) of 0.0 (unknown) 1.5% 0%
我说的那个code就是wincode32那个,但是我用的是mplayer for windows 里面的,直接用win里的code覆盖/usr/lib/codecs,win里的比linux的多了30多个dll文件,我不知道这样对不对,但是播放3gp和amr文件确实用这个方法解决了 |
|