rtsp problem

F

firefli

hi, everyone. I'm coding a rtsp proxy like program. When I send SETUP
instruction to stream server, it respond me an error.
Here is my way:
1 open two udp port 6970-6971 for rtp/avp
2 establish a tcp connection with remote stream server on 554 port
3 send OPTIONS instruction and read response
4 send DESCRIBE instruction then read
5 send SETUP and the server tell me the error in Transport head. But I
can't find any error in Transport head.

debug information is listed below.

Does anybody know the reason?

thanks a million

firefli

---------------------------------------------------

OPTIONS * RTSP/1.0
CSeq: 1
Proxy-Require: gzipped-messages


RTSP/1.0 200 OK
CSeq: 1
Date: Mon, 09 May 2005 01:42:33 GMT
Server: Helix Server Version 9.0.4.958 (win32) (RealServer compatible)
Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP, GET_PARAMETER,
SET_PARAMETER, TEARDOWN
RealChallenge1: 52eba08853345a72ad63430e9043bbd0
StatsMask: 3

DESCRIBE rtsp://172.16.19.1:554/real9video.rm RTSP/1.0
CSeq: 2
Accept: application/sdp


RTSP/1.0 200 OK
CSeq: 2
Date: Mon, 09 May 2005 01:42:33 GMT
Set-Cookie:
cbid=hfcjcmcicgdkllhheoqorpnqkojrptluefejkipinjifhlplmsjopphqmornltdudfhjcmei;path=/;expires=Thu,31-Dec-2037
23:59:59 GMT
vsrc:
http://172.16.19.1:8081/viewsource/...fng000000r7CqCg000000000000rxg0000g59sedozi0m
Last-Modified: Tue, 27 Jul 2004 04:43:33 GMT
Content-base: rtsp://172.16.19.1:554/real9video.rm/
Content-type: application/sdp
Content-length: 2069

v=0
o=- 1090903413 1090903413 IN IP4 172.16.19.1
s=<No title>
i=<No author> (c) 2002
c=IN IP4 0.0.0.0
t=0 0
a=SdpplinVersion:1610645285
a=Flags:integer;9
a=IsRealDataType:integer;1
a=StreamCount:integer;2
a=Copyright:buffer;"KGMpIDIwMDIA"
a=ASMRuleBook:string;"#($Bandwidth >= 0),Stream0Bandwidth = 44100,
Stream1Bandwidth = 180900;"
a=range:npt=0-
m=audio 0 RTP/AVP 101
b=AS:44
a=control:streamid=0
a=range:npt=0-7.779000
a=length:npt=7.779000
a=rtpmap:101 x-pn-realaudio/1000
a=mimetype:string;"audio/x-pn-realaudio"
a=ActualPreroll:integer;1857
a=AvgBitRate:integer;44100
a=AvgPacketSize:integer;640
a=EndOneRuleEndAll:integer;1
a=EndTime:integer;7741
a=MaxBitRate:integer;44100
a=MaxPacketSize:integer;640
a=Preroll:integer;3714
a=OpaqueData:buffer;"LnJh/QAFAAAucmE1AAAAEAAFAAAATgAXAAACgAAAAAAABQv+AAAAAAAQAoAAgAAAAACsRAAArEQAAAAQAAJnZW5yY29vawEHAAAAAAAQAQAAAwgAACUAAAAAAAIABA=="
a=RMFF 1.0 Flags:buffer;"AAIAAgAA"
a=ASMRuleBook:string;"priority=5,averagebandwidth=44100,PNMKeyFrameRule=T;priority=5,averagebandwidth=0,PNMNonKeyFrameRule=T,OnDepend=\"0\",OffDepend=\"0\";"
a=intrinsicDurationType:string;"intrinsicDurationContinuous"
a=StreamName:string;"Audio Stream"
m=video 0 RTP/AVP 101
b=AS:181
a=control:streamid=1
a=range:npt=0-7.640000
a=length:npt=7.640000
a=rtpmap:101 x-pn-realvideo/1000
a=mimetype:string;"video/x-pn-realvideo"
a=ActualPreroll:integer;561
a=AvgBitRate:integer;180900
a=AvgPacketSize:integer;2000
a=EndOneRuleEndAll:integer;1
a=MaxBitRate:integer;180900
a=MaxPacketSize:integer;2000
a=Preroll:integer;1561
a=OpaqueData:buffer;"AAAAIlZJRE9SVjQwAUAA8AAMAAAAAAAd+FIASBAgQAAAAA=="
a=RMFF 1.0 Flags:buffer;"AAMAAgAAAAI="
a=ASMRuleBook:string;"#($Bandwidth >=
180900),priority=9,averagebandwidth=180900,PNMKeyFrameRule=T;#($Bandwidth
180900),OnDepend=\"0\",priority=5,averagebandwidth=0,PNMNonKeyFrameRule=T;#($Bandwidth
< 180900),priority=9,timestampdelivery=T,DropByN=T,PNMThinningRule=T;"
a=intrinsicDurationType:string;"intrinsicDurationContinuous"
a=StreamName:string;"Video Stream"
SETUP rtsp://172.16.19.1:554/real9video.rm/streamid=0 RTSP/1.0
CSeq: 3
Transport:
x-real-rdt/mcast;client_port=6970;mode=play,x-real-rdt/udp;client_port=6970;mode=play,x-pn-tng/udp;client_port=6970;mode=play,RTP/AVP;unicast;client_port=6970-6971;mode=play,x-pn-tng/tcp;mode=play,x-real-rdt/tcp;mode=play,RTP/AVP/TCP;unicast;mode=play


RTSP/1.0 461 Unsupported Transport
CSeq: 3
Date: Mon, 09 May 2005 01:42:34 GMT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top