Video middleware: Dahua IPC/NVR active registration protocol access and output standard FLV/RTSP/HLS stream

Video middleware: Dahua IPC/NVR active registration protocol access and output standard FLV/RTSP/HLS stream

Dahua’s active registration protocol is similar to Hikvision’s E-home and ISUP protocols. It is also an active registration protocol for front-end devices to register with the central platform and services. It is suitable for scenarios such as video networking and video uploading to the cloud when the front-end network has no fixed IP. Apps are especially applicable. The industry actively registers standard protocols such as GB28181 and JTT1078. How to achieve compatibility and adaptation of multiple protocols, and output standardized general interfaces to facilitate various business platforms or application calls is the main problem to be solved by our video middleware platform.

The previous article has introduced the video middleware’s access to Haikang Ehome’s private protocol and output standard FLV/HLS/RTSP streams . Next, we will connect the video middleware to Dahua’s active registration private protocol and output standard FLV/HLS/RTSP Streaming is introduced in detail to enable other platforms or applications to quickly have video capabilities.

Front-end equipment configuration

Log in to the Dahua IPC/NVR web page configuration interface through a browser, click Network Configuration - Active Registration, configure and save as follows
insert image description here

  • Check to enable
  • Address : external IP of video middleware platform server
  • Port : 9500, the default is fine
  • Sub-device ID : Custom, multiple device registration IDs cannot be repeated

Notice:The new version of NVR configuration needs to open the compatibility mode,
enter the security center/system service, change the private protocol authentication mode to "compatibility mode" and save it
insert image description here

Platform configuration

Log in to the video middleware WEB client, enter System Management - Device Management - Add Device, and configure and save as follows
insert image description here

  • Device name : Fill in according to the front-end video name
  • Device model : Dahua active registration
  • IP&SN : Fill in according to the sub-device ID configured on the front end
  • Channel number : IPC is 1; NVR corresponds to the channel number of the front-end equipment
  • Username and password : Fill in according to the actual front-end equipment
  • Other parameters : default

Platform preview interface

insert image description here
insert image description here

Output FLV/HLS/RTSP stream

Through the simple H5 video API interface, you can get the FLV/HLS/RTSP stream playback address of the camera, and realize video preview through the playback address

  • Log in to the platform interface and get the token
  • Obtain the device list through token
  • Obtain the playback link through the device id or registered SN

Interface return example :
insert image description here
verify the address through VLC Play :
insert image description here
For more information, our official website: www.afzjj.com
insert image description here
has been focusing on the research and development of security audio and video technology for more than ten years

Guess you like

Origin blog.csdn.net/weixin_51950137/article/details/129087943