ONVIF Auto-Discovery
For MiBeeNvr v0.15.0
MiBee NVR automatically discovers IP cameras on your local network using the ONVIF protocol and detects their encoding format (H.264 / H.265) without manual configuration.
How It Works
- Network scan: NVR broadcasts WS-Discovery probe packets on the local network
- Device response: ONVIF-capable cameras reply automatically
- Codec detection: NVR retrieves each camera's media profile and identifies the encoding format
- Add device: Select a discovered camera and enter its credentials
Usage
Web UI Discovery
- Open the Cameras page
- Click Scan Devices and pick ONVIF from the protocol menu (or Xiaomi to scan for Xiaomi cameras)
- Wait for the scan to complete (usually 5–10 seconds); cameras that are already added are marked
- Identify the target device in the results (model, serial number, and device address are shown)
- Enter the camera's ONVIF username / password in the credential bar at the top (used to fetch stream URLs)
- Click Add as Camera on a single device, or Add All (N) to onboard everything at once

Docker tip: WS-Discovery relies on UDP multicast, which the default Docker bridge network blocks. If no cameras are found inside a container, switch to
network_mode: host, or use the Manual Probe section at the bottom of the panel to probe a device IP directly.
CLI Discovery
# Scan for ONVIF devices on the local network
./mibee-nvr-amd64 discover --protocol onvif
# Example output:
# Discovered device:
# - Name: DS-2CD2043G2-I
# Address: 192.168.1.100:80
# Manufacturer: Hikvision
# Model: DS-2CD2043G2-I
Supported ONVIF Versions
| Version | Status | Description |
|---|---|---|
| ONVIF Profile S | ✅ Full support | Streaming media service |
| ONVIF Profile T | ✅ Full support | H.265 video |
| ONVIF Profile G | ⚠️ Partial support | Recording management |
Codec Detection
ONVIF discovery automatically detects the camera's video encoding:
- H.264:
encodingfield set toh264 - H.265:
encodingfield set toh265 - MJPEG:
encodingfield set tomjpeg
Important: Starting from v0.10.0, MiBee NVR no longer accepts combined format strings (e.g.
rtsp_h264). Use separateprotocolandencodingfields instead.
Troubleshooting
Camera Not Discovered
Check the following:
- Network connectivity: NVR and camera must be on the same subnet
- ONVIF enabled: Verify ONVIF is enabled in the camera's management interface
- Firewall: Allow port 3702 (WS-Discovery) and the camera's ONVIF port (typically 80 or 8080)
- Multiple NICs: If NVR has multiple network interfaces, ensure scanning the correct subnet
# Manually test WS-Discovery
curl http://192.168.1.100:80/onvif/device_service
Discovered but Cannot Add
- Wrong credentials: Verify the ONVIF username and password (usually the same as the camera's web management interface)
- Protocol incompatibility: Some older cameras have non-standard ONVIF implementations — try adding the RTSP URL manually
Slow Scanning
- Too many devices on the LAN will slow down the scan
- You can limit the scan range via the config file
onvif:
discovery:
timeout: "5s" # Per-device timeout
network: "192.168.1.0/24" # Restrict scan subnet
Adding ONVIF Cameras Manually
If auto-discovery is unavailable, add the camera manually:
cameras:
- id: "office-camera"
name: "Office Camera"
protocol: "onvif"
encoding: "h264"
url: "http://192.168.1.100:80/onvif/device_service"
username: "admin"
password: "camera123"
enabled: true
Camera Brand Compatibility
See the Camera Brand Compatibility Guide for detailed ONVIF configuration across 20+ brands including Hikvision, Dahua, Uniview, Axis, and Reolink.
Next Steps
- Xiaomi Camera Integration — TUTK P2P connection
- SRT / RTMP Push-Stream Ingest — Push-stream camera configuration
- Raspberry Pi Camera Integration — libcamera configuration