???????:RTSP - PowerPoint PPT Presentation

1 / 26
About This Presentation
Title:

???????:RTSP

Description:

rtsp , , . – PowerPoint PPT presentation

Number of Views:174
Avg rating:3.0/5.0
Slides: 27
Provided by: pud4
Category:
Tags: rtsp

less

Transcript and Presenter's Notes

Title: ???????:RTSP


1
???????
2
IPTV -- ??????
  • ???????RTSP
  • ???????????????,?????????,????????.
  • ????RTP/RTCP
  • RTP??RTP???????????,???????/????/???????????????
    ??,????????????????
  • RTCP??????,????????
  • ??????SDP
  • ??????????????????????,?????
  • ????????
  • ?????????????

3
?????
1RTP/RTCP???UDP???,RTSP???TCP??? 2?????????RTP?
,???????????? 3SDP??RTSP?,?????????????????
4
RTSP ??????
RTSP????????,???HTTP??????? ?????????????????
  • RTSP URL
  • ????????????
  • RTSP????
  • ????????
  • RTSP??
  • ???????????????
  • RTSP??
  • ??????????

5
  • URL??
  • rtsp_URL ( "rtsp" "rtspu" )
  • "//" host "" port abs_path
  • ??rtsp???????tcp?,rtspu?????udp??
  • ????
  • 1????????
  • ltA HREFrtsp//192.168.0.124554/video/risk.mp4"
    gt
  • ???lt/Agt
  • ??????????????
  • DESCRIBE rtsp//192.168.0.124554/video/risk.mp4
  • CSeq 1
  • 2?sdp????????
  • ltA HREFhttp//www.skyiptv.com/video/risk.sdp"gt
  • ????????http????SDP????
  • GET /video/risk.sdp HTTP/1.1
  • Host www.skyiptv.com

6
  • ??????
  • ????
  • C-gtA
  • SETUP rtsp//audio.example.com/twister/audio.en
    RTSP/1.0
  • CSeq 1
  • TransportRTP/AVP/UDPunicastclient_port3056-305
    7
  • A-gtC
  • RTSP/1.0 200 OK
  • CSeq 1
  • Session 12345678
  • Transport RTP/AVP/UDPunicastclient_port3056-30
    57 server_port5000-5001
  • 1status line
  • ??Status line CMD ?? ?????
  • ??Status line ????? ???? ????

7
  • 2??????
  • ??RFC889??,??HTTP/SIP???
  • message-header field-name "" field-value
  • ??????????,?????????????????
  • ????
  • (????????????? ????????)
  • RTSP?????SDP??????,RTSP???????,SDP???
  • SDP???????
  • C-gtM
  • DESCRIBE rtsp//server.example.com/demo/sound
    RTSP/1.0
  • CSeq 1
  • Accept application/sdp
  • M-gtC
  • RTSP/1.0 200 1 OK
  • Content-type application/sdp
  • Content-Length 44
  • v0

8
  • RTSP????
  • method direction object
    requirement
  • DESCRIBE C-gtS P,S
    recommended
  • ANNOUNCE C-gtS, S-gtC P,S
    optional
  • GET_PARAMETER C-gtS, S-gtC P,S
    optional
  • OPTIONS C-gtS, S-gtC P,S
    required

  • (S-gtC optional)
  • PAUSE C-gtS P,S
    recommended
  • PLAY C-gtS P,S
    required
  • RECORD C-gtS P,S
    optional
  • REDIRECT S-gtC P,S
    optional
  • SETUP C-gtS S
    required
  • SET_PARAMETER C-gtS, S-gtC P,S
    optional
  • TEARDOWN C-gtS P,S
    required

9
  • RTSP??rtsp????
  • A option ??,?????????,???????????
  • OPTIONS RTSP/1.0
  • SEQ 1
  • SESSION12345678
  • B DESC??,?????,?????????????
  • DESCRIBE rtsp//server.example.com/demo/sound
    RTSP/1.0
  • CSeq 1
  • SESSION12345678
  • Accept application/sdp
  • C setup ??,?????,?????????????,??RTP
  • ????
  • SETUP rtsp//audio.example.com/twister/audio.en
    RTSP/1.0
  • CSeq 1
  • TransportRTP/AVP/UDPunicastclient_port3056-305
    7
  • D PLAY/PAUSE/TEARDOWN??,?????,????????

10
  • PLAY rtsp//live.example.com/concert/audio
    RTSP/1.0
  • CSeq 3
  • Session 12345678
  • PAUSE rtsp//live.example.com/concert/audio
    RTSP/1.0
  • CSeq 3
  • Session 12345678
  • TEARDOWN rtsp//live.example.com/concert/audio
    RTSP/1.0
  • CSeq 3
  • Session 12345678
  • EGETPARA
  • ??????????
  • GET_PARAMETER rtsp//live.example.com/concert/audi
    o RTSP/1.0
  • CSeq 3
  • Session 12345678
  • ??

11
  • VOD???????
  • ??RTSP??,???????????,??setup??????????
  • ????????????????????
  • 1SEEK??????????
  • Range header
  • ??RTSP?,????????,?????????????,??????
  • ?????PLAY????????,??????,??????,????
  • PAUSE????????????ntp?????
  • C-gtS
  • PLAY rtsp//audio.example.com/audio RTSP/1.0
  • CSeq 836
  • Session 12345678
  • Range npt20-25 //?20?,???25?
  • Range npt30- //?30?,???????

12
  • 2????????????
  • Scale header
  • ??RTSP?,?????????????????????,???Record
  • Play????
  • PAUSE????????????Sacle????Play?
  • PLAY rtsp//audio.example.com/audio RTSP/1.0
  • CSeq 836
  • Session 12345678
  • Scale2 //??????
  • Scale0.5 //1/2?????
  • Scale-1 //??
  • Scale-2 //??????
  • Scale-0.5 //??????
  • Scale?Speed???
  • Scale ?????????,???????????,?????
  • ??????

13
  • 3?????
  • ???????????,????SETUP??,??????????
  • ????
  • ?????????
  • v0
  • o- 2890844526 2890842807 IN IP4 192.16.24.202
  • sRTSP Session
  • maudio 0 RTP/AVP 0
  • acontrolrtsp//audio.example.com/twister/audio.e
    n
  • mvideo 0 RTP/AVP 31
  • acontrolrtsp//video.example.com/twister/video
  • ??????????????,?????????????,???
  • ??????????????

14
  • RTSP???
  • ????????,???PLAYING???
  • ???

15
RTP/RTCP ????
RTP?????????,??RTP??????RTCP ?????????,??????????
??????
  • RTP
  • ?????????????????(????????
  • ?),??????????????????
  • RTCP
  • ???????????????,??QOS????????????????????
  • ????
  • ??????????????????????????
  • ??
  • ??????
  • ????????????RTP??????

16
RTP??
  • RTP????RTP???RTP?????RTP????
  • ????

17
RTP??
  • 1V2 ??? (2BIT)
  • 2P ????? (1BIT),
  • P1 ???????,???????????????
  • P0 ?
  • 3X ?????
  • 4CC ???????
  • 5M ??? ?????????
  • 5M ??? ?????????
  • 6PT ???? ?????????(????),??????,???????
  • 7???16??,???????,???????????????????????
  • 8rtp timestp 32??
  • ???????,?????????????,??mpeg4??????????????
    ?mpeg?????????????????
  • 9??????????
  • 10???
  • ???????????????

18
RTP??????
?????????,?????????????????mp4 over
rtp,rfc?????????????????es???.
  • 1MPEG-4???
  • 2RTP ??????
  • 2?rtp head???
  • 3??????

19
  • MPEG4????

20
MP4 RTP??????
  • 1 RFC3016????MPEG4-?????????
  • ?RTP???,??????????
  • 2RFC3640????MPEG4 ?????????
  • RTP???,????????????
  • 3?MPEG4 SL???????RTP???,??
  • ?MPEG4????
  • 4?MPEG4 ?????FLEXmux???????
  • ?,???RTP???
  • ISMA 1.0????1,2????????????

21
(No Transcript)
22
SDP??
  • 1 ???????,??????????????
  • 2??????????????????
  • 3????
  • ???
  • ??????
  • ?????????
  • ???????
  • ?????(????????)
  • ???
  • ????(????)
  • ????(rtp/udp/ip,h.320)
  • ????(h.261/264,mpegxx,wmv)
  • ???????
  • 5????
  • ???,UTF-8??lttypegtltvaluegt

23
???SDP??
  • ????
  • 1 ?????
  • oltusernamegt ltsession idgt ltversiongt ltnettypegt
    ltaddr typegt ltaddressgt
  • ????????????????????
  • ??
  • omhandley 2890844526 2890842807 IN IP4
    126.16.64.4
  • 2????
  • cltnet typegt ltaddr typegt ltaddressgt(ltttlgt ltnumgt)
  • ??????
  • ??
  • cIN IP4 192.168.0.124
  • cIN IP4 224.2.17.12/127/3
  • 3????
  • tltstart timegt ltend timegt
  • rltrepeat circlegt ltrun timegt lt offset list gt
  • zltadjust timegt ltoffset valuegt ltadjust timegt
    ltoffset valuegt
  • t3034423619 3042462419

24
  • 4 ????
  • kltmethodgt
  • kltmethodgtltcontentgt
  • Kbase64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  • ??????????????
  • 5 ????
  • alttypegtvalue
  • artpmap98 MP4V-ES/90000
  • afmtp98 profile-level-id145
  • ????
  • 1????
  • mltmediagt ltportgt/ltnumber of portsgt lttransportgt
    ltfmt listgt
  • mvideo 49170/2 RTP/AVP 31
  • ??RFC3016?mp4????????

25
  • ????
  • RFC 2326 - Real Time Streaming Protocol (RTSP)
  • RFC 2327 - SDP Session Description Protocol
  • RFC 3550 - RTP A Transport Protocol for
    Real-Time Applications
  • RFC 3551 - RTP Profile for Audio and Video
    Conferences with Minimal Control
  • RFC 3640 - RTP Payload Format for Transport of
    MPEG-4 Elementary Streams
  • RFC 3016 - RTP Payload Format for MPEG-4
    Audio/Visual Streams

26
??!
Write a Comment
User Comments (0)
About PowerShow.com