[Live-devel] RTSP streaiming of mp3
Jarek M
barcode at o2.pl
Wed Apr 23 09:05:12 PDT 2008
Hi. I'm working on a streaming project; I need to stream mp3s.
I got the live555 API and played with it; the streaming of mp3 worked when I streamed on a local LAN
from Mac to Mac or from PC to Mac. However, I cannot get it to work, when I stream from a remote computer (freebsd or linux box in the USA) to the Mac or PC in germany. I've been using live555 server on one side and mplayer (compiled on MacOS and with live555 linked) and quicktime on the other. Basically, the receiving begins but never completes. Here's the error message I get, when trying to receive the mp3:
bash-3.2$ ./mplayer rtsp://128.205.206.116:8554/test.mp3
MPlayer 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Playing rtsp://128.205.206.116:8554/test.mp3.
Resolving 128.205.206.116 for AF_INET6...
Couldn't resolve name for AF_INET6: 128.205.206.116
Connecting to server 128.205.206.116[128.205.206.116]: 8554...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://128.205.206.116:8554/test.mp3
Stream not seekable!
file format detected.
Initiated "audio/MPA" RTP subsession on port 49394
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Opening audio decoder: [acm] Win32/ACM decoders
WARNING: Attempting to use DLL codecs but environment variable
DYLD_BIND_AT_LAUNCH not set. This will likely crash.
Loading codec DLL: 'l3codeca.acm'
Win32 LoadLibrary failed to load: l3codeca.acm, /usr/local/lib/codecs/l3codeca.acm, /usr/lib/win32/l3codeca.acm, /usr/local/lib/win32/l3codeca.acm
Can't open library l3codeca.acm
ACM_Decoder: Unappropriate audio format
Could not load/initialize Win32/ACM audio codec (missing DLL file?).
ADecoder preinit failed :(
ADecoder init failed :(
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
Cannot sync MPA frame: 0
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x55.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Video: no video
Exiting... (End of file)
bash-3.2$
The problem does not happen, when the live555 MediaServer runs on the same MacOS machine or on a nearby Windows XP machine; howver, when I try to stream from a remote machine, the problem happens.
Is there an explenation for this? I do need to stream mp3 and from what I know, live555 is supposed to be reliable.
Best Regards and Thanks
Jarek Myszewski
More information about the live-devel
mailing list