RTSP stream request for Dahua cameras

RTSP stands for “Real Time Streaming Protocol”, which is a network protocol for streaming real-time data, such as audio and video, remotely. RTSP allows applications and devices to communicate with a media server and request or send audio and video data over the network.

The Dahua RTSP URL format is as follows:

rtsp:// [User]: [Password]@ [IP]: [RTSP Port] /cam/realmonitor?channel= [Channel]&subtype= [Stream Type]

[User]: a valid username
[Password]: the user’s password
[IP]: the Dahua device’s IP address
[RTSP Port]: the Dahua device’s RTSP port (default: 554)
[Channel]: the camera channel (e.g. 1)
[Stream Type]: 0 for the main stream (highest resolution), 1 for the sub stream (lower resolution, but faster)

For example:

rtsp://admin:password@192.168.1.100:554/cam/realmonitor?channel=1&subtype=0

 

ONVIF setup for Dahua cameras

The protocol allows products from different manufacturers to communicate and cooperate with each other. If they are connected in ONVIF mode, there is no difference from connecting them with the DAHUA protocol, just use a different port (80 instead of 37777). ONVIF is a standard system that has several variants (profiles), so compatibility is not guaranteed, use Dahua brand cameras and recorders to support all functions.

The setup is as follows:
Settings -> Network -> Platform Access menu, enable the service. Create an ONVIF user in the System -> Account menu