Real-Time Streaming Protocol
The Real-Time Streaming Protocol (RTSP) is an application-level network protocol designed for multiplexing and packetizing multimedia transport streams (such as interactive media, video and audio) over a suitable transport protocol.
≈ 5 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
The Real-Time Streaming Protocol (RTSP) is an application-level network protocol designed for multiplexing and packetizing multimedia transport streams (such as interactive media, video and audio) over a suitable transport protocol. RTSP is used in entertainment and communications systems to control streaming media servers.
The protocol is used for establishing and controlling media sessions between endpoints. Clients of media servers issue commands such as play, record and pause to facilitate real-time control of the media streaming from the server to a client (video on demand) or from a client to the server (voice recording). m=video 0 RTP/AVP 96 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=StreamName:string;"hinted video track" m=audio 0 RTP/AVP 97 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=StreamName:string;"hinted audio track" C->S: SETUP rtsp://example.com/media.mp4/streamid=0 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=8000-8001 S->C: RTSP/1.0 200 OK CSeq: 3 Transport: RTP/AVP;unicast;client_port=8000-8001;server_port=9000-9001;ssrc=1234ABCD Session: 12345678 C->S: SETUP rtsp://example.com/media.mp4/streamid=1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=8002-8003 Session: 12345678 S->C: RTSP/1.0 200 OK CSeq: 3 Transport: RTP/AVP;unicast;client_port=8002-8003;server_port=9002-9003;ssrc=1234ABCD Session: 12345678 Range: npt=5-20 Session: 12345678 S->C: RTSP/1.0 200 OK CSeq: 4 Session: 12345678 RTP-Info: url=rtsp://example.com/media.mp4/streamid=0;seq=9810092;rtptime=3450012 Range: clock=19960213T143205Z- Transport: RTP/AVP/TCP;interleaved=0-1 S->C: RTSP/1.0 200 OK CSeq: 3 Date: 05 Jun 1997 18:57:18 GMT Transport: RTP/AVP/TCP;interleaved=0-1 Session: 12345678 C->S: PLAY rtsp://example.com/media.mp4 RTSP/1.0 CSeq: 4 Session: 12345678 S->C: RTSP/1.0 200 OK CSeq: 4 Session: 12345678 Date: 05 Jun 1997 18:59:15 GMT RTP-Info: url=rtsp://example.com/media.mp4;seq=232433;rtptime=972948234 S->C: $\000{2 byte length}{"length" bytes data, w/RTP header} S->C: $\000{2 byte length}{"length" bytes data, w/RTP header} S->C: $\001{2 byte length}{"length" bytes RTCP packet}
Rate adaptation
RTSP using RTP and RTCP allows for the implementation of rate adaptation.
Server
Ant Media Server: The Community version supports pulling from RTSP/S sources and can livestream using HLS or record in MP4. The Enterprise version can convert RTSP to WebRTC with approximately 200-500ms end-to-end latency. Darwin Streaming Server is an open source version of QuickTime Streaming Server maintained by Apple.
GStreamer based RTSP Server and client. Helix DNA Server is RealNetworks' streaming server, which comes in both open-source and proprietary versions. Helix Universal Server is RealNetworks' commercial streaming server for RTSP, RTMP, iOS, Silverlight and HTTP streaming media clients.
LIVE555 liveMedia / openRTSP are open source C++ server and client libraries used in well-known clients like VLC and mplayer. Motion is a free CCTV software application for Linux. Nimble Streamer supports RTSP pull and announce input, with TCP interleaved playback output.
OvenMediaEngine is an open source low-latency streaming server that supports RTSP push input. pvServer: Formerly called PacketVideo Streaming Server, this is Alcatel-Lucent's streaming server product. QuickTime Streaming Server is Apple's closed-source streaming server that ships with Mac OS X Server. VideoLAN is an open source media player and streaming server.
Windows Media Services is a Microsoft streaming server previously included with Windows Server that uses RTSP modified with Windows Media extensions. Wowza Streaming Engine is a multi-format streaming server for RTSP/RTP, RTMP, MPEG-TS, ICY, HTTP (HTTP Live Streaming, HTTP Dynamic Streaming, Smooth Streaming, MPEG-DASH), and WebRTC.
YouTube implemented a mobile web front end in June 2007, which serves video through this protocol. Many CCTV / Security cameras, often called IP cameras, support RTSP streaming too, especially those with ONVIF profiles G, S, T.
Client
Astra cURL (beginning with version 7.20.0—9 February 2010 ) FFmpeg GStreamer JetAudio LIVE555 liveMedia / openRTSP: Open source C++ server and client libraries used in well-known clients like VLC and mplayer. Media Player Classic MPlayer MythTV via Freebox QuickTime RealPlayer Skype Spotify VLC media player Winamp Windows Media Player xine ZoneMinder Motion (surveillance software)
External links
, a central information repository about RTSP. , A standard solution to help RTSP work through firewalls and web proxies "Managed Media Aggregation using Rtsp and Rtp", Walks a developer through the implementation of a standards-compliant RtspClient and RtspServer.
Text derived from https://en.wikipedia.org/w/index.php?oldid=1361222285 under CC BY-SA 4.0; modifications have been made.