Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Live stream load balancing method based on rtmp protocol

A load balancing and live streaming technology, applied in the field of live streaming, can solve the problems of not supporting live streaming multiplexing, and not being able to support multiple players at the same time.

Active Publication Date: 2021-07-06
武汉微创光电股份有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Does not support multiplexing of live streams, nor does it support multi-player simultaneous playback and other functions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Live stream load balancing method based on rtmp protocol
  • Live stream load balancing method based on rtmp protocol
  • Live stream load balancing method based on rtmp protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0079] Embodiment two, such as figure 2 Shown, embodiment, live streaming load balancing method configuration example of the present invention is as follows:

[0080] Mobile device 1, mobile device 2, mobile device 3, mobile device 4, mobile device 5, and mobile device 6 can all play audio and video streams; network devices generate video streams and transmit them to the mobile device, and then the mobile device pushes the stream to the stream In the media distribution server 1, streaming media distribution server 2, and streaming media distribution server N, other personal computers and mobile devices obtain the audio and video data stream address through the load balancing module to request to play the real-time stream of the mobile device

[0081] Scenario 1: PC 1 pulls the stream To access the real-time video of mobile device 1:

[0082] 1. The mobile device 1 sends a streaming request to the network content system service;

[0083] 2. The network content system service...

Embodiment 3

[0093] Embodiment three, such as image 3 As shown, the application scenarios of the present invention are as follows:

[0094] The playback client plays the video, sends a request to the network content service to obtain the address of the audio and video data stream, plays the video resource according to the address of the audio and video data stream, and publishes the client to push the audio and video data stream to the media distribution server; for the playback client to play the stream specifically Proceed as follows:

[0095] 1: The playback client initiates a request to the network content service to obtain the address of the audio and video data stream, and the network content service then sends a request to the load balancing service, and the load balancing service generates the address of the audio and video data stream by judging the working status of the media distribution server. The audio and video data flow address is returned to the network content service t...

Embodiment 4

[0098] Embodiment four, such as Figure 4 As shown, the application scenario calculates the address of the audio and video data stream as shown in the flow chart:

[0099] Calculate the audio and video data stream address, and the parameters include session ID and resource ID. Search the request table according to the resource ID and playback status, and the playback status refers to playable and playback status. If the search exists, perform the following steps:

[0100] 1. Traverse the playlist, count the total load of all online servers playing the resource in the playlist and the number of resources played, including IP, total load, and play quantity, and count the total load of all online servers in the playlist, including IP, total load.

[0101] 2. Determine whether the IP, total load, and the number of playbacks are zero. If the number here is zero, it means that there is a request but the playback has not been completed. If so, multiplex the audio and video data str...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a specific realization algorithm of live stream load balancing based on RTMP protocol. In an engineering application scenario where multiple streaming media distribution servers are deployed, through this load balancing processing algorithm, the business of different live streams can be evenly distributed to all streaming media distribution servers in the project, ensuring the maximum utilization of server hardware resources and effectively solving the problem of The problem that the live broadcast service cannot be normally supported due to a single point of failure; at the same time, the algorithm also supports the reuse and distribution of the same live stream on the streaming media distribution server for repeated requests from multiple clients, reducing the pressure on the live stream provider and optimizing the live stream playback efficiency.

Description

technical field [0001] The invention relates to the field of live streams, in particular to a load balancing method for live streams based on the RTMP protocol. Background technique [0002] Live streams based on RTMP protocol are generally used for live streams, and are used for live broadcast addresses of some TV stations, saving time and effort; but only applicable to live broadcast, on-demand, etc., not suitable for multi-scene, multi-video playback and other functions. It does not support multiplexing of live streams, nor does it support functions such as simultaneous playback of multiple players. Contents of the invention [0003] The purpose of the present invention is to address the defects of the prior art, providing a load balancing method for live streaming based on the RTMP protocol, which can perform reusable and multi-distribution functions on live streaming to support multiple PCs and mobile devices Real-time playback on the terminal, and adopts a load-bala...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04N21/2187H04N21/472H04N21/24H04N21/2743H04N21/232
CPCH04N21/2187H04N21/232H04N21/2405H04N21/2743H04N21/47202
Inventor 段文杰谢华付雪画
Owner 武汉微创光电股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products