RTSP
Real Time Streaming ProtocolBest for: IP cameras and recorders
- PLAY, from Recorder
- OK, from Camera
- Video, from Camera
- Video, from Camera
Compare protocols
Best for: IP cameras and recorders
Best for: Going live from your computer
RTSP is a remote control for media: a viewer asks a camera to DESCRIBE, SETUP and PLAY a stream, and the video itself usually flows over RTP. It is the standard way to watch IP and security cameras. RTMP is a push protocol: an encoder sends audio and video to a server over one TCP connection, mainly to start a live broadcast.
Tick everything that is true for you.
Your pick shows here
Tick one or more lines and we weigh them for you.
| What differs | RTSP | RTMP |
|---|---|---|
| Direction | Pull: the viewer asks the camera | Push: the encoder sends to the server |
| Port | 554 | 1935 |
| Where the media goes | Separate RTP streams (UDP), or inside the RTSP TCP connection | Inside the same TCP connection |
| Commands | OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN | connect, createStream, publish |
| Typical use | IP cameras, CCTV recorders, video walls | Encoders and apps going live to a platform |
| Plays in browsers | No | No |
| Standard | RFC 2326, RTSP 2.0 in RFC 7826 | Published company spec |
Each page plays the real packets on a map, step by step, with every header explained.
Each line describes one of the two. Which one?
Question 1 of 6
Direction
Pull: the viewer asks the camera
Not directly. A server or gateway takes the RTSP stream and repackages it as HLS or WebRTC, which browsers can play.
RTSP with RTP over UDP can be well under a second on a local network. RTMP usually adds a few seconds. Both are much faster than standard HLS.
RTP over UDP often fails through NAT and firewalls. Switching the player to RTSP over TCP (interleaved) usually fixes it.
Plain RTSP sends the login and video without encryption. Keep cameras off the open internet, use strong passwords and use RTSPS with TLS where the camera supports it.