Haikang, Dahua IpCamera RTSP address and format detailed explanation

Haikang, Dahua IpCamera RTSP address and format detailed explanation

If you want to realize video surveillance based on IP camera, you have to mention the RTSP protocol. Hikvision and Dahua are relatively well-known IP camera brands in China. This article will introduce the RTSP addresses and formats of Hikvision and Dahua IP cameras.

1. Hikvision IP camera RTSP address and format

  1. RTSP address format
    The RTSP address of Hikvision IP camera usually has the following format:

rtsp://[username]:[password]@[ip]:[port]/[codec]/[channel]/[subtype]/av_stream

Among them, [username] is the login user name, [password] is the login password, [ip] is the IP address, [port] is the port number, [codec] is the encoding method, [channel] is the channel number, [subtype] is the code Stream type (primary/secondary stream), av_stream is the specified type of audio and video stream to be obtained.

It should be noted that the RTSP address format of different models of Hikvision IP cameras may be different, which needs to be adjusted according to the actual situation.

  1. Example of RTSP address
    Taking Hikvision DS-2CD2135FWD-I IP camera as an example, its RTSP address is as follows:

rtsp://admin:[email protected]:554/h264/ch1/main/av_stream

Among them, admin is the default login user name, 12345 is the default login password, 192.168.1.64 is the IP address, 554 is the default port number, h264 means the encoding method is H.264, ch1 is the channel number 1, main is the main stream, av_stream is the audio and video stream.

2. Dahua IP camera RTSP address and format

  1. RTSP address format
    RTS of Dahua IP camera

Guess you like

Origin blog.csdn.net/update7/article/details/129701746