Unlock instant, AI-driven research and patent intelligence for your innovation.

A fast switching method for rtmp publishing master and backup

A technology of fast switching, active and standby switching, applied in selective content distribution, image communication, transmission systems, etc., can solve problems such as affecting the live broadcast effect and the inability of the standby machine to connect.

Active Publication Date: 2022-02-01
HANGZHOU ARCVIDEO TECHNOLOGY CO LTD
View PDF17 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the on-site transcoding equipment is equipped with active and standby machines, when the main machine is down, it will switch to the standby machine for transcoding output. live effect

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
  • A fast switching method for rtmp publishing master and backup

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0024] Such as figure 1 In the described embodiment, a kind of RTMP publishes the master-backup fast switching method, specifically comprises the following steps:

[0025] (1) When the main transcoder sends the publish message when pushing the stream to the RTMP server, it adds a special flag to the streamName to indicate that the stream needs to support active / standby switching;

[0026] (2) After the RTMP server detects the special mark, it records the special mark for subsequent processing;

[0027] (3) When the primary transcoder is down, the backup transcoder detects that the heartbeat timeout, upgrades itself to the primary transcoder, and starts to connect to the RTMP server to push streams;

[0028] (4) If the RTMP server establishes a connection, it also adds a special flag when sending the publish message, indicating that the stream...

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 an RTMP publishing master-backup fast switching method. It specifically includes the following steps: (1) When the primary transcoder sends a publish message when pushing the stream to the RTMP server, it adds the first special flag to the streamName, indicating that the stream needs to support active / standby switching; (2) the RTMP server detects After the first special mark, record the first special mark for subsequent processing; (3) When the primary transcoder is down, the standby transcoder detects that the heartbeat timeout, upgrades itself to the primary transcoder, and starts connecting to the RTMP server Push stream; (4) If the RTMP server establishes a connection, it adds a second special flag when sending the publish message, indicating that the stream needs to be switched urgently; (5) The RTMP server disconnects the previous TCP connection after detecting the second special flag , switch the processing logic of the original connection to the connection of the standby transcoder, and prepare to receive data. The beneficial effect of the present invention is: to achieve seamless switching, without affecting downstream stream watching.

Description

technical field [0001] The invention relates to the technical field of audio and video transcoding processing, in particular to an RTMP publishing master-backup fast switching method. Background technique [0002] RTMP servers are often used for relay in live event live broadcasts (concerts) and game live broadcasts (football games, basketball games). If the on-site transcoding equipment is equipped with active and standby machines, when the main machine is down, it will switch to the standby machine for transcoding output. live effect. Contents of the invention [0003] The present invention aims to overcome the above-mentioned deficiencies in the prior art, and provides an RTMP publishing master-backup fast switching method capable of realizing seamless switching. [0004] In order to achieve the above object, the present invention adopts the following technical solutions: [0005] A kind of RTMP publishes the master-standby fast switching method, specifically compris...

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/233H04N21/2343H04L41/0663H04L65/00
CPCH04N21/2335H04N21/234309H04L41/0663H04L65/762
Inventor 孙伟涛应鸣徐扬法
Owner HANGZHOU ARCVIDEO TECHNOLOGY CO LTD