Dahua NVR/XVR | Updated July 2026

Dahua NVR RTSP URL: channel and subtype Explained (2026)

The Dahua realmonitor path uses two separate choices: channel selects the camera slot and subtype selects its stream. The IP address and account must belong to the device serving that stream.

Direct answer

Use rtsp://USER:PASS@DEVICE_IP:RTSP_PORT/cam/realmonitor?channel=1&subtype=0. Channel numbering starts at 1. subtype=0 is the main stream and subtype=1 is the sub stream. For a recorder channel, use the NVR/XVR IP, recorder account, configured RTSP port, and logical channel shown by the recorder.

What each parameter controls

PartMeaningPractical rule
DEVICE_IPCamera or recorder serving the streamCamera IP for direct access; NVR/XVR IP for a recorder channel
channelLogical video channel, starting at 1Read the assigned channel from the recorder; do not assume PoE socket order
subtype=0Main streamHighest configured quality and load
subtype=1Sub streamLower load; best first test for multi-view
subtype=2Extra stream 2 on some devicesUse only when the model exposes it
RTSP_PORTRTSP service port554 is the default, but use the configured value

Camera IP or NVR/XVR IP?

GoalEndpoint and accountchannel value
One camera directlyCamera IP and camera accountUsually 1 on a single-sensor camera
A camera through NVR/XVRRecorder IP and recorder accountLogical channel shown in Camera/Registration management
Multi-sensor cameraCamera or recorder endpointSensor/channel mapping is model-dependent; verify in the device UI

Copyable URL patterns

rtsp://USER:PASS@CAMERA_IP:554/cam/realmonitor?channel=1&subtype=0
rtsp://USER:PASS@NVR_IP:554/cam/realmonitor?channel=4&subtype=1
rtsp://USER:PASS@NVR_IP:554/cam/realmonitor?channel=8&subtype=0

Use ONVIF or a manual RTSP URL?

ONVIF discovery can return the device's media profiles and avoids guessing a path. A manual realmonitor URL is useful when you need one exact recorder channel and stream. ONVIF availability, user permissions, and menu names vary by firmware; use the device's current local account and profile settings.

Add a Dahua recorder channel to SmartRTSP

  1. Open Camera, Registration, or Remote Device management on the recorder and note the logical channel.
  2. Keep the Apple device and recorder on the same LAN for the first test.
  3. Enter the NVR/XVR IP, recorder account, configured RTSP port, channel, and subtype.
  4. Test subtype=1 first; after it works, use subtype=0 where full quality is needed.
  5. For direct camera access, replace the recorder endpoint and account with the camera's own IP and account.

View this NVR in SmartRTSP

SmartRTSP is an RTSP and ONVIF camera viewer for iPhone, iPad, Mac, and Apple TV. Once this stream works, add it manually or use ONVIF discovery on your local network.

  • Use the sub stream in a multi-camera grid and the main stream for detail.
  • View up to eight cameras in supported multi-camera layouts; the Apple TV grid currently supports four.
  • Connect locally without bridge hardware or a required cloud subscription.

See how SmartRTSP works →Get SmartRTSP →

Troubleshooting by symptom

SymptomLikely causeCheck or fix
channel=1 works; channel=2 failsNo camera is assigned to logical channel 2Read the recorder's channel list instead of the physical PoE label.
subtype=1 works; subtype=0 is blackMain-stream codec, resolution, bitrate, or decode loadTemporarily set the main stream to H.264 or reduce resolution/bitrate, then retest.
401 UnauthorizedEndpoint and account do not matchUse recorder credentials against the recorder IP and camera credentials against the camera IP.
Connection refused or timeoutWrong IP/RTSP port, service disabled, or network isolationConfirm the configured RTSP port and test on the same subnet.
subtype=2 failsExtra stream 2 is unavailable or disabledUse subtype 0/1 or verify model stream capability.
The wrong camera appearsLogical channels were reorderedUse the current recorder channel assignment and update the URL.

Check your model and firmware

Channel assignment, stream count, codec, RTSP port, authentication, and menu names can vary by model and firmware. Check the current device settings before setup. For remote access, use a VPN instead of exposing RTSP to the public internet.

FAQ

What does subtype=0 mean on Dahua?

It selects the main stream. subtype=1 selects the sub stream.

Is channel=2 the sub stream?

No. channel chooses the camera slot; subtype chooses main or sub stream.

Why does a direct camera work but the NVR URL fail?

The recorder has its own IP, account, RTSP port, and logical channel list. Use all four from the NVR/XVR.