Several common ways to realize the "video surveillance/live broadcast" of the internal network, external network, gb28181 of the camera

For novices, what are the commonly used solutions for realizing remote camera video surveillance (including live broadcast, playback, PTZ, video cloud storage, screenshot operations, etc.)? I am confused, or I have found a lot of information on the Internet. I don’t know if these materials belong Which scheme can meet your needs!

For me, it took a while before I clarified my thoughts. It is difficult to find integrated and summarized plan descriptions on the Internet. They are all scattered. I share my experience, and then everyone can know which one when making plans. More suitable for yourself, avoid detours! Share it here!

 

1. View the video surveillance program in the LAN

Advantages/disadvantages: low cost, simple to realize the relative external network plan, network broadband problem is not a big problem, but it cannot be viewed remotely

Conditions: in a community, or a building, in a limited area, in the same LAN

Method to realize:

1. Access according to the playback address provided by the camera or nvr (relatively simple, with minimal functions)

             Use rtsp protocol to access the live broadcast address of nvr/camera, and sort out the broadcast address

             Such as: rtsp://admin:[email protected]/h264/ch33/main/av_stream can be played in the vlc broadcaster       

             It can be converted to m3u8 format through ffmpeg+nginx-rtmp-module/srs/ZLMediaKit/Monibuca streaming media service to realize web playback

 2. Use onvif international standards to achieve (complete functions)

         According to the onvif protocol, you can get the camera/nvr device information, rtsp playback address, playback, and PTZ control in the LAN, such as: rtsp://192.168.15.240:554/Streaming/Channels/2?transportmode=unicast Such as playing in the vlc player

    It can be converted to m3u8 format through ffmpeg+nginx-rtmp-module/srs/ZLMediaKit/Monibuca streaming media service to realize web playback

 3. Use gb28181 to achieve (complete functions, compatible to achieve external network solutions)

        Can get the camera/nvr device information in the LAN, as well as PTZ control, playback, and original code stream

         Service used: sip service+nginx-rtmp-module/srs/ZLMediaKit/Monibuca streaming media service, the operation method is as follows:

        (c# / java / c++ / go) The article on gb28181 usage I wrote is as follows:       

         https://blog.csdn.net/qq_16005627/article/details/106156444

         https://blog.csdn.net/qq_16005627/article/details/105714572

 

4. It can also be achieved through third-party paid payment agreements, such as Haikang’s ehome platform and Alibaba Cloud’s "video surveillance" service

 

 

Two, need to view the video surveillance program on the external network

The external network plan needs to consider the network speed issue

1. Use ffmpeg to push rtsp stream 

Preparation: camera/NVR, ffmpeg host deployed locally, streaming media server Centos deployed in cloud (nginx-rtmp-module/srs/ZLMediaKit/Monibuca)

Refer to the above to view the video surveillance program in the LAN to obtain the rtsp address

  1.1. Use the rtsp protocol to access the live address of the nvr/camera and sort out the broadcast address

             如:rtsp://admin:[email protected]/h264/ch33/main/av_stream

    1.2. Deploy the ffmpeg host in the same local area network as the camera/NVR and push the stream

             ffmpeg  -i rtsp://admin:[email protected]/h264/ch33/main/av_stream -c:v libx264 -f flv rtmp://12.68.18.172/live/livestream

             Among them: 12.68.18.172 is the host where nginx-rtmp-module/srs/ZLMediaKit/Monibuca is installed

             Vlc playback address: rtmp://12.68.18.172/live/livestream (or converted to m3u8 and can be played on the web)

 

2. Use gb28181 protocol to push PS stream (full-featured, most economical solution)

Preparation: Support gb28181 camera/NVR, sip service deployed in the cloud, streaming media server Centos deployed in the cloud (nginx-rtmp-module/srs/ZLMediaKit/Monibuca)

The process is as follows:

  2.1. Configure SIP service of the device

  2.2. Start SIP service and streaming media service

  2.3. By executing the sip command in the background, the device can push the stream to the streaming media server, and the sip can also obtain the device information, PTZ operation, playback, etc.

  2.4. After the streaming media server receives the stream, it can transcode and output rtmp/m3u8 and other playback formats, and it can be played on other players such as vlc or web, and it can also perform operations such as video recording and screenshots.

        (c# / java / c++ / go) For specific operations, you can check the gb28181 usage article I wrote as follows:

         https://blog.csdn.net/qq_16005627/article/details/106156444

         https://blog.csdn.net/qq_16005627/article/details/105714572

3. It can also be achieved through third-party paid payment agreements, such as Haikang’s ehome platform and Alibaba Cloud’s "video surveillance" service

 

Students who find it useful, please like me! !

 

 

 

Guess you like

Origin blog.csdn.net/qq_16005627/article/details/108573164