Quicktime 的 RTSP交互简单描述

文件格式:
音频:
        Payload type: QDesign Music
        Encode type: QDesign Music 2
        取样速率:24KHZ
        取样大小:16
        通道数:2
        位数率:16Kb/s
 
视频:
        Payload type: Sorenson Video 3
        Encode type: Sorenson Video 3
        质量:中等
        每秒帧数(FPS):15
        关键帧的间隔帧数:20
 
 

 

 

 

 

 

 

 

 

 

 

 

 ----------------------- C -> S -----------------------

 

DESCRIBE rtsp://wutian/sixties_QDM2_SVQ3_hint.mov RTSP/1.0
CSeq: 1
Accept: application/sdp
Bandwidth: 2147483647
Accept-Language: en-US
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
 

 

----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 1
Last-Modified: Thu, 22 Sep 2005 11:07:52 GMT
Cache-Control: must-revalidate
Content-length: 379                                                                                      (指示.sdp文件的长度)
Date: Thu, 22 Sep 2005 11:10:37 GMT
Expires: Thu, 22 Sep 2005 11:10:37 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
x-Accept-Dynamic-Rate: 1
Content-Base: rtsp://wutian/sixties_QDM2_SVQ3_hint.mov/
 

 

v=0                                                                                                                     (由此开始便是sdp描述了)
o=StreamingServer 3336376236 1127387272000 IN IP4 192.168.0.12
s=/sixties_QDM2_SVQ3_hint.mov
u=http:///
e=admin@
c=IN IP4 0.0.0.0                                                                                                    (使用 IPv4 )
b=AS:294
t=0 0
a=control:*
a=range:npt=0- 31.12000
m=video 0 RTP/AVP 96                                                                                       (由此开始是视频轨道的描述)
b=AS:278
a=rtpmap:96 X-SV3V-ES/90000                                          (X-SV3V-ES 指该视频的编码为 Sorensen Video 3)
a=control:trackID=3
m=audio 0 RTP/AVP 97                                                         (由此开始是音频轨道的描述)
b=AS:15
a=rtpmap:97 X-QDM/24000/2                                              (X-QDM/24000/2 指音频编码为QDesign Music 2, 24000 a=control:trackID=4                                                         为取样速率,2为声道数)
a=x-bufferdelay:4.99
  

 

----------------------- C -> S -----------------------

 

SETUP rtsp://wutian/sixties_QDM2_SVQ3_hint.mov/trackID=3 RTSP/1.0
CSeq: 2
Transport: RTP/AVP;unicast;client_port=6974-6975
x-retransmit: our-retransmit
x-dynamic-rate: 1
x-transport-options: late-tolerance=2.384000
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
Accept-Language: en-US
  

 

----------------------- S -> C -----------------------

 

OPTIONS * RTSP/1.0                                                                     (通常,该命令无用)
Content-Type: application/x-random-data
Content-Length: 1400
。。。。
 

 

----------------------- C -> S -----------------------

 

RTSP/1.0 501 未实现
 

 

----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 2
Last-Modified: Thu, 22 Sep 2005 11:07:52 GMT
Cache-Control: must-revalidate
Session: 66640712575791
Date: Thu, 22 Sep 2005 11:10:37 GMT
Expires: Thu, 22 Sep 2005 11:10:37 GMT
Transport: RTP/AVP;unicast;client_port=6974-6975;source=192.168.0.12;server_port=6970-6971;ssrc="/00006AF7"
(Transport: RTP/AVP 指使用 UDP 协议传输数据,若为RTP/AVP/TCP 则为使用TCP协议传输)
(*.若使用的是TCP协议传输数据,则所有C to S的数据将会使用base64加密)
(client_port、server_port为传输数据时所用的UDP端口号)
x-Transport-Options: late-tolerance=2.384000
x-Retransmit: our-retransmit
x-Dynamic-Rate: 1;rtt=20

 

 

 

----------------------- C -> S -----------------------

 

SETUP rtsp://wutian/sixties_QDM2_SVQ3_hint.mov/trackID=4 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=6972-6973
x-retransmit: our-retransmit
x-dynamic-rate: 1
x-transport-options: late-tolerance=2.384000
Session: 66640712575791                                              (会话序号,整个会话过程中,Session号都将相同)
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
Accept-Language: en-US
 
----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 3
Session: 66640712575791
Last-Modified: Thu, 22 Sep 2005 11:07:52 GMT
Cache-Control: must-revalidate
Date: Thu, 22 Sep 2005 11:10:37 GMT
Expires: Thu, 22 Sep 2005 11:10:37 GMT
Transport: RTP/AVP;unicast;client_port=6972-6973;source=192.168.0.12;server_port=6970-6971;ssrc="/000027DC"
x-Transport-Options: late-tolerance=2.384000
x-Retransmit: our-retransmit
x-Dynamic-Rate: 1
----------------------- C -> S -----------------------

 

PLAY rtsp://wutian/sixties_QDM2_SVQ3_hint.mov RTSP/1.0
CSeq: 4
Range: npt=0.000000-31.120000                                           (播放时间)
x-prebuffer: maxtime=2.000000
x-transport-options: late-tolerance=10
Session: 66640712575791
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)

 

----------------------- S -> C -----------------------
RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 4
Session: 66640712575791
Range: npt=0.00000-31.12000
RTP-Info: url=trackID=3;seq=6632;rtptime=21449,url=trackID=4;seq=4638;rtptime=25865
 

 

 ----------------------- C -> S -----------------------

 

SET_PARAMETER rtsp://wutian/sixties_QDM2_SVQ3_hint.mov RTSP/1.0
CSeq: 5
x-transport-options: late-tolerance=1.984000
Session: 66640712575791
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
 

 

----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 5
Session: 66640712575791
 

 

----------------------- C -> S -----------------------

 

PAUSE rtsp://wutian/sixties_QDM2_SVQ3_hint.mov RTSP/1.0
CSeq: 6
Session: 66640712575791
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
 

 

----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 6
Session: 66640712575791
 

 

----------------------- C -> S -----------------------

 

TEARDOWN rtsp://wutian/sixties_QDM2_SVQ3_hint.mov RTSP/1.0
CSeq: 7
Session: 66640712575791
User-Agent: QTS (qtver=6.5.1;os=Windows NT 5.0Service Pack 3)
 

 

----------------------- S -> C -----------------------

 

RTSP/1.0 200 OK
Server: DSS/5.0.1.1 (Build/464.1.1; Platform/Win32; Release/5; )
Cseq: 7
Session: 66640712575791
Connection: Close
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值