Driver Details

New Community

Dahua NVR

By: David Bowdler
Updated: Nov. 2, 2026
Download Driver Purchase License
Rating: 0.0 (0 ratings)
Log in to rate this driver

Dahua NVR

Control Dahua network video recorders directly over your local network. The driver speaks the NVR's native CGI/HTTP API with Digest authentication — no cloud, no third-party bridge — for fast, reliable, fully local two-way control.

Key Features

  • Dynamic Camera Feed UI: Auto-programs onto RTI's native Dynamic Camera Feed page template — large live feed, current-camera name header, Previous / Cycle / Next, a Camera 1–N selector strip with the active camera highlighted, Refresh, and full PTZ controls.
  • Discover Cameras: A right-click tool in Driver Properties reads the cameras connected to your NVR and fills editable per-camera Name fields — your names then appear on the buttons and throughout the driver.
  • Up to 16 channels: Live RTSP (main & sub), JPEG snapshots, and per-channel online status, exposed as Image/Feed variables for a single shared panel layout.
  • PTZ: Continuous and single-step (jog) pan/tilt/zoom, zoom, presets and home.
  • Recording & events: Per-channel recording control plus real-time motion and alarm-input events.
  • Easy setup: Automatic channel-count detection, a built-in browse menu and automatic snapshot rotation.

Requirements

  • A Dahua NVR with the HTTP/CGI API enabled (most models).
  • RTI XP processor and Integration Designer 11.2 or later.
  • The NVR reachable on the RTI processor's network.

How It Works

Add the driver, enter the NVR's IP and credentials, and run "Discover Cameras" to pull in your channels and names. Drop the Dynamic Camera Feed page from the Page Wizard and the camera selector, live feed and PTZ controls auto-program. The driver polls the NVR over its CGI API for status and events and exposes every camera's RTSP and snapshot as bindable variables.

Tested on a single Dahua NVR model. Dahua NVRs vary by model and firmware, so please use the free 120-minute trial to confirm compatibility with your specific unit before purchasing.

Dahua NVR | Version 2.12

Introduction

Dahua NVR Control Driver for RTI XP processors, by Smart Home Programming and Automation.

Controls Dahua NVR/IP cameras via HTTP CGI API with Digest authentication.

Supports up to 16 camera channels with RTSP streaming, PTZ control, motion detection events, on-board smart motion (human/vehicle), recording control, and camera online/offline detection.

Version History

  • 2.12 - Recorder monitor output control: put any camera full screen, or a 4 / 8 / 9 / 16-camera view, on the screen plugged into the NVR, with read-back feedback. Raw CGI commands: send any Dahua CGI command through the driver (Digest login handled), from 8 preset slots or a macro. Added the Connection State and License Status variables and the Connected / Connecting / Disconnected and Licensed / Trial / Unlicensed booleans. Debug settings are now hidden. Help is now provided as instructions.md.
  • 2.11 - Camera snapshots are fetched by the processor and served to the panels, so images work with Digest-login recorders and the password no longer appears in any variable.
  • 2.10 and earlier - RTSP feeds, snapshots and rotation, PTZ, motion / human / vehicle events, recording control, storage monitoring, Dynamic Camera Feed page template support.

Driver Features

RTSP Streaming (Feed Variables)

Dahua RTSP URL format:

Main stream: rtsp://user:pass@IP:554/cam/realmonitor?channel=N&subtype=0

Sub stream: rtsp://user:pass@IP:554/cam/realmonitor?channel=N&subtype=1

Per-camera feed variables are available in the Integration Designer Feed picker:

  • CamNRTSPFeed: Main stream RTSP URL for camera N
  • CamNRTSPSubFeed: Sub stream RTSP URL for camera N
  • SelectedRTSPImg: Main stream for the currently selected camera
  • SelectedRTSPSubImg: Sub stream for the currently selected camera

Use these variables with RTI's built-in RTSP video command for live video display.

Camera Snapshots (Image Variables)

Per-camera snapshot variables are available in the Integration Designer Image picker:

  • CamNSnapshot: Still image capture URL for camera N
  • SelectedSnapshot: Snapshot for the currently selected camera (auto-updates on camera change) Dahua recorders use Digest login. Whether a panel can do that from an image link varies (iPad apps refuse passwords inside image links outright), so since v2.11 the processor fetches each snapshot and serves it to the panels itself. These variables point at the processor (http://processor-IP:9084/snap/...) and the recorder password no longer appears in any variable.

  • Camera Image Port (Connection) sets the port; default 9084. Set it to 0 to go back to direct recorder links.

  • Several panels showing the same camera share one fetch; if the recorder stops answering, the last good image keeps showing for up to a minute.
  • Debug console: snapproxy shows the proxy status; snapproxy 3 shows camera 3, its last error and its link.

Snapshot Rotation

When enabled, the driver automatically cycles through snapshots from all connected cameras.

Only cameras confirmed online by the NVR are included in the rotation.

  • RotatingSnapshot: Image variable that updates on each rotation tick
  • RotatingCamName: Name of the camera currently being displayed
  • RotatingCamNum: Channel number of the camera currently being displayed
  • RotatingRTSP: Main stream RTSP URL for the current rotating camera
  • RotatingRTSPSub: Sub stream RTSP URL for the current rotating camera Use RotatingRTSP/RotatingRTSPSub with RTI's built-in RTSP video command to cycle live streams.

Configure the rotation interval (3-60 seconds) in the Snapshot Rotation config category.

Camera Online/Offline Status

The driver detects connected cameras from the NVR's RemoteDevice configuration.

Only cameras with a valid device type and IP address are marked as online.

CamNOnline boolean variables indicate whether each camera is connected.

VIDEO_LOSS events fire when a camera goes offline during operation.

Camera IP addresses and model names are also available (CamNIP, CamNModel).

PTZ Control

Supports Pan/Tilt/Zoom and up to 32 presets per camera. Speed is configurable (1-7).

Motion Detection Events

The driver subscribes to the NVR event stream and fires events for:

  • VideoMotion (MOTION_N): Standard pixel-change motion detection
  • SmartMotionHuman (HUMAN_N): On-board human detection from the Dahua camera/NVR
  • SmartMotionVehicle (VEHICLE_N): On-board vehicle detection from the Dahua camera/NVR
  • VideoLoss (VIDEOLOSSN): Camera disconnected/offline
  • AlarmLocal (ALARMINN): Physical alarm inputs

The CamNMotion boolean variable mirrors the live motion state for use in feedback graphics or buttontags. Motion is held active for 15 seconds after the NVR sends a stop event so brief glitches don't toggle the indicator.

Recording Control

Start/stop recording per channel using the Record Enable CGI API.

Recording status is polled every 60 seconds and shown in CamNRecording variables.

NVR Info

NvrTime and NvrFirmware variables show the NVR's current time and firmware version.

NVR time is updated every 60 seconds via periodic poll.

Storage Monitoring

The driver polls the NVR for HDD usage every 15 minutes:

  • StorageFreeGB: free disk space in gigabytes
  • StorageFreePercent: free disk space as a percentage
  • StorageStatus: "OK", "Low", or "Critical" STORAGELOW fires when free space drops below the configured threshold; STORAGECRITICAL fires at half the threshold.

Recorder Monitor Output (HDMI/VGA)

These change what the recorder's OWN monitor shows (the screen plugged into the NVR), not the RTI camera feed.

  • Display Camera 1 ... Display Camera 16: that camera full screen on the monitor. Each tag also lights while that camera is the one showing.
  • Display Quad 1 ... Display Quad 4: 2x2 view of cameras 1-4, 5-8, 9-12, 13-16
  • Display Eight 1 / 2, Display Nine 1 / 2, Display Sixteen: 8, 9 and 16-camera views
  • Display Selected Camera: the camera currently selected in the driver, full screen on the monitor
  • Monitor: Set Layout (manual wiring): any layout + page. Monitor: Full Screen Camera N: any camera by number
  • Variables: Monitor Layout, Monitor Page, Monitor Full-Screen Camera, Monitor Is Single / Quad / 9-Way / 16-Way
  • Monitor Output Number (Local HDMI Output settings): 1 = the main output. Change it only on recorders with a second output.

Raw CGI Commands

Send any Dahua CGI command through the driver. The driver handles the Digest login for you.

  • Raw Command 1 ... 8 (Raw CGI Commands settings): type a path such as /cgi-bin/split.cgi?action=setMode&channel=1&mode=split4&group=0, or paste a full http:// URL (the address part is ignored - the configured recorder is always used). Run it with Run Raw Command 1 ... 8.
  • Send Raw CGI Command (manual wiring): path and GET/POST/PUT from a macro
  • Variables: Raw CGI Response (first 250 characters), Raw CGI HTTP Status, Raw CGI OK. Events: Raw CGI Command OK / Failed
  • Raw commands stop working when the trial ends without a licence key.

Debug Console

Connect via telnet to the configured Debug Port (default 12511) for live diagnostics.

Type 'help' for available commands including: test, api, stream, motion, events, status, cameras, info, rec, ptz, connect, disconnect, refresh, licence, pool.

Supported Devices

  • Dahua NVRs (and Dahua-made recorders sold under other brands) that expose the Dahua HTTP CGI API with Digest login
  • Up to 16 camera channels per driver instance (one recorder per instance)
  • Recorder monitor output commands use split.cgi; confirmed by a customer on 8-channel and 16-channel Dahua NVRs

System Requirements & Prerequisites

  • Integration Designer - 10.0 or above
  • RTI processor - XP-8 class (XP-3 / XP-6 / XP-6s / XP-8 / XP-8s / XP-8v)
  • Processor script runtime - 24 or above

Driver Configuration

  • NVR IP Address: The IP address of your Dahua NVR
  • HTTP Port: Default 80
  • Username/Password: NVR login credentials
  • Channel Count: Number of camera channels (1-16)
  • Camera Image Port: port the processor serves camera snapshots on (default 9084, 0 = direct recorder links)
  • Monitor Output Number (Local HDMI Output): recorder output the monitor commands drive (1 = main HDMI/VGA)
  • Raw Command 1 ... 8 (Raw CGI Commands): CGI paths run by Run Raw Command 1 ... 8
  • Licence Key (Licensing): your licence key

Licensing

Enter your licence key from smarthomeprogramming.com.au/store.

A 120-minute trial is available for evaluation.

  • License Status shows Licensed, Trial or Unlicensed, with one boolean for each (License Status Licensed / Trial / Unlicensed).
  • Trial Time shows the time left in the trial.
  • When the trial ends without a key the driver disconnects from the recorder and commands stop until a valid key is entered.

Functions

Connection

  • Connect
  • Disconnect

Camera Selection

  • Select {CamNameN} (N = 1-16)
  • Select Camera - Channel
  • Next Camera
  • Previous Camera
  • Cycle Cameras
  • Refresh Camera Feed

PTZ (Selected Camera)

  • Continuous Up
  • Continuous Down
  • Continuous Left
  • Continuous Right
  • Continuous Up-Left
  • Continuous Up-Right
  • Continuous Down-Left
  • Continuous Down-Right
  • Continuous Zoom In
  • Continuous Zoom Out
  • Stop
  • Zoom Stop
  • Jog Up
  • Jog Down
  • Jog Left
  • Jog Right
  • Jog Up-Left
  • Jog Up-Right
  • Jog Down-Left
  • Jog Down-Right
  • Zoom In
  • Zoom Out
  • Home Preset
  • PTZ Controls
  • PTZ Controls Show
  • PTZ Controls Hide
  • PTZ Go To Preset - Preset
  • PTZ Save Preset - Preset
  • PTZ Go To Preset N (N = 1-8)

Recording (Selected Camera)

  • Start Recording
  • Stop Recording

Recording (Specific Channel)

  • Start Recording Channel - Channel
  • Stop Recording Channel - Channel

Browse

  • Show Camera List
  • Select Item - index
  • Go Back

Local HDMI Output (NVR Monitor)

  • Monitor: Full Screen {CamNameN} (N = 1-16)
  • Monitor: Quad Cameras N-N (N = 1-13)
  • Monitor: N-Way Cameras N-N (N = 8-9)
  • Monitor: 16-Way All Cameras
  • Monitor: Full Screen Selected Camera
  • Monitor: Full Screen Camera N - Camera, Output (0 = default)
  • Monitor: Set Layout - Layout (1 camera (full screen) / 4 cameras (2x2) / 8 cameras / 9 cameras (3x3) / 16 cameras (4x4)), Page (1 = first group), Output (0 = default)
  • Monitor: Refresh Layout Feedback

Raw CGI Commands

  • Send Raw CGI Command - Path (e.g. /cgi-bin/split.cgi?action=...), Method (GET / POST / PUT)
  • Run Raw Command N (N = 1-8)
  • Run Raw Command N - Slot (1-8)

NVR Maintenance

  • Reboot NVR
  • Check Storage
  • Refresh Channel Names

Diagnostics

  • Remote Logging On
  • Remote Logging Off
  • Remote Logging Toggle

Autoprogramming Support

The driver's default page template is "Dynamic Camera Feed". Add the NVR as a source, then use Page Wizard to add a Dynamic Camera Feed, Dynamic Camera Feed - Full, PTZ Camera, or Camera Multiview page - the buttons auto-program to the tags below. Each camera tag carries up to three bindings (command + active-highlight variable + camera-name text tag) under one tag name.

Camera selection (commands)

  • Camera 1 ... Camera 16: select that camera. The same tag also carries the camera Name (text tag) and an Active highlight (variable).
  • Next Camera / Previous Camera: step through cameras
  • Cycle Cameras: auto-advance through cameras (the Cycle Cameras variable shows the active state)
  • Refresh Camera Feed: reload the current feed

Live feed (variables)

  • Current Feed (also tagged RTSP Camera): the selected camera's live RTSP feed - bind to the video/feed element
  • Current Feed Name: the selected camera's name
  • Camera N RTSP Main/Sub (Feed), Camera N Snapshot: per-camera feeds for multiview layouts

PTZ (commands)

  • Up / Down / Left / Right: d-pad move (jog). OK: recall home position
  • Continuous Up/Down/Left/Right + diagonals (Up-Left, Up-Right, Down-Left, Down-Right): hold-to-move; pair Stop on button release
  • Jog Up/Down/Left/Right + diagonals: single-step move (repeats while held)
  • Zoom In / Zoom Out / Zoom Stop, Continuous Zoom In / Continuous Zoom Out
  • Home Preset, Stop
  • PTZ Controls / PTZ Controls Show / PTZ Controls Hide: toggle the PTZ overlay (the PTZ Controls variable tracks visibility)
  • PTZ Preset 1 ... PTZ Preset 8: recall presets

Recording (commands)

  • Record On / Record Off: start / stop recording the selected camera

Browse list

  • Browse: the camera list (bind to a list element). Browse Menu: select an item

Per-camera status (variables, N = 1..16)

  • Motion N: live motion. Human N / Vehicle N: smart detection. Recording N: manual-record state. Online N: camera online/offline

Other

  • Connected: driver connection state
  • Remote Logging On / Off / Toggle: enable cloud diagnostics (Diagnostics category)

Connection state

  • Connection State: 0 Disconnected, 1 Connecting, 2 Connected, with Connected / Connecting / Disconnected booleans for layer visibility

Limitations

  • One recorder per driver instance, up to 16 channels.
  • Camera images and live video depend on what the panel supports; the processor-served snapshots need the panel to reach the processor on the Camera Image Port.
  • The recorder monitor layout commands only work on recorders whose firmware supports split.cgi. The layout read-back depends on the recorder answering getMode; if it does not, the variables show the last command sent.
  • Raw CGI Response holds only the first 250 characters of the reply.

Support Contact

Smart Home Programming

Web: smarthomeprogramming.com.au

Store / licence keys: smarthomeprogramming.com.au/store

For setup help, licence keys, or feature requests, contact us through the website above. We provide tech support for all our drivers.

  • Email - david@smarthomeprogramming.com.au

This driver includes a free 120-minute trial on every processor for evaluation. Continued use requires a per-processor licence key.

Purchase a key at smarthomeprogramming.com.au/store. Keys are tied to the RTI processor's MAC address — one key unlocks one processor.

Please log in to leave a comment.
Loading comments...