[Live-devel] How to download a RTSP stream data into a file?

j y yunjnz at yahoo.com
Wed Dec 21 20:39:18 PST 2005


Skipped content of type multipart/alternative-------------- next part --------------
Sending request: OPTIONS rtsp://192.168.30.11:554/mpg4video.mp4 RTSP/1.0
CSeq: 1
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Date: Thu, 22 Dec 2005 00:14:45 GMT
Server: Helix Server Version 9.0.6.1262 (win32) (RealServer compatible)
Public: OPTIONS, DESCRIBE, ANNOUNCE, PLAY, SETUP, GET_PARAMETER, SET_PARAMETER, TEARDOWN
RealChallenge1: cfa9f3c9dfd8a88562a92aa971bd504c
StatsMask: 3
 
 
Sending request: DESCRIBE rtsp://192.168.30.11:554/mpg4video.mp4 RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received DESCRIBE response: RTSP/1.0 200 OK
CSeq: 2
Date: Thu, 22 Dec 2005 00:14:46 GMT
Set-Cookie: cbid=jfrgcmpidggfdldmeopoopoqrojrptmpjfggkihljjffeiplosmompptpoknptmpcfjjchoi;path=/;expires=Thu,31-Dec-2037 23:59:59 GMT
vsrc: http://192.168.30.11:80/viewsource/template.html?nuyhtg105oz66cwjo71wx9semE97ag000000000000000000000000000000000000000000
Last-Modified: Thu, 15 Dec 2005 06:23:09 GMT
Content-base: rtsp://192.168.30.11:554/mpg4video.mp4/
Content-type: application/sdp
Content-length: 1956
 
 
Need to read 1956 extra bytes
Read 717 extra bytes: v=0
o=- 1134627789 1134627789 IN IP4 192.168.30.11
s=<No title>
i=<No author> <No copyright>
c=IN IP4 0.0.0.0
t=0 0
a=SdpplinVersion:1610641492
a=DefaultLicenseValue:integer;0
a=IsRealDataType:integer;0
a=StreamCount:integer;2
a=FileType:string;"MPEG4"
a=LicenseKey:string;"license.Summary.Datatypes.RealMPEG4.Enabled"
a=range:npt=0-7.741000
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoIrAE/+AQ/zAQOBPgABQKBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBVm9CT1FVZkF6VUF5U0FBWlFRcklCRUVzQUFBQ1dBQUFBU3dBQVVjQUFBQnNDSUFBQUcxQ1FBQUFRQUFBQUVnQUlSRmFpaFFJUENqQUFZQkJBRWRBcDhER1FCbEFBUVJRQlVBQmdBQUFnQUFBQUVBQUFVQ0VwQUdBUU09BA0BBQAIIQAAAAAAAAAABgkBAAAAAAAAAAADYQACQD5kYXRhOmFwcGxpY2F0aW9uL21wZWc0LWJpZnM
Read 1239 extra bytes: tYXU7YmFzZTY0LHdCQVNnVEFxQlhKaEJJaFFSUVUvQUE9PQQSAg0AABQAAAAAAAAAAAUDAABABgkBAAAAAAAAAAA="
a=ISMA-compliance:1,1,1
m=video 0 RTP/AVP 96
b=AS:304
a=control:streamid=0
a=range:npt=0-7.741000
a=length:npt=7.741000
a=rtpmap:96 MP4V-ES/5544
a=mimetype:string;"video/MP4V-ES"
a=AvgBitRate:integer;304018
a=HasOutOfOrderTS:integer;1
a=ASMRuleBook:string;"Marker=0,AverageBandwidth=304018,TimeStampDelivery=TRUE;Marker=1,AverageBandwidth=0,TimeStampDelivery=TRUE;"
a=StreamName:string;"hinted video track"
a=fmtp:96 profile-level-id=243; config=000001B022000001B50900000100000001200084456A285020F0A300
a=mpeg4-esid:201
a=x-envivio-verid:0000102b
m=audio 0 RTP/AVP 97
b=AS:66
a=control:streamid=1
a=range:npt=0-7.712000
a=length:npt=7.712000
a=rtpmap:97 mpeg4-generic/32000/2
a=mimetype:string;"audio/mpeg4-generic"
a=AvgBitRate:integer;65790
a=HasOutOfOrderTS:integer;1
a=ASMRuleBook:string;"Marker=0,AverageBandwidth=65790,TimeStampDelivery=TRUE;Marker=1,AverageBandwidth=0,TimeStampDelivery=TRUE;"
a=StreamName:string;"hinted audio track"
a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1290; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1
a=mpeg4-esid:101
a=x-envivio-verid:00001027
 
Opened URL "rtsp://192.168.30.11:554/mpg4video.mp4", returning a SDP description:
v=0
o=- 1134627789 1134627789 IN IP4 192.168.30.11
s=<No title>
i=<No author> <No copyright>
c=IN IP4 0.0.0.0
t=0 0
a=SdpplinVersion:1610641492
a=DefaultLicenseValue:integer;0
a=IsRealDataType:integer;0
a=StreamCount:integer;2
a=FileType:string;"MPEG4"
a=LicenseKey:string;"license.Summary.Datatypes.RealMPEG4.Enabled"
a=range:npt=0-7.741000
a=mpeg4-iod:"data:application/mpeg4-iod;base64,AoIrAE/+AQ/zAQOBPgABQKBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBVm9CT1FVZkF6VUF5U0FBWlFRcklCRUVzQUFBQ1dBQUFBU3dBQVVjQUFBQnNDSUFBQUcxQ1FBQUFRQUFBQUVnQUlSRmFpaFFJUENqQUFZQkJBRWRBcDhER1FCbEFBUVJRQlVBQmdBQUFnQUFBQUVBQUFVQ0VwQUdBUU09BA0BBQAIIQAAAAAAAAAABgkBAAAAAAAAAAADYQACQD5kYXRhOmFwcGxpY2F0aW9uL21wZWc0LWJpZnMtYXU7YmFzZTY0LHdCQVNnVEFxQlhKaEJJaFFSUVUvQUE9PQQSAg0AABQAAAAAAAAAAAUDAABABgkBAAAAAAAAAAA="
a=ISMA-compliance:1,1,1
m=video 0 RTP/AVP 96
b=AS:304
a=control:streamid=0
a=range:npt=0-7.741000
a=length:npt=7.741000
a=rtpmap:96 MP4V-ES/5544
a=mimetype:string;"video/MP4V-ES"
a=AvgBitRate:integer;304018
a=HasOutOfOrderTS:integer;1
a=ASMRuleBook:string;"Marker=0,AverageBandwidth=304018,TimeStampDelivery=TRUE;Marker=1,AverageBandwidth=0,TimeStampDelivery=TRUE;"
a=StreamName:string;"hinted video track"
a=fmtp:96 profile-level-id=243; config=000001B022000001B50900000100000001200084456A285020F0A300
a=mpeg4-esid:201
a=x-envivio-verid:0000102b
m=audio 0 RTP/AVP 97
b=AS:66
a=control:streamid=1
a=range:npt=0-7.712000
a=length:npt=7.712000
a=rtpmap:97 mpeg4-generic/32000/2
a=mimetype:string;"audio/mpeg4-generic"
a=AvgBitRate:integer;65790
a=HasOutOfOrderTS:integer;1
a=ASMRuleBook:string;"Marker=0,AverageBandwidth=65790,TimeStampDelivery=TRUE;Marker=1,AverageBandwidth=0,TimeStampDelivery=TRUE;"
a=StreamName:string;"hinted audio track"
a=fmtp:97 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1290; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1
a=mpeg4-esid:101
a=x-envivio-verid:00001027
 
Created receiver for "video/MP4V-ES" subsession (client ports 32770-32771)
Created receiver for "audio/MPEG4-GENERIC" subsession (client ports 32772-32773)Sending request: SETUP rtsp://192.168.30.11:554/mpg4video.mp4/streamid=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=32770-32771
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received SETUP response: RTSP/1.0 200 OK
CSeq: 3
Date: Thu, 22 Dec 2005 00:14:46 GMT
Session: 10438-3
Reconnect: true
RDTFeatureLevel: 2
Transport: rtp/avp;unicast;client_port=32770-32771;server_port=7972-7973
 
 
Setup "video/MP4V-ES" subsession (client ports 32770-32771)
Sending request: SETUP rtsp://192.168.30.11:554/mpg4video.mp4/streamid=1 RTSP/1.0
CSeq: 4
Transport: RTP/AVP;unicast;client_port=32772-32773
Session: 10438-3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received SETUP response: RTSP/1.0 200 OK
CSeq: 4
Date: Thu, 22 Dec 2005 00:14:46 GMT
Session: 10438-3
RDTFeatureLevel: 2
Transport: rtp/avp;unicast;client_port=32772-32773;server_port=12858-12859
 
 
Setup "audio/MPEG4-GENERIC" subsession (client ports 32772-32773)
Created output file: "video-MP4V-ES-1"
Created output file: "audio-MPEG4-GENERIC-2"
Sending request: PLAY rtsp://192.168.30.11:554/mpg4video.mp4 RTSP/1.0
CSeq: 5
Session: 10438-3
Range: npt=0.000-
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received PLAY response: RTSP/1.0 200 OK
CSeq: 5
Date: Thu, 22 Dec 2005 00:14:46 GMT
RTP-Info: url=rtsp://192.168.30.11:554/mpg4video.mp4/streamid=0;seq=0;rtptime=0, url=rtsp://192.168.30.11:554/mpg4video.mp4/streamid=1;seq=0;rtptime=0
 
 
Started playing session
Receiving streamed data (for up to 12.741000 seconds)...
Received RTCP "BYE" on "audio/MPEG4-GENERIC" subsession (after 8 seconds)
Received RTCP "BYE" on "video/MP4V-ES" subsession (after 8 seconds)
Sending request: TEARDOWN rtsp://192.168.30.11:554/mpg4video.mp4 RTSP/1.0
CSeq: 6
Session: 10438-3
User-Agent: ./openRTSP (LIVE555 Streaming Media v2005.11.10)
 
 
Received TEARDOWN response: RTSP/1.0 200 OK
CSeq: 6
Date: Thu, 22 Dec 2005 00:14:54 GMT



More information about the live-devel mailing list