使用 mplayer 进行 RA 流媒体播放时出现问题

使用 mplayer 进行 RA 流媒体播放时出现问题

我正在尝试使用 mplayer 从以下网址播放 .ra 流媒体:

rtsp://mm6.rai.it/radiofonia/radio3/napoli/battiti/2012/battiti2012_10_04.ra

我以前执行命令mplayer rtsp://url.ra,但现在这似乎不起作用

MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
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 rtsp://mm6.rai.it/radiofonia/radio3/napoli/battiti/2012/battiti2012_10_04.ra.
Resolving mm6.rai.it for AF_INET6...

Couldn't resolve name for AF_INET6: mm6.rai.it
Resolving mm6.rai.it for AF_INET...
Connecting to server mm6.rai.it[212.162.85.53]: 554...

librtsp: server responds: ''
librtsp: server responds: ''
rtsp: read error.
librtsp: server responds: ''
Cache size set to 640 KBytes
Cache fill:  0.00% (0 bytes)   

Cache not filling, consider increasing -cache and/or -cache-min!
Detected file format: REAL
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] Audio stream found, -aid 0
RM: No audio stream found -> no sound.
No stream found.


Exiting... (End of file)

经过一番谷歌搜索后,我发现问题出在 libav 上,所以我探测了该命令mplayer --demuxer=lav rtsp://url.ra

MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
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 rtsp://mm6.rai.it/radiofonia/radio3/napoli/battiti/2012/battiti2012_10_04.ra.
Resolving mm6.rai.it for AF_INET6...

Couldn't resolve name for AF_INET6: mm6.rai.it
Resolving mm6.rai.it for AF_INET...
Connecting to server mm6.rai.it[212.162.85.53]: 554...

librtsp: server responds: ''
librtsp: server responds: ''
rtsp: read error.
librtsp: server responds: ''
Cache size set to 640 KBytes
Cache fill:  0.00% (0 bytes)   

Detected file format: RealMedia format (libavformat)
Cache not filling, consider increasing -cache and/or -cache-min!
[lavf] stream 0: audio (cook), -aid 0
Clip info:
title: BATTITI DEL 04.10.2012
author: BATTITI
copyright: Copyright © 1997 2000 Netia Digital Audi
comment: 
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
ad_ffmpeg: initial decode failed
ADecoder init failed :(
Could not open audio decoder ffmpeg.
Opening audio decoder: [realaud] RealAudio decoder
Error: /usr/lib/codecs/cook.so: cannot open shared object file: No such file    or directory
Win32 LoadLibrary failed to load: /usr/lib/codecs/cook.so
Error loading dll
ERROR: Could not open required DirectShow codec cook.so.
Read the RealAudio section of the DOCS!
ADecoder preinit failed :(
Could not open audio decoder realaud.
Opening audio decoder: [realaud] RealAudio decoder
AUDIO: 22050 Hz, 1 ch, s16le, 20.7 kbit/inf% (ratio: 2583->0)
Selected audio codec: [racook] afm: realaud (RealAudio COOK)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or  directory
AO: [alsa] 22050Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...


MPlayer interrupted by signal 8 in module: decode_audio

该命令mplayer -ac help告诉我cook.so编解码器存在

...
...
ra10cook    realaud   working   RealPlayer 10 COOK audio  [cook.so]
racook      realaud   working   RealAudio COOK  [cook.so.6.0]
...

我使用的是最新版本的 linux mint,内核为 3.2.0。

编辑:如果我之前下载了流媒体并最终用 mplayer 播放它一切正常。

哪里有问题?

相关内容