What the RTSP protocol is

How an IP camera delivers video, and why RTSP cannot be opened straight in a browser

RTSP stands for Real Time Streaming Protocol. It is used by IP cameras, video recorders and media servers to control a video stream.

RTSP lets a client find the stream it needs, agree how the data will be delivered, start viewing and end the session cleanly.

Check an RTSP link
Diagram of a picture traveling from an IP camera over the RTSP protocol into a digital video stream
The IP camera produces the video stream, and RTSP controls how a client connects to that stream.

RTSP in plain words

RTSP can be compared to a remote control for a video stream. It carries the commands: request information about the video, prepare the connection, start playback, pause it or stop it.

RTSP itself is not a way of compressing a picture. The video is usually encoded by the camera as H.264 or H.265, and the media packets are often carried by the RTP protocol.

H.264 / H.265 — encodes the video
RTSP — controls the session
RTP — carries the media packets
People often say “RTSP transmits video”. Technically RTSP primarily controls the streaming session, while the audio and video data itself is usually delivered by RTP.

Where RTSP is used

The protocol is widely used wherever a live stream has to be pulled from a specific source:

Most professional IP cameras support RTSP, but on consumer cloud models the protocol is sometimes missing or switched off by default.

How the connection is established

When connecting, the client and the camera go through several steps in sequence:

  1. Connection. The client reaches the camera's RTSP address, usually over TCP port 554.
  2. DESCRIBE. The client requests a description of the stream: the available video and audio, the codecs and the parameters.
  3. SETUP. The two sides agree on the transport — for example RTP over UDP, or RTP embedded in the RTSP connection over TCP.
  4. PLAY. The client asks for the media stream to start.
  5. TEARDOWN. When viewing is over, the client ends the session and releases the resources.
Client → DESCRIBE → SETUP → PLAY → camera sends video → TEARDOWN

The camera may also require authentication. The client then sends the username and password in the way the device supports.

What an RTSP link is made of

A typical link looks like this:

rtsp://login:password@ip-address:port/stream-path

The path depends on the manufacturer, the model and the firmware. Examples for popular brands are collected in the guide “Where to find your camera's RTSP link”.

Main and sub streams

One camera can provide several streams with the same field of view but different parameters:

Each stream can have its own RTSP path. The ending of the address or a profile number, for instance, determines which stream the camera returns.

RTSP over TCP and UDP

After the SETUP command, the media data can be delivered in different ways.

RTP over UDP

UDP gives low latency, but individual packets can be lost. Additional dynamic ports may be used for delivery, which makes working through NAT and a firewall more difficult.

RTP over TCP

The media packets travel inside the TCP connection that has already been established. This mode is easier to pass through routers and firewalls, and lost data is re-delivered, but on a poor network the latency can grow.

RTSP over TCP is often used for connecting cameras remotely over the internet.

Port 554 and access over the internet

The standard RTSP port is 554, although it can be changed in the camera settings. On a local network the client reaches the device's IP address directly.

For a server outside the network to connect to the camera directly, you normally need a public IP or DDNS and forwarding of an external TCP port to the camera's RTSP port.

Public address:10554 → router → camera 192.168.1.100:554

Step-by-step examples for popular routers are given on the page “How to set up port mapping”.

With CGNAT a direct inbound connection does not work. In that case you can use MyVMS Bridge or RTMP Push without a static IP.

Why a browser does not open RTSP

Modern browsers usually have no built-in RTSP support and cannot play a link of the form rtsp:// as ordinary web video.

rtsp.me connects to the camera's RTSP stream, processes it and provides a web player in a browser-compatible format.

IP camera → RTSP → rtsp.me → web player → browser

The ready-made player can be opened by link or embedded on a website without publishing the camera's original address and credentials.

RTSP, ONVIF, RTMP and HLS

These technologies solve different problems and can be used together:

ONVIF can help you obtain the RTSP address. RTMP Push is used when the camera sends the stream itself. HLS and other web formats come into play on the viewing side.

Codecs and camera parameters

An RTSP connection can carry video in various codecs. H.264 is recommended for a standard connection; H.265 is also supported by rtsp.me as a paid feature.

For a stable stream we recommend 25 FPS, a GOP of 50 frames — one I-frame every 2 seconds — and Smart Codec switched off. The details are given on the page “Recommended IP camera settings”.

RTSP security

An RTSP link often contains the camera's address and access credentials, so treat it like a password.

Plain RTSP should not be regarded as an encrypted channel. If the camera supports RTSPS, use the secure connection and check that its TLS settings and certificate are compatible.

What RTSPS is

RTSPS is RTSP over a secure TLS connection. Its purpose is similar to that of HTTPS for websites: the authentication commands, the stream description and the session control all travel inside an encrypted channel.

The address of a secure stream begins with rtsps://:

rtsps://login:password@camera-address:port/stream-path

rtsp.me supports connecting IP cameras and media servers over RTSPS. In the source settings, enter the full rtsps:// link and the port configured on the device.

What RTSPS protects

RTSPS encrypts the RTSP connection using TLS. If the RTP media packets travel inside that same connection in interleaved TCP mode, they also pass through the secure channel.

If the camera sends RTP as separate UDP streams, RTSPS alone is not enough to encrypt those media packets: they require SRTP or another secure mechanism supported by the camera.

What to check before connecting

Replacing the rtsp:// prefix with rtsps:// does not switch encryption on by itself. RTSPS must be enabled and configured on the camera or media server.

How to connect a camera

  1. Make sure the camera supports RTSP or RTSPS.
  2. Find the correct RTSP or RTSPS link for your model and stream.
  3. Set up network access, or choose an alternative way of connecting.
  4. Check the full RTSP link on the rtsp.me home page.
  5. Once the check succeeds, get the stream and the player code for your website.

The full sequence is described in the guide “How to create a live stream on a website”.

Frequently asked questions

What is RTSP?
It is a protocol for controlling a streaming media session. It helps a client obtain a description of the stream, set up delivery and start video from a camera.
Is RTSP a codec?
No. RTSP controls the session, while the video is usually encoded as H.264 or H.265 and carried in RTP media packets.
Which port is used?
The standard RTSP port is 554, but the camera or a port mapping rule may use a different value.
What is RTSPS and does rtsp.me support it?
RTSPS is a secure RTSP connection over TLS. rtsp.me supports rtsps:// links when the device's port, TLS and certificate settings are compatible.
Can RTSP be opened in a browser?
Usually not. rtsp.me receives the camera's stream and provides a compatible web player.
How does RTSP differ from ONVIF?
RTSP is used for the streaming session, while ONVIF is used for compatible device discovery, configuration and control. ONVIF can tell you the camera's RTSP address.
Is a public IP required?
Connecting a camera directly over the internet normally requires a public IP or DDNS plus port mapping. Without them you can use MyVMS Bridge, or RTMP Push on a compatible camera.

Check your camera's stream

Find your camera's RTSP or RTSPS link and run a remote check on rtsp.me. Once the test succeeds, the stream can be turned into an online broadcast for a browser and for your website.

Check a camera link