This will show you how to create the RTSP command for Dahua DVRs.
For IP Cameras see the IP Camera RTSP command in part 2.
This is the format of the RTSP command for Dahua DVRs
rtsp://IP:PORT/cam/realmonitor?channel=CHANNEL&subtype=ENCODING&authbasic=LOGIN
Example values using DVR default settings ..
IP: 192.168.1.108
Port: 554
Channel: 1
Encoding: 00 (Main Stream)
Login: YWRtaW46YWRtaW4= (admin)
Using the above values, this is the RTSP connection to a Dahua DVR ..
rtsp://192.168.1.108:554/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46YWRtaW4=
Dahua RTSP Port
In most cases the port is fixed and cannot be changed.
Dahua RTSP Channel
The channel number can be 1-32.
Dahua RTSP Encoding
This can be Main Stream (00) or Extra Stream (01).
Dahua RTSP Login
The login is encoded with base64 and uses the format user:password