What is ONVIF? A practical guide to interoperable IP cameras
ONVIF is the interoperability standard that lets IP cameras, NVRs and video software from different vendors work together. It is the reason you can add a Hikvision camera to a Dahua recorder, or bring cameras from several brands into one browser-based platform without writing a separate SDK integration for each one.
This guide explains what ONVIF standardizes, where it stops, and two practical deployment paths: local CCNVR with WireGuard/Tailscale, or site-to-site VPN with cloud CCNVR. Key constraint: ONVIF discovery is local-network only.

CCNVR presents cameras and channels in one console, whether they come from ONVIF, RTSP or GB28181.
What is ONVIF?
ONVIF stands for Open Network Video Interface Forum. It is an industry consortium and a set of specifications for IP-based physical security products. The goal is simple: a camera, recorder or client should be able to exchange video, audio, metadata and control messages without vendor-specific glue.
An ONVIF-compatible camera exposes standard services for:
- Device information and capabilities
- Media profiles and stream URIs
- Live video and audio
- PTZ control and presets
- Events and alarms
- Recording search and playback, where supported
The video itself usually travels over RTSP. ONVIF standardizes how a client discovers a device and obtains the RTSP URL, along with the control and event interfaces around it.
ONVIF profiles, in plain English
ONVIF organizes capabilities into profiles. You do not need to memorize every number, but these are the ones you will see most often:
| Profile | What it covers |
|---|---|
| S | Streaming — the baseline for live video from IP cameras |
| G | Recording and playback on devices that store footage |
| T | Advanced streaming, including H.265 and more flexible encoding |
| M | Metadata and analytics events |
| A | Access control |
| C | Access control configuration |
A camera may support several profiles. “ONVIF compatible” alone does not guarantee PTZ, playback or analytics; check the specific profiles and services the device exposes.
How ONVIF discovery works
On a LAN, an ONVIF client typically starts with WS-Discovery. It sends a multicast probe, and compatible devices answer with their service address. The client then queries the device for its media profiles and asks for a stream URI. That is the familiar “scan for cameras” experience in NVR software.
This is efficient on a local network, but it has an important consequence for cloud deployments:
WS-Discovery uses multicast and does not cross the public internet. A cloud-hosted platform cannot magically discover cameras on a customer's LAN.
For remote access, the practical default is to run CCNVR locally and publish only its console through an outbound tunnel. Direct cloud ingestion should be a deliberate exception and requires one of these patterns:
- Site-to-site VPN or a local gateway that bridges the camera network to a cloud platform.
- Direct RTSP/ONVIF endpoints reachable from the cloud through a carefully firewalled path.
- A camera or NVR that registers outward using a protocol designed for it (for example, GB28181).
ONVIF still matters in the cloud because it provides the device model, stream URIs and control semantics. Discovery is the part that changes.
Two deployment options
Choose based on where recordings should live and how many sites you manage.
Option A: local CCNVR + WireGuard / Tailscale
Best for one site with local recording and remote management.
- Cameras and CCNVR stay on the site LAN.
- CCNVR handles ONVIF discovery, live view, local recording and playback.
- WireGuard or Tailscale provides an outbound-only path for the HTTPS console and API.
- No inbound camera or NVR ports.
Trade-offs: local recording survives an internet outage; the site needs a small always-on host; remote users may need a VPN client unless you add a relay.
Option A: cameras stay local; CCNVR records locally; an outbound tunnel publishes only the console.
An HTTP-only tunnel such as Cloudflare Tunnel can also expose the console, but WebRTC may need UDP/TURN. WireGuard or Tailscale carry all protocols without that limitation.
Option B: site-to-site VPN + cloud CCNVR
Best for multiple sites that need one platform and central recording.
- Each site router or firewall connects to a cloud VPC with IPsec or WireGuard.
- Camera subnets are routed to the cloud.
- CCNVR runs in the cloud and ingests ONVIF/RTSP over the VPN.
- Recordings go to cloud storage; users access CCNVR over HTTPS.
Trade-offs: one console for all sites and central retention; higher bandwidth and storage cost; requires stable WAN, route planning and a managed VPN.
Option B: sites connect to a cloud VPC; CCNVR records centrally and serves users over HTTPS.
Which option to use
| A: local + tunnel | B: site VPN + cloud | |
|---|---|---|
| Best for | one site | multiple sites |
| Recording | on site | cloud |
| Camera exposure | none | via VPN only |
| Network | outbound tunnel | site-to-site VPN |
| Cost | lower | higher |
Start with A. Choose B when central recording or a single cloud platform is a hard requirement and you control the network.
Docker networking
- Linux host networking: best for ONVIF discovery and local camera access.
- Bridge networking: works for published web ports, but multicast discovery needs extra configuration.
- Docker Desktop on Windows: no host networking; add cameras by RTSP or a reachable ONVIF endpoint.
Where CCNVR fits
CCNVR is a self-hosted NVR and video platform that ingests ONVIF, RTSP, RTMP and GB28181 sources and presents them through one browser console. For an ONVIF deployment it provides:
- Camera onboarding through ONVIF endpoints or RTSP URLs
- Live view, multi-view walls and low-latency browser playback
- Recording, timeline playback and clip export
- PTZ control, snapshots and event handling
- WebRTC, HTTP-FLV and HLS distribution
- Multi-user access and permissions
- A documented HTTP API for custom portals and integrations
The platform runs on Windows, Linux or Docker. For ONVIF, use Option A for one site with local recording, or Option B for multiple sites with central recording. There is no mandatory SaaS account.

Live channels in CCNVR. The same platform handles recording, playback and stream distribution.
ONVIF versus GB28181
They are complementary, not mutually exclusive:
| ONVIF | GB28181 | |
|---|---|---|
| Origin | Open industry forum | Chinese national standard |
| Discovery | WS-Discovery multicast on a LAN | SIP registration to a platform |
| Media | RTSP | RTP |
| Typical strength | Broad camera interoperability, local setup | Centralized platforms, Chinese devices, NAT-aware deployments |
| Remote access | Option A: local + outbound tunnel; Option B: site VPN + cloud CCNVR | Devices register outward to the cloud platform; needs public IP/SIP domain and media ports |
Many devices support both. A platform that accepts both gives you a practical migration path and avoids locking a site into one vendor's ecosystem. See What is GB28181? for the signaling side.
Frequently asked questions
Is ONVIF a video codec?
No. ONVIF is an interoperability specification. The video is encoded by the camera (typically H.264 or H.265) and delivered over RTSP or another transport.
Can I use ONVIF without RTSP?
In practice, ONVIF live viewing almost always uses RTSP for media. ONVIF standardizes discovery, profiles, control and events; RTSP carries the stream.
Why can't my cloud server discover ONVIF cameras?
WS-Discovery is multicast-based and stays on the local network. Run CCNVR locally at the site so discovery works, then publish only its HTTPS console through an outbound tunnel or VPN. Scanning a remote camera LAN from the cloud is not a reliable design.
Should CCNVR run on site or in the cloud for ONVIF?
Two valid choices. Option A (local CCNVR + WireGuard/Tailscale) keeps discovery and recording on site and works through internet outages. Option B (site-to-site VPN + cloud CCNVR) centralizes recording and management but needs a stable WAN and planned bandwidth. For a single site, A is simpler.
Does CCNVR support ONVIF PTZ and events?
CCNVR supports ONVIF device onboarding and control features exposed by the camera. Actual PTZ, events and playback depend on the camera model and the ONVIF profiles it implements.
Next steps
- Read the quick start guide for Linux and Docker deployment.
- Learn what CCNVR is and how it combines NVR, streaming and management.
- Compare editions on the pricing page.
- Use the API reference to integrate live views and events into your own application.
ONVIF is at its best when you treat it as a contract: discover the device, read its capabilities, use the stream and control interfaces it actually exposes, and design the network path deliberately. That is how a mixed-brand camera estate becomes one manageable video platform.