简单完整的一个 rtsp 交互过程 live555-openRTSP

来源:互联网 发布:软件测试职业资格证书 编辑:程序博客网 时间:2024/05/16 23:02

// rtsp

D:\openRTSP rtsp://127.0.0.1/slamtv60.264

Opening connection to 127.0.0.1, port 554...
...remote connection opened
Sending request: OPTIONS rtsp://127.0.0.1/slamtv60.264 RTSP/1.0
CSeq: 2
User-Agent: openRTSP (LIVE555 Streaming Media v2014.03.25)


Received 152 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
CSeq: 2
Date: Wed, Apr 09 2014 06:39:38 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARA
METER


Sending request: DESCRIBE rtsp://127.0.0.1/slamtv60.264 RTSP/1.0
CSeq: 3
User-Agent: openRTSP (LIVE555 Streaming Media v2014.03.25)
Accept: application/sdp


Received 688 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
CSeq: 3
Date: Wed, Apr 09 2014 06:39:38 GMT
Content-Base: rtsp://127.0.0.1/slamtv60.264/
Content-Type: application/sdp
Content-Length: 525

v=0
o=- 1397025538294668 1 IN IP4 192.168.1.221
s=H.264 Video, streamed by the LIVE555 Media Server
i=slamtv60.264
t=0 0
a=tool:LIVE555 Streaming Media v2014.03.25
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:slamtv60.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D4033;sprop-parameter-sets=Z01A
M5JUDAS0IAAAAwBAAAAM0eMGVA==,aO48gA==
a=control:track1

Opened URL "rtsp://127.0.0.1/slamtv60.264", returning a SDP description:
v=0
o=- 1397025538294668 1 IN IP4 192.168.1.221
s=H.264 Video, streamed by the LIVE555 Media Server
i=slamtv60.264
t=0 0
a=tool:LIVE555 Streaming Media v2014.03.25
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.264 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:slamtv60.264
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D4033;sprop-parameter-sets=Z01A
M5JUDAS0IAAAAwBAAAAM0eMGVA==,aO48gA==
a=control:track1

Created receiver for "video/H264" subsession (client ports 56060-56061)
Sending request: SETUP rtsp://127.0.0.1/slamtv60.264/track1 RTSP/1.0
CSeq: 4
User-Agent: openRTSP (LIVE555 Streaming Media v2014.03.25)
Transport: RTP/AVP;unicast;client_port=56060-56061


Received 208 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
CSeq: 4
Date: Wed, Apr 09 2014 06:39:38 GMT
Transport: RTP/AVP;unicast;destination=127.0.0.1;source=127.0.0.1;client_port=56
060-56061;server_port=6972-6973
Session: 04BBA96C;timeout=65


Setup "video/H264" subsession (client ports 56060-56061)
Created output file: "video-H264-1"
Sending request: PLAY rtsp://127.0.0.1/slamtv60.264/ RTSP/1.0
CSeq: 5
User-Agent: openRTSP (LIVE555 Streaming Media v2014.03.25)
Session: 04BBA96C
Range: npt=0.000-


Received 183 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
CSeq: 5
Date: Wed, Apr 09 2014 06:39:38 GMT
Range: npt=0.000-
Session: 04BBA96C
RTP-Info: url=rtsp://127.0.0.1/slamtv60.264/track1;seq=23312;rtptime=474735247


Started playing session
Receiving streamed data...
Received RTCP "BYE" on "video/H264" subsession (after 59 seconds)
Sending request: TEARDOWN rtsp://127.0.0.1/slamtv60.264/ RTSP/1.0
CSeq: 6
User-Agent: openRTSP (LIVE555 Streaming Media v2014.03.25)
Session: 04BBA96C


Received 65 new bytes of response data.
Received a complete TEARDOWN response:
RTSP/1.0 200 OK
CSeq: 6
Date: Wed, Apr 09 2014 06:40:37 GMT

 

0 0
原创粉丝点击