ZLMediaKit + wvp-GB28181-pro gb28181 streaming media platform construction

1. Introduction to streaming media platform process

Main purpose: docking with surveillance cameras, live video, and many-to-many video chat rooms. The
system architecture consists of three parts: interface server, signaling server, and streaming media server;
1. The interface server is mainly used to respond to customer service requests;
2. Signaling The ordering server is mainly used for the interaction between the smart streaming server and the video equipment;
3. The streaming server is mainly used for receiving, converting and distributing the media stream;
the interface server and the signaling server can also be integrated into one server. It is best to deploy the streaming media server separately to avoid the problem that the overall response of the system is too slow due to excessive pressure on the streaming media server. wvp-GB28181-pro acts as an interface server and signaling server, and ZLMediaKit acts as a streaming server.
The figure below shows the entire playback process of the gb28181 protocol. Compared with rtsp and rtmp, the
insert image description here
related protocol gb28181 supported by ZLMediaKit has the following advantages: 1. More secure: gb28181 streaming requests do not need to carry account passwords, which can avoid the leakage of account passwords. 2. The video device does not need a fixed ip: the stream of gb28181 is actively pushed to the server by the video device. 3. More functions: camera rotation, intercom, broadcast, positioning, etc. Disadvantages: 1. The address of the server needs to be configured in the video device. gb28181 complete process ZLMediaKit GitHub wvp-GB28181-pro GitHub
insert image description here








2. ZLMediaKit deployment and installation

1. Basic compilation and installation
2. Webrtc compilation guide

3. Deployment and installation of wvp-GB28181

1. Deployment guide
2. The background is springboot, and the front end is vue.

4. Camera configuration

insert image description here
Select 28181 for platform access, SIP server ID and SIP server domain, and the password must be the same as that configured in the WVP project. Fill in the address of the WVP project for the SIP server address, fill in the intranet IP address for the intranet, fill in the public network IP for the cloud server, and write the port configured in the configuration file for the port. Video format selection h264, h265 webrtc may not be able to play.

5. Frequently asked questions

1. When webrtc is playing, the connection timeout problem occurs in the background:
confirm that the externIP configuration in the ZLMediaKit configuration is correct, and all browsers can access the streaming media service through the configured ip.
2. When playing webrtc, the /index/api/webrtc address requests 404. Confirm whether the deployment is in accordance with the webrtc compilation guide during
compilation . 4. Click to play the WVP list, but there is no response for a long time . Check whether the media.id in WVP is consistent with the mediaServerId in ZLMediaKit configuration



Guess you like

Origin blog.csdn.net/qq_45699784/article/details/126342170