CN110602545A - Distributed recording execution method for network live broadcast - Google Patents
Distributed recording execution method for network live broadcast Download PDFInfo
- Publication number
- CN110602545A CN110602545A CN201910919596.8A CN201910919596A CN110602545A CN 110602545 A CN110602545 A CN 110602545A CN 201910919596 A CN201910919596 A CN 201910919596A CN 110602545 A CN110602545 A CN 110602545A
- Authority
- CN
- China
- Prior art keywords
- recording
- service node
- remote secondary
- node end
- task
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
- H04N21/2743—Video hosting of uploaded data from client
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
- H04N21/4334—Recording operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/437—Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a distributed recording execution method for network live broadcast. The method specifically comprises the following steps: (1) the main service node end receives the recording task, selects the remote secondary recording service node end to distribute the recording task by receiving the heartbeat message information reported by the remote secondary service node end, and receives the recording result of the remote secondary recording service node end; (2) and the remote secondary recording service node terminates the recording task distributed by the main service node end, executes the recording task, and reports a recording completion message and recorded audio and video file information to the main service node end after the recording is completed. The invention has the beneficial effects that: through the regulation and control management of the main service node end, the effect of load balancing is achieved, flow congestion is reduced, transmission delay and jamming problems are reduced, and the success rate of recording tasks is greatly increased.
Description
Technical Field
The invention relates to the technical field related to network live broadcast, in particular to a distributed recording execution method for network live broadcast.
Background
With the popularization of computers and mobile devices, live broadcast services such as online interactive live broadcast, online education and the like are widely applied, in the development scene of live broadcast services, a service background end needs to store live broadcast videos for playback viewing and later supervision, a recording task is dynamically generated when a user starts live broadcast, and recording is completed when live broadcast is finished.
Disclosure of Invention
The invention provides a distributed live webcast recording execution method with high success rate of recording tasks, aiming at overcoming the defects in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a distributed recording execution method for network live broadcast specifically comprises the following steps:
(1) the main service node end receives the recording task, selects the remote secondary recording service node end to distribute the recording task by receiving the heartbeat message information reported by the remote secondary service node end, and receives the recording result of the remote secondary recording service node end;
(2) and the remote secondary recording service node terminates the recording task distributed by the main service node end, executes the recording task, and reports a recording completion message and recorded audio and video file information to the main service node end after the recording is completed.
The distributed recording execution method achieves the effect of load balancing, reduces flow congestion, reduces transmission delay and jamming problems and greatly increases the success rate of recording tasks through the regulation and control management of the main service node end.
Preferably, the step (1) specifically includes the following steps:
(11) the main service node end receives the recording task, and the remote secondary recording service node end regularly reports heartbeat message information to the main service node end;
(12) the main service node end receives heartbeat message information reported by the remote secondary service node end;
(13) according to the number of the recording tasks of the remote secondary recording service node end, selecting the remote secondary recording service node end with the least number of tasks to distribute the recording tasks;
(14) and the main service node end receives the recording result of the remote secondary recording service node end.
Preferably, the step (2) specifically includes the following steps:
(21) after receiving the recording task, the remote secondary recording service node end is connected with the stream server and pulls the live video and audio stream data to record;
(22) when the anchor finishes the live broadcast, the remote secondary recording service node end disconnects the connection with the stream server and finishes the recording;
(23) after the remote secondary recording service node end finishes recording, synthesizing an audio and video file, and storing the audio and video file to a local file system;
(24) the remote secondary recording service node side uploads a local synthetic audio and video file to the cloud server;
(25) and the remote secondary recording service node end sends the recording completion and video information to the main service node end.
Preferably, in step (21), the start and execution of the recording task fails, the remote secondary recording service node reports the recording start failure information to the main service node, and the main service node attempts to select another remote secondary recording service node to redistribute the recording task.
Preferably, the main service node end comprises a node management module and a task allocation module, wherein the node management module is used for managing the remote secondary recording service node end and receiving heartbeat message information reported by the remote secondary service node end; the task allocation module preferentially selects the remote secondary recording service node end to allocate the recording tasks according to the heartbeat message information reported by the remote secondary recording service node end.
Preferably, the remote secondary recording service node end comprises a recording task module, a data reporting module, a video synthesis module and a video uploading module, wherein the recording task module is used for connecting the streaming server to pull live streaming data and store audio and video files to a local file system, the data reporting module is used for regularly reporting heartbeat message information to the main service node end, reporting a recording result and recording audio and video file information, the video synthesis module is used for synthesizing each audio and video file into one audio and video file after recording is completed, and the video uploading module is used for uploading the synthesized audio and video file to the remote cloud server after audio and video synthesis is completed.
Preferably, in step (1), when the main service node fails, the main service node is switched to a main service node device for standby inside the main service node device to work, and when a switching operation is performed, the recording task state data managed in the main service node is read from a distributed cache database, the distributed cache database is used for storing the recording task state data managed in the main service node and information data of remote secondary recording service nodes, and the remote secondary recording service nodes are distributed in machine rooms in different regions and used for executing recording tasks.
The invention has the beneficial effects that: through the regulation and control management of the main service node end, the effect of load balancing is achieved, flow congestion is reduced, transmission delay and jamming problems are reduced, and the success rate of recording tasks is greatly increased.
Drawings
FIG. 1 is a schematic of the process of the present invention;
fig. 2 is a schematic structural diagram of a main service node side and a remote secondary recording service node side.
Detailed Description
The invention is further described with reference to the following figures and detailed description.
In the embodiment shown in fig. 1, a method for executing distributed recording of live webcasting specifically includes the following steps:
(1) the main service node end receives the recording task, selects the remote secondary recording service node end to distribute the recording task by receiving the heartbeat message information reported by the remote secondary service node end, and receives the recording result of the remote secondary recording service node end. When the main service node end fails, the main service node end is switched to a main service node end device for standby inside to work, and when switching operation is executed, recording task state data managed in the main service node end is read from a distributed cache database, the distributed cache database is used for storing the recording task state data managed in the main service node end and information data of remote secondary recording service node ends, and the remote secondary recording service node ends are distributed in machine rooms in different regions and used for executing recording tasks.
Wherein: the method specifically comprises the following steps:
(11) the main service node end receives the recording task, and the remote secondary recording service node end regularly reports heartbeat message information to the main service node end;
(12) the main service node end receives heartbeat message information reported by the remote secondary service node end;
(13) according to the number of the recording tasks of the remote secondary recording service node end, selecting the remote secondary recording service node end with the least number of tasks to distribute the recording tasks;
(14) and the main service node end receives the recording result of the remote secondary recording service node end.
(2) And the remote secondary recording service node terminates the recording task distributed by the main service node end, executes the recording task, and reports a recording completion message and recorded audio and video file information to the main service node end after the recording is completed.
Wherein: the method specifically comprises the following steps:
(21) after receiving the recording task, the remote secondary recording service node end is connected with the stream server and pulls the live video and audio stream data to record; the method comprises the following steps that a recording task is failed to start and execute, a remote secondary recording service node end reports recording starting failure information to a main service node end, and the main service node end tries to select other remote secondary recording service node ends to redistribute recording tasks;
(22) when the anchor finishes the live broadcast, the remote secondary recording service node end disconnects the connection with the stream server and finishes the recording;
(23) after the remote secondary recording service node end finishes recording, synthesizing an audio and video file, and storing the audio and video file to a local file system;
(24) the remote secondary recording service node side uploads a local synthetic audio and video file to the cloud server;
(25) and the remote secondary recording service node end sends the recording completion and video information to the main service node end.
As shown in fig. 2, wherein: the main service node end comprises a node management module and a task distribution module, wherein the node management module is used for managing the remote secondary recording service node end and receiving heartbeat message information reported by the remote secondary service node end; the task allocation module is used for preferentially selecting the remote secondary recording service node end to allocate the recording tasks according to the heartbeat message information reported by the remote secondary recording service node end. The remote secondary recording service node end comprises a recording task module, a data reporting module, a video synthesis module and a video uploading module, wherein the recording task module is used for connecting a stream server to pull live stream data and store audio and video files to a local file system, the data reporting module is used for reporting heartbeat message information to the main service node end at regular time, reporting a recording result and recording audio and video file information, the video synthesis module is used for synthesizing each audio and video file into an audio and video file after recording is completed, and the video uploading module is used for uploading the audio and video files to the remote cloud server after audio and video synthesis is completed.
The distributed recording execution method achieves the effect of load balancing, reduces flow congestion, reduces transmission delay and jamming problems and greatly increases the success rate of recording tasks through the regulation and control management of the main service node end.
Claims (7)
1. A distributed recording execution method of network live broadcast is characterized by comprising the following steps:
(1) the main service node end receives the recording task, selects the remote secondary recording service node end to distribute the recording task by receiving the heartbeat message information reported by the remote secondary service node end, and receives the recording result of the remote secondary recording service node end;
(2) and the remote secondary recording service node terminates the recording task distributed by the main service node end, executes the recording task, and reports a recording completion message and recorded audio and video file information to the main service node end after the recording is completed.
2. The method for executing distributed recording of live webcasting according to claim 1, wherein the step (1) includes the following steps:
(11) the main service node end receives the recording task, and the remote secondary recording service node end regularly reports heartbeat message information to the main service node end;
(12) the main service node end receives heartbeat message information reported by the remote secondary service node end;
(13) according to the number of the recording tasks of the remote secondary recording service node end, selecting the remote secondary recording service node end with the least number of tasks to distribute the recording tasks;
(14) and the main service node end receives the recording result of the remote secondary recording service node end.
3. The method for executing distributed recording of live webcasting according to claim 1, wherein in the step (2), the method specifically includes the following steps:
(21) after receiving the recording task, the remote secondary recording service node end is connected with the stream server and pulls the live video and audio stream data to record;
(22) when the anchor finishes the live broadcast, the remote secondary recording service node end disconnects the connection with the stream server and finishes the recording;
(23) after the remote secondary recording service node end finishes recording, synthesizing an audio and video file, and storing the audio and video file to a local file system;
(24) the remote secondary recording service node side uploads a local synthetic audio and video file to the cloud server;
(25) and the remote secondary recording service node end sends the recording completion and video information to the main service node end.
4. The distributed recording execution method of claim 3, wherein in step (21), the recording task is failed to start execution, the remote secondary recording service node reports the recording start failure information to the main service node, and the main service node attempts to select another remote secondary recording service node to redistribute the recording task.
5. The distributed recording execution method of the live webcast according to claim 1, 2, 3 or 4, wherein the main service node includes a node management module and a task allocation module, the node management module is used for managing the remote secondary recording service node and receiving the heartbeat message information reported by the remote secondary service node; the task allocation module preferentially selects the remote secondary recording service node end to allocate the recording tasks according to the heartbeat message information reported by the remote secondary recording service node end.
6. The distributed recording execution method of the live webcast according to claim 1, 2, 3 or 4, wherein the remote secondary recording service node comprises a recording task module, a data reporting module, a video synthesis module and a video uploading module, the recording task module is used for connecting a streaming server to pull live streaming data and store audio and video files in a local file system, the data reporting module is used for reporting heartbeat message information to a main service node at regular time and reporting recording results and recording audio and video file information, the video synthesis module is used for synthesizing each audio and video file into one audio and video file after the recording is completed, and the video uploading module is used for uploading the audio and video file to a remote cloud server after the audio and video synthesis is completed.
7. The distributed recording execution method for live webcasting according to claim 1, wherein in step (1), when the main service node fails, the main service node is switched to a main service node device for standby inside the main service node device, and when a switching operation is performed, the recording task state data managed in the main service node is read from a distributed cache database, the distributed cache database is used for storing the recording task state data managed in the main service node and the information data of the remote secondary recording service node, and the remote secondary recording service node is distributed in machine rooms in different areas and is used for executing the recording task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910919596.8A CN110602545A (en) | 2019-09-26 | 2019-09-26 | Distributed recording execution method for network live broadcast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910919596.8A CN110602545A (en) | 2019-09-26 | 2019-09-26 | Distributed recording execution method for network live broadcast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110602545A true CN110602545A (en) | 2019-12-20 |
Family
ID=68864011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910919596.8A Pending CN110602545A (en) | 2019-09-26 | 2019-09-26 | Distributed recording execution method for network live broadcast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110602545A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112766705A (en) * | 2021-01-13 | 2021-05-07 | 北京洛塔信息技术有限公司 | Distributed work order processing method, system, device and storage medium |
CN113573080A (en) * | 2021-06-28 | 2021-10-29 | 北京百度网讯科技有限公司 | Live broadcast recording method and device, electronic equipment and storage medium |
CN114143569A (en) * | 2021-11-18 | 2022-03-04 | 聚好看科技股份有限公司 | Webpage recording and live broadcasting method and system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102056014A (en) * | 2009-10-28 | 2011-05-11 | 青岛海信传媒网络技术有限公司 | Stream media recording method and system |
CN104469391A (en) * | 2014-11-21 | 2015-03-25 | 深圳市天威视讯股份有限公司 | Cloud-platform-based digital television content distribution system and method |
CN106101276A (en) * | 2016-08-10 | 2016-11-09 | 东方网力科技股份有限公司 | A kind of cluster load balancing method and device |
CN106131185A (en) * | 2016-07-13 | 2016-11-16 | 腾讯科技(深圳)有限公司 | The processing method of a kind of video data, Apparatus and system |
CN106656593A (en) * | 2016-12-19 | 2017-05-10 | 北京华清伟业技术有限公司 | Streaming media live broadcast recording redundant hot-standby method and system |
CN107688496A (en) * | 2017-07-24 | 2018-02-13 | 上海壹账通金融科技有限公司 | Task distribution formula processing method, device, storage medium and server |
CN109618180A (en) * | 2019-01-30 | 2019-04-12 | 网宿科技股份有限公司 | A kind of live data processing method, system and server |
CN109936751A (en) * | 2017-12-15 | 2019-06-25 | 中兴通讯股份有限公司 | Video recording method, device, equipment, computer readable storage medium and system |
-
2019
- 2019-09-26 CN CN201910919596.8A patent/CN110602545A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102056014A (en) * | 2009-10-28 | 2011-05-11 | 青岛海信传媒网络技术有限公司 | Stream media recording method and system |
CN104469391A (en) * | 2014-11-21 | 2015-03-25 | 深圳市天威视讯股份有限公司 | Cloud-platform-based digital television content distribution system and method |
CN106131185A (en) * | 2016-07-13 | 2016-11-16 | 腾讯科技(深圳)有限公司 | The processing method of a kind of video data, Apparatus and system |
CN106101276A (en) * | 2016-08-10 | 2016-11-09 | 东方网力科技股份有限公司 | A kind of cluster load balancing method and device |
CN106656593A (en) * | 2016-12-19 | 2017-05-10 | 北京华清伟业技术有限公司 | Streaming media live broadcast recording redundant hot-standby method and system |
CN107688496A (en) * | 2017-07-24 | 2018-02-13 | 上海壹账通金融科技有限公司 | Task distribution formula processing method, device, storage medium and server |
CN109936751A (en) * | 2017-12-15 | 2019-06-25 | 中兴通讯股份有限公司 | Video recording method, device, equipment, computer readable storage medium and system |
CN109618180A (en) * | 2019-01-30 | 2019-04-12 | 网宿科技股份有限公司 | A kind of live data processing method, system and server |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112766705A (en) * | 2021-01-13 | 2021-05-07 | 北京洛塔信息技术有限公司 | Distributed work order processing method, system, device and storage medium |
CN113573080A (en) * | 2021-06-28 | 2021-10-29 | 北京百度网讯科技有限公司 | Live broadcast recording method and device, electronic equipment and storage medium |
CN113573080B (en) * | 2021-06-28 | 2023-09-29 | 北京百度网讯科技有限公司 | Live broadcast recording method and device, electronic equipment and storage medium |
CN114143569A (en) * | 2021-11-18 | 2022-03-04 | 聚好看科技股份有限公司 | Webpage recording and live broadcasting method and system |
CN114143569B (en) * | 2021-11-18 | 2024-02-27 | 聚好看科技股份有限公司 | Webpage recording and live broadcasting method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2792123B1 (en) | Remote storage digital video recorder and related operating methods | |
US9049484B2 (en) | Efficient assignment of program copies in a network digital video recorder | |
US8589992B2 (en) | Video workflow automation platform for publishing a video feed in multiple formats | |
US8533765B2 (en) | On demand system and method using dynamic broadcast scheduling | |
CN110602545A (en) | Distributed recording execution method for network live broadcast | |
US8176192B2 (en) | Networked transmission system and method for stream data | |
CN110300306B (en) | Live stream load balancing method based on RTMP protocol | |
CN104135672A (en) | HLS-based method for realizing seamless disaster recovery of video on demand | |
US11102521B2 (en) | Method and apparatus for capacity exchange | |
CN105592318A (en) | System, device and method for realizing HLS channel replaying service | |
US9276976B2 (en) | Apparatus and a method for data streaming applications | |
CN101287095B (en) | Implementing method and system for recorded broadcast service of stream media of meeting television | |
JP2019071680A (en) | Terminal device and receiving device | |
KR101287774B1 (en) | Base server apparatus, communication method, communication control program, distribution system, and communication system | |
CN102098270A (en) | System and method for realizing load balance of streaming media server | |
CN103139607B (en) | A kind of real-time network monitoring system and method thereof | |
CN105656742A (en) | Multi-looped network stream media multicast system and method based on MOST | |
WO2014196393A1 (en) | Content supply device, content supply method, program, terminal device, and content supply system | |
CN102333074B (en) | Method and equipment for transmitting data in monitoring system | |
CN114124671B (en) | Downloading and screen recording method and system based on media stream conversion | |
CN113612728B (en) | Streaming media playing method, transmission equipment and system | |
JP2012105341A (en) | On-demand system and method using dynamic broadcast scheduling | |
JP2014090287A (en) | Video reception terminal and video transmission and reception system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191220 |