Guide
RTSP and ONVIF, explained in plain English
RTSP and ONVIF are the two standards that let other software work with your existing CCTV. RTSP is how another device receives a camera's live video; ONVIF is how software finds cameras on the network and reads their settings. Most modern recorders and IP cameras support at least one of them.
4 min read
RTSP: how another device receives the video
Think of each camera's video as water in a pipe running to your recorder. RTSP, the Real Time Streaming Protocol, works like a tap on that pipe: another device on the network can open it and receive the same live video, while the recorder keeps receiving it and recording as before.
Technically, RTSP is the part that sets up and controls a stream: start, pause and stop. The video itself usually travels alongside it using RTP, the Real-time Transport Protocol. RTSP was first published as an internet standard in 1998 (RFC 2326), and a newer version, RTSP 2.0, followed in 2016 (RFC 7826). Its default port is 554.
To open the tap, software needs an RTSP address. It looks something like this:
rtsp://user:pass@192.168.1.64:554/stream1
The parts are:
- the username and password of an account on the camera or recorder;
- the device's address on your local network;
- the port, usually 554;
- a path that names the stream. This part varies by manufacturer and model, and recorders often have one path per channel.
Many cameras offer two streams: a high-resolution main stream for recording, and a lighter sub-stream for viewing on phones. Analysis software can often use the sub-stream for detection, which keeps the load on your network low.
ONVIF: a shared language for finding cameras
RTSP gets the video to another device, but it cannot tell that device which cameras exist or how to talk to them. ONVIF covers that part.
ONVIF is an industry forum founded in 2008 by Axis, Bosch and Sony. It publishes common specifications so that cameras, recorders and software from different manufacturers can work together. The specifications are grouped into Profiles, each covering a set of features:
- Profile S: video streaming, the most common profile for live video.
- Profile T: advanced streaming, including H.265 video.
- Profile G: recording and storage on the device.
- Profile M: metadata and events from analytics.
In practice, ONVIF lets software:
- Find cameras automatically. Using a method called WS-Discovery, software sends a short query across the local network and listens for devices that reply.
- Ask each camera what it supports and where its streams are, which saves typing RTSP addresses by hand.
- Read settings such as resolution and frame rate.
Discovery works on your local network, not across the internet. That is one reason analytics software usually sits on the same network as the cameras.
How to check if your recorder supports them
You do not need to be an engineer to check. Try these in order:
- Read the specification sheet or manual for your recorder and cameras. Search for "RTSP" and "ONVIF". For ONVIF, note which Profiles are listed: Profile S is the one that matters most for live video.
- Look in the settings menu. On many recorders, RTSP and ONVIF appear under network or integration settings. They are sometimes switched off by default.
- Check the conformant products list. ONVIF publishes a list of conformant products on its website. Search for your exact model number.
- Test a stream. A media player that can open network streams will play an RTSP address if everything is set up correctly. If you see live video, the tap works.
- Ask your installer. They will usually know within a minute, and can create a dedicated user account for the connection, so your main password never needs to be shared.
What to do if it doesn't
If your system does not seem to offer RTSP or ONVIF, there are still options before replacing anything:
- Turn it on. It may be disabled. Look in the network settings, or ask the installer.
- Update the firmware. Manufacturers sometimes add or improve RTSP and ONVIF support in later firmware. Update with care, and note your settings first.
- Connect to the cameras directly. If the recorder will not share video but the IP cameras support RTSP, software can often connect to the cameras themselves while the recorder keeps recording.
- Add an encoder for older analogue cameras. A video encoder converts analogue camera signals into network streams. Your existing cameras and cabling stay in place.
- As a last resort, replace the recorder and keep the cameras. A newer recorder that supports these standards often works with the cameras you already have.
Whatever you do, keep the cameras on a private network, use strong passwords, and give each connected system its own account. That way you can see, and stop, any connection.
Where SurveyLensys fits
SurveyLensys connects to existing recorders and IP cameras over the local network using RTSP and ONVIF, and a setup check shows which features each camera can support. If you are not sure what your system offers, book a live demo and we will check it on your own cameras.