[Live-devel] Failed to read response: Success

Scott Hays sdhays at neon.com.tw
Thu May 12 18:45:49 PDT 2005


I'm writing an MPEG4 ES video streaming server for use with an MPEG4 encoder 
chip.  In my DeviceSource-derived class, I get the data from the encoder 
chip, add VS and VOL headers every second, and hand off the frame (plus any 
added headers) to MPEG4VideoStreamDiscreteFramer.  The rest of the server is 
derived directly from testMPEG4VideoStreamer.

When I try to receive a stream from the server using openRTSP, everything 
seems to be fine until openRTSP sends a SETUP request.  Then it just hangs 
until the server shuts down or I kill it.  Here's the output from the -V 
option:
-------
Sending request: OPTIONS rtsp://192.168.1.118:8554/cameraVideo.m4v RTSP/1.0
CSeq: 1
User-Agent: ./testProgs/openRTSP (LIVE.COM Streaming Media v2005.05.11)


Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Date: Thu, Jan 01 1970 00:01:27 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE


Sending request: DESCRIBE rtsp://192.168.1.118:8554/cameraVideo.m4v RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: ./testProgs/openRTSP (LIVE.COM Streaming Media v2005.05.11)


Received DESCRIBE response: RTSP/1.0 200 OK
CSeq: 2
Date: Thu, Jan 01 1970 00:01:27 GMT
Content-Base: rtsp://192.168.1.118:8554/cameraVideo.m4v/
Content-Type: application/sdp
Content-Length: 551


Need to read 551 extra bytes
Read 551 extra bytes: v=0
o=- 83202853 1 IN IP4 192.168.1.118
s=Session streamed by "SimpleStreamingServer"
i=/dev/pravdrv
t=0 0
a=tool:LIVE.COM Streaming Media v2005.05.11
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.1.118
a=rtcp:unicast reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "SimpleStreamingServer"
a=x-qt-text-inf:/dev/pravdrv
m=video 18888 RTP/AVP 96
c=IN IP4 127.0.0.0/255
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 
profile-level-id=146;config=000001B092000001000000012008C888BA98516843C14183
a=control:track1

Opened URL "rtsp://192.168.1.118:8554/cameraVideo.m4v", returning a SDP 
description:
v=0
o=- 83202853 1 IN IP4 192.168.1.118
s=Session streamed by "SimpleStreamingServer"
i=/dev/pravdrv
t=0 0
a=tool:LIVE.COM Streaming Media v2005.05.11
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.1.118
a=rtcp:unicast reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "SimpleStreamingServer"
a=x-qt-text-inf:/dev/pravdrv
m=video 18888 RTP/AVP 96
c=IN IP4 127.0.0.0/255
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 
profile-level-id=146;config=000001B092000001000000012008C888BA98516843C14183
a=control:track1

Created receiver for "video/MP4V-ES" subsession (client ports 18888-18889)
Sending request: SETUP rtsp://192.168.1.118:8554/cameraVideo.m4v/track1 
RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=18888-18889
User-Agent: ./testProgs/openRTSP (LIVE.COM Streaming Media v2005.05.11)


Failed to setup "video/MP4V-ES" subsession: Failed to read response: Success
--------
ffplay complains with "Error while parsing header", but that's not very 
helpful, since of course it can't read a header it's not receiving.
Any suggestions on what I'm doing wrong?

Scott Hays


More information about the live-devel mailing list