Vision Detection Systems
TECHNOLOGY LIBRARY

ONVIF and RTSP Explained for Security Cameras

RTSP is a protocol for requesting and controlling a video stream from a camera. ONVIF is an industry standard that defines how cameras and software discover each other, exchange settings, control movement and handle events. Together they let video systems work with cameras from different makers.

What is RTSP and how does it deliver video?

RTSP stands for Real Time Streaming Protocol. It works like a remote control for a video stream. A viewer connects to an address on the camera, asks what streams are available, and sends commands such as play and stop. RTSP itself carries the control conversation, not the pictures. The video usually travels separately in RTP packets, small timed chunks that a player reassembles. RTP can run over UDP, which is fast but can lose packets on poor links, or be carried inside the same TCP connection as the control channel, which is more reliable through firewalls but can add delay.

Choosing between them is a trade between smoothness and resilience. Authentication is part of the exchange. Most cameras require a username and password before they hand over a stream, and the address often embeds or negotiates these credentials, so treat stream addresses as sensitive. In practice you rarely type these protocol commands yourself, since software does it for you, but understanding them explains why a camera can appear in one system and misbehave in another.

What is ONVIF and what does it standardize?

ONVIF is an open industry standard for network video products. Where RTSP only moves video, ONVIF defines a common language for the surrounding functions: finding cameras on a network, reading their capabilities, setting resolution and compression, steering pan-tilt-zoom movement, and receiving events such as motion detection. It uses web services, structured messages sent over standard internet protocols, so software can configure a camera it has never seen before. Crucially, ONVIF includes a way to ask the camera for the RTSP address of each stream.

The two work together: ONVIF handles the introduction and settings, and RTSP delivers the stream. Discovery typically uses a multicast broadcast on the local network, which is convenient but only works within a segment. Across routers or over cellular, you usually enter a camera's address manually. Because ONVIF is a published standard, software makers can write a single integration instead of building separate ones for each camera brand, which lowers cost and widens choice.

What are ONVIF profiles?

Rather than promise every feature, ONVIF groups features into profiles, each covering a defined set of functions. One profile covers basic live streaming, another covers recording and retrieval of stored video, others address access control, analytics metadata and more. A product claiming a profile has passed conformance for those features. This matters when buying. Saying a device is ONVIF compatible is vague. Ask which profiles it supports and confirm they match what you need, for example streaming for live view, storage retrieval for playback, and analytics metadata for alerts.

A camera may stream fine through a given system yet lack the event or recording functions you expected. Some devices make this easy by keeping the same address and settings after a reboot, while others change addresses, which breaks saved links. Fixed addresses prevent these surprises. Profiles also evolve, and newer ones add features such as richer analytics data, so check which version of a profile a product supports before relying on a feature.

Why do cameras offer multiple streams?

Most cameras encode more than one stream at once. A main stream carries full resolution for recording and detailed review. A substream is smaller and lighter, intended for live monitoring over limited links and for software that needs frequent, quick views. Each stream has its own resolution, frame rate, bitrate and compression setting. On a site limited by cellular bandwidth, this is a powerful tool: view or analyze the light stream remotely while the heavy one is stored locally.

Software chooses which RTSP address to request. Check whether the camera supports modern compression such as H.265 on both streams, and whether your viewing software can decode it. Newer compression packs the same picture into fewer bits, but older viewers or recorders may not decode it, so confirm that every component in the chain supports the codec you plan to use. A lighter substream also helps analytics and mobile viewing, because processing small frames is quicker and uses less battery on the viewing device.

What causes compatibility problems?

Standards leave room for interpretation, and vendors implement optional features differently. Common issues include a camera that streams but ignores PTZ commands, event messages in unexpected formats, time differences between devices, and authentication mismatches. Firmware updates can fix or break behavior, so test before rolling out widely. Security matters too. Streams and credentials should be protected, default passwords changed and discovery limited to trusted networks, since ONVIF lets devices announce themselves.

Prefer open standards over closed arrangements so you can change cameras or software later without rebuilding the whole system. Always run a trial with the actual models you will deploy. Keep a record of exactly which firmware version each camera ran during acceptance testing, so that if behavior changes after an update you can compare, roll back and report the difference clearly. Treat open standards as a way to keep options open, so that changing a camera, recorder or software later does not mean starting again.

Key terms

RTSP
Real Time Streaming Protocol, a control protocol used to request, start and stop a camera's video stream.
RTP
Real-time Transport Protocol, which carries the timed packets of video and audio that RTSP sets up.
ONVIF
An open standard that lets network video products from different manufacturers discover, configure and control one another.
ONVIF profile
A defined bundle of features, such as streaming or recording, that a product has been tested to support.
Substream
A lower-resolution, lower-bitrate secondary video stream used for live viewing or analytics over limited bandwidth.
Stream URL
The network address from which a viewer or recorder requests a specific camera video stream.
IN THE FIELD

A trailer like this should speak open standards so its video can feed whatever system a customer already uses. Gen 8/9 trailers support ONVIF and RTSP, so cameras can be pulled into other video platforms as well as the AI VisionStream cloud platform. Edge recording stays on the unit while lighter streams go over the cellular link. These details are part of what a buyer should ask about.

Common questions

Is RTSP the same as ONVIF?

No. RTSP moves and controls video streams. ONVIF is a broader standard covering discovery, configuration, PTZ control and events, and it points software to the RTSP streams. Many cameras also limit the number of simultaneous connections, so several viewers requesting the same stream can degrade performance unless a recorder or platform relays it.

Can I view a camera in a browser using RTSP?

Browsers do not play RTSP directly. Software typically converts the stream to a browser-friendly format, or you use a viewer or video management system that understands RTSP. The browser, the player and the transport each add possible delay, so live views are rarely instantaneous even on a good link.

Does ONVIF guarantee every feature works between brands?

No. It guarantees tested functions within the profiles supported. Optional features vary, so confirm the profiles and test the actual combination before deployment. Mixed brands work best when the system builds on standards, and when someone tests the exact camera models before they ship.

SITE SECURITY DESIGNER

See it on your site.

Type your address, and the designer opens on a live map of your property — place trailers, draw the perimeter, and get a coverage plan in minutes. No call required.

FREE · NO ACCOUNT · SATELLITE VIEW OF YOUR ACTUAL SITE