There are often developers to consult us about Haikang, Dahua network camera RTSP URL splicing rules and related parameter configuration, although it is very simple, considering the incomplete information, write a blog record:

1. Hikon Camera:

Enter the IP address of the network camera in Internet Explorer, enter the user name and password, and log in:

Video:

1. Bit rate types: primary code stream and sub-code stream. The primary code stream supports higher resolution.

2. Video Type: If both audio and video are required, select Composite Stream; if only video is required, select Video Stream.

3. Resolution setting, no further details;

4. Bit rate type: bit rate!! Constant bit rate, bit rate is too high;

5. Image quality: set as appropriate;

6. Video frame rate: set as appropriate, generally 15-25 frames;

7. Bit rate upper limit: for example, 1080p, can be set to 2048Kbps or 4096Kbps;

8. Video encoding: H.264 or H.265, also can choose MJPEG;

9. Smart264: Set as appropriate;

10. Coding complexity: set as appropriate;

11. I frame interval: generally set to 1-3 times of frame rate, such as frame rate 25, I frame interval can be set to 50;

12. SVC: Set as appropriate;

13. Stream smoothing: Set as appropriate.

Audio:

1. Audio coding: AAC is recommended;

2. Sampling rate: 44.1khz is recommended;

3. Audio bit rate: set as appropriate;

4. Audio input: MicIn;

5. Input volume: Set accordingly.

RTSP URL rules:

RTSP ://admin:[email protected]:554/h265/ch1/main/av_stream

RTSP ://admin:[email protected]:554/h264/ch1/sub/av_stream

RTSP ://[username]:[password]@[IP]:[port]/[codectype]/[channel]/[subtype]/av_stream URL description: username: indicates the username. Password: password; IP: IP address of the network camera. Port: indicates the port number. The default value is 554. Codectype: h264/ H265 / mJPEG; Channel: indicates the channel number. Subtype: indicates the type of the code stream. The main code stream is main, and the sub code stream is sub.

2. Dahua Camera:

Configuration and Haikang camera is much the same, here mainly says the RTSP URL rules of Dahua camera:

RTSP ://admin:[email protected]:554/cam/realmonitor? channel=1&subtype=0

RTSP ://admin:[email protected]:554/cam/realmonitor? channel=1&subtype=1

RTSP ://[username]:[password]@[IP]:[port]/ CAM/realMonitor?/[channel]&/[subtype] Password: password; IP: IP address of the network camera. Port: indicates the port number. The default value is 554. Codectype: h264/ H265 / mJPEG; Channel: indicates the channel number. Subtype: indicates the type of the code stream. The primary code stream is 0, and the sub-code stream is 1.

3. Play and display:

Here, take danniu Live SDK Windows player as an example:

To set the TCP/UDP mode, RTSP timeout, or TCP/UDP mode automatic switchover, click RTSP Configuration.