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

// 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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值