Comparison Guide

RTSP vs ONVIF — What's the Difference?

ONVIF and RTSP work together, not against each other — ONVIF finds your camera and hands you the RTSP URL, then RTSP does the actual streaming.

Quick Answer

ProtocolPurposeLayerPort
ONVIFDevice discovery, management, PTZ control, get RTSP URLApplication (SOAP/HTTP)80, 8080
RTSPVideo/audio streamingApplication (own protocol)554 (TCP)

They work together: ONVIF retrieves the RTSP URL → RTSP delivers the stream.

What is ONVIF?

ONVIF stands for Open Network Video Interface Forum. It is an industry standard founded in 2008 to let cameras from different brands be managed by the same software.

ONVIF uses WS-Discovery over multicast UDP to find cameras on the local network, then exposes a SOAP/HTTP API for camera actions such as requesting the stream URI, controlling PTZ, reading events, grabbing snapshots, and sometimes even firmware-related functions.

ONVIF Profile S covers the basics for live streaming: retrieving the RTSP URL, PTZ control, and snapshot access. Profile T adds newer capabilities such as H.265, richer metadata, and analytics events like face or motion detections.

Major ONVIF members include Hikvision, Dahua, Axis, Sony, Bosch, Hanwha, and more than 500 manufacturers across the IP camera ecosystem.

What is RTSP?

RTSP means Real Time Streaming Protocol. It was originally defined in RFC 2326 and later updated in RFC 7826.

RTSP is a control protocol for media streaming — conceptually similar to HTTP, but designed for video sessions. RTSP negotiates the session while RTP usually carries the actual media packets.

Most cameras expose RTSP on TCP port 554, and the URL typically looks like rtsp://user:pass@IP:554/stream_path. Nearly every IP camera supports RTSP, even if its ONVIF support is limited or disabled.

How ONVIF and RTSP Work Together

1
SmartRTSP sends a WS-Discovery multicast and the camera responds with its network address.
2
SmartRTSP queries the ONVIF API and the camera returns a GetStreamUri response containing the RTSP URL.
3
SmartRTSP connects to that RTSP URL and the live video stream begins.
4
SmartRTSP keeps using ONVIF for PTZ when you send pan, tilt, or zoom commands.

ONVIF = the phone book. RTSP = the call itself.

RTSP vs ONVIF — Key Differences

FeatureRTSPONVIF
Primary purposeVideo streamingDevice management + discovery
Protocol typeCustom (TCP/UDP)SOAP over HTTP
Port55480 or 8080
Auto-discovery❌ (need IP/URL)✅ (WS-Discovery multicast)
Get stream URL❌ (must know URL)✅ (GetStreamUri)
PTZ control
Snapshots
Firmware update
Event notifications
Video transport✅ (via RTP)❌ (hands off to RTSP)
Firewall traversal❌ difficult❌ same issue
Required for streaming❌ (optional, helps auto-setup)

When to Use RTSP vs ONVIF

Use ONVIF when…
  • You're setting up a new camera for the first time
  • You don't know the RTSP URL path yet
  • You want PTZ control or snapshots
  • You want the fastest auto-discovery workflow in SmartRTSP
Use RTSP directly when…
  • ONVIF is disabled on the camera
  • The camera doesn't support ONVIF at all
  • The camera is behind NAT or on another network
  • You're scripting or automating manual URL-based connections

SmartRTSP supports both paths: ONVIF auto-scan for easy discovery and manual RTSP URL entry when you already know the stream.

Why Some Cameras Have ONVIF Disabled by Default

Some brands treat ONVIF as an optional compatibility layer instead of enabling it out of the box. Hikvision and Dahua models often require you to open the camera's web UI and enable ONVIF under a security or integration menu.

On certain cameras, ONVIF only becomes active after you create a dedicated ONVIF username/password. By contrast, Reolink and TP-Link Tapo often have ONVIF enabled by default or make it easier to expose.

If ONVIF scan fails: check the web UI for an ONVIF toggle, confirm credentials, then fall back to manual RTSP entry in SmartRTSP if needed.

RTSP Without ONVIF

All IP cameras expose RTSP whether or not they support ONVIF. The only difference is that without ONVIF you need to know the brand-specific RTSP path yourself.

BrandRTSP URL
Hikvisionrtsp://admin:pass@IP:554/Streaming/Channels/101
Dahuartsp://admin:pass@IP:554/cam/realmonitor?channel=1&subtype=0
Reolinkrtsp://admin:pass@IP:554/h264Preview_01_main
Taportsp://admin:pass@IP:554/stream1
Axisrtsp://IP/axis-media/media.amp

Need more brands? See the full RTSP URL list.

RTSP vs ONVIF FAQ

What is the difference between RTSP and ONVIF?

ONVIF is for camera discovery and management, including finding cameras and PTZ control. RTSP is for video streaming. ONVIF retrieves the RTSP URL; RTSP delivers the video.

Do I need ONVIF to use RTSP?

No. You can use RTSP directly if you already know the camera's stream URL. ONVIF just makes setup easier by auto-discovering the camera and fetching the RTSP URI for you.

Why isn't my camera showing up in ONVIF scan?

Enable ONVIF in the camera's web interface, make sure the camera is on the same local subnet, and verify ONVIF credentials are set. If scan still fails, use the RTSP URL manually.

Does SmartRTSP support both RTSP and ONVIF?

Yes. SmartRTSP can auto-discover compatible cameras via ONVIF scan or connect manually to any RTSP URL you enter.

Use ONVIF for Setup. Use RTSP for Streaming.

SmartRTSP combines both approaches on iPhone and Mac — discover cameras with ONVIF, then stream them over RTSP with low latency and no subscription.

Download SmartRTSP Free