TodayTools

Compare protocols

RTSP vs RTMP: cameras, live streams and the difference

Donate
What brings you here?

The difference at a glance

RTSP

Real Time Streaming Protocol

Best for: IP cameras and recorders

A recorder asks the camera and pulls its video.
  1. PLAY, from Recorder
  2. OK, from Camera
  3. Video, from Camera
  4. Video, from Camera

RTMP

Real-Time Messaging Protocol

Best for: Going live from your computer

Your streaming app pushes video up to a server.
  1. Connect, from Your computer
  2. Publish, from Your computer
  3. Video, from Your computer
  4. Video, from Your computer

The short answer

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.

Which one fits you?

Tick everything that is true for you.

What do you need?

Your pick shows here

Tick one or more lines and we weigh them for you.

RTSP and RTMP side by side

RTSP vs RTMP: differences row by row
What differsRTSPRTMP
DirectionPull: the viewer asks the cameraPush: the encoder sends to the server
Port5541935
Where the media goesSeparate RTP streams (UDP), or inside the RTSP TCP connectionInside the same TCP connection
CommandsOPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWNconnect, createStream, publish
Typical useIP cameras, CCTV recorders, video wallsEncoders and apps going live to a platform
Plays in browsersNoNo
StandardRFC 2326, RTSP 2.0 in RFC 7826Published company spec

Watch each one work

Each page plays the real packets on a map, step by step, with every header explained.

Test yourself

Each line describes one of the two. Which one?

Question 1 of 6

Direction

Pull: the viewer asks the camera

Questions people ask

Can I watch an RTSP camera in a browser?

Not directly. A server or gateway takes the RTSP stream and repackages it as HLS or WebRTC, which browsers can play.

Is RTSP lower delay than RTMP?

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.

Why does my camera stream break over the internet?

RTP over UDP often fails through NAT and firewalls. Switching the player to RTSP over TCP (interleaved) usually fixes it.

Is RTSP secure?

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.

More comparisons

Donate