[Live-devel] problem trying to transmit raw audio data to mplayer

Ottavio Campana ottavio at videotec.com
Thu Jul 23 02:45:42 PDT 2009


For some tests I'0m trying to transmit raw audio data to maplayer. It's
basically cd quality, thus with sampling rate 44100 Hz, 2 channels and
16 bits per sample, little endian.

If I try to download the stream with openRTSP it works fine, I just open
the received stream with audacity and I can listen to it.

The output of openRTSP is

Opened URL "rtsp://192.168.0.100:8554/video_stream", returning a SDP
description:
v=0
o=- 1076509460391806 1 IN IP4 192.168.0.100
s=Session streamed by my program
i=LIVE555 Streaming Media v
t=0 0
a=tool:LIVE555 Streaming Media v2009.06.02
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.0.100
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by my program
a=x-qt-text-inf:LIVE555 Streaming Media v
m=audio 18890 RTP/AVP 98
c=IN IP4 232.35.236.86/255
a=rtpmap:98 L16/44100/2
a=control:track1

Created receiver for "audio/L16" subsession (client ports 18890-18891)
Setup "audio/L16" subsession (client ports 18890-18891)
Created output file: "audio-L16-1"
Started playing session
Receiving streamed data (signal with "kill -HUP 10123" or "kill -USR1
10123" to terminate)...

When I try to listen to it with maplyer I get this output:

MPlayer dev-SVN-r26940
CPU: Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz (Family: 6, Model:
15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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://192.168.0.100:8554/video_stream.
Resolving 192.168.0.100 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.0.100
Connecting to server 192.168.0.100[192.168.0.100]: 8554...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://192.168.0.100:8554/video_stream
Stream not seekable!
 file format detected.
Initiated "audio/L16" RTP subsession on port 18890
No stream found.


Exiting... (End of file)

What can be the reason of this error? I create the RTPSink with this code:

	  rtsp_layer->audio_sink =
            SimpleRTPSink::
            createNew (*((UsageEnvironment *) rtsp_layer->env),
                       (Groupsock *) rtsp_layer->audio_rtp_groupsock,
                       98, 44100, "audio", "L16", 2);

But I don't know if it is correct, I just took testWAVAudioStreamer.cpp
as an example.

Thank you for your help,

Ottavio


More information about the live-devel mailing list