[golang streaming media online live broadcast system] 4. The real RTMP streaming camera sends the information captured by the camera to the Tencent Cloud streaming media server to implement live broadcast

Use the RTMP streaming camera to send the information captured by the camera to the Tencent Cloud streaming media server for live broadcast. This function has a wide range of applications, such as: kindergarten live broadcast, farm video live broadcast,

1. Preparation work

To realize the above functions, you need to prepare the following equipment:

 2. Configuration of streaming camera

1. Purchase a streaming camera

Each price is about 200-500 yuan. You can go to the e-commerce website to search for RTMP streaming cameras. Note: Before choosing to buy, communicate with customer service first, because some streaming cameras only support the configuration of their own manufacturer's platform , and some can support it. Alibaba Cloud , Tencent Cloud, own streaming media server and other cloud platforms

2. Push camera configuration

There may be some differences in the configuration of cameras produced by different manufacturers, but they are basically the same (for details, please refer to the camera manual and consult customer service. Note: Send the stream address to customer service for testing before purchasing)

(1) Configure camera IP address

Some cameras require a network cable to connect to the router. You can configure it on your computer according to the camera manual . This is similar to the configuration of the router.

 

(2) Install camera management software on computer

This software is issued by the manufacturer after purchasing the camera, install it on your computer, log in (the account number and password are usually in the manual, you can also consult customer service), after logging in, you will enter a monitoring page

 

(3) Configure push address

 

 Change the streaming address in the h5 code to the streaming address above, and then access it through the browser to see if it is successful.

 3. The push camera uses the self-built streaming server to push and pull streams.

Before that, let’s review OBS and VLC for push and pull operations. After purchasing the corresponding camera, configure it according to the corresponding manufacturer’s instructions.

After configuring the above, click Save. This will push the stream to the server, and then pull the stream through the streaming tool (VLC) . If the camera pattern can be played in the tool, it means the stream is successful.

Okay, that’s all the live streaming related stuff.

[Previous section] [golang streaming online live broadcast system] 3. Publish the Golang cloud live broadcast code to the remote server, configure domain name resolution, and configure HTTPS to play video

Guess you like

Origin blog.csdn.net/zhoupenghui168/article/details/132945267