Live stream load balancing algorithm based on RTMP

A load balancing algorithm and load balancing technology, which is applied in the field of live streaming, can solve the problems of not supporting multiplexing of live streaming and not supporting simultaneous playback of multiple players, so as to improve response speed and overall performance, and eliminate load imbalance , the effect of simplifying management

Active Publication Date: 2019-10-01
武汉微创光电股份有限公司
View PDF6 Cites 6 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 algorithm based on RTMP
  • Live stream load balancing algorithm based on RTMP
  • Live stream load balancing algorithm based on RTMP

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0079] Embodiment two, such as figure 2 Shown, embodiment, live streaming load balancing algorithm 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 serv...

Embodiment 3

[0093] Embodiment three, 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 throug...

Embodiment 4

[0098] Embodiment four, such as Figure 4 As shown, the application scenario calculates the audio and video data stream address 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 includes 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 stream addr...

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 live stream load balancing specific implementation algorithm based on an RTMP protocol. The method is applied to an engineering application scene deployed by a plurality of streaming media distribution servers, through the load balancing processing algorithm, services of different live streams can be uniformly shared to all streaming media distribution servers in a project, the maximum utilization of server hardware resources is ensured, and the problem that the live streams cannot be normally supported due to a single point fault is effectively solved; meanwhile, thealgorithm also supports reuse and distribution of the live streams with the same repeated requests for multiple clients at the streaming media distribution server, thereby reducing the pressure of alive stream provider and optimizing the live stream playing efficiency.

Description

technical field [0001] The invention relates to the field of live streams, in particular to a load balancing algorithm 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 and provide a live stream load balancing algorithm based on the RTMP protocol, which can perform reusable and multi-distributed functions on the live stream 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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products