CN106656593A - Streaming media live broadcast recording redundant hot-standby method and system - Google Patents
Streaming media live broadcast recording redundant hot-standby method and system Download PDFInfo
- Publication number
- CN106656593A CN106656593A CN201611179975.0A CN201611179975A CN106656593A CN 106656593 A CN106656593 A CN 106656593A CN 201611179975 A CN201611179975 A CN 201611179975A CN 106656593 A CN106656593 A CN 106656593A
- Authority
- CN
- China
- Prior art keywords
- live
- streaming media
- task
- controller
- backup
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Hardware Redundancy (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a streaming media live broadcast recording redundant hot-standby method. The method comprises the steps that code streams coded by live broadcast coders are synchronously input into master and standby networks; live broadcast channels are released and input source information is configured through a background management system; a streaming media controller controls recording task controllers to start or stop live broadcast recording tasks through an API interface according to a master and standby hot-standby mechanism; when the recoding task controllers start the live broadcast recording tasks, recording and distributed storage are carried out on the accessed code streams of the live broadcast coders, and heartbeat message information is sent to the streaming media controller periodically; and the streaming media controller monitors the states of all live broadcast recording tasks, and the distributed storage is carried out on the state data of the live broadcast recording tasks. The invention also provides a streaming media live broadcast recording redundant hot-standby system. Through application of the technical scheme provided by the method and the system, the redundant hot-standby can be realized rapidly, the efficiency is improved, and the cost is reduced.
Description
Technical field
The present invention relates to streaming Media Technology field, more particularly to a kind of method that live streaming media records Redundant backup
And system.
Background technology
Flourish as internet is live, increasing live platform starts to emerge in large numbers, and such as Web TV, network are received
Sound machine etc., the playback terminal that user can be provided by live platform, it is not necessary to be in the action and just very easily can broadcast in real time
Put the live content of distal end, such as race, meeting, teaching, operation etc..Either due to supervision, the requirement of Content Advisor, also
It is that the demand of live recording has become more and more extensive in order to the later stage can directly support time shift and review.
But current live platform, does not also provide effectively live recording Redundant backup technical scheme.Its main cause
It is, because the bandwidth of central server itself, memory capacity are limited, particularly have a large number of users in serve thousands user up to ten thousand
When request moment crowds into, it is easy to become the bottleneck of whole network service.Existing modal streaming media transmission technique means
It is that some channels of recording are fixed using single server, and due to not supporting the mode of Redundant backup, when wherein one
Recorded broadcast server fail or delay machine when then cause whole service disconnection, and need it is artificial it is manual be switched to other one it is cold
The recorded broadcast server of backup, service outage duration is longer, affects very much data transmission efficiency and end-user experience.
And the existing live method for recording backup, generally by the way of two-node cluster hot backup, i.e., stand-by equipment will be recorded
With the identical stream medium data copy of main equipment, cause substantial amounts of redundant storage, waste limited storage resource and deposit
Storage I/O (input/output) access bandwidth, can also significantly reduce whole system readwrite performance and service number of concurrent;Additionally, extra
Disk read-write operation also can damage the disk life-span, and then the MTBF (MTBF) of server can be reduced, also between
Connect the hardware cost that improve whole system input.
The content of the invention
The technical problem to be solved is to provide a kind of technical side for supporting live streaming media to record Redundant backup
Case, realizes quick Redundant backup, the time of service disconnection after reduction system jam and machine of delaying, improves live streaming media record
The efficiency of Redundant backup processed, reduces hardware and takes resource and cost.
To solve above technical problem, on the one hand, the embodiment of the present invention provides a kind of support live streaming media and records redundancy
Hot standby method, including:
By way of port level is backed up, the code stream after direct broadcast coder is encoded synchronously is input to master network and standby net
Network;
Direct broadcast band and configuration input source information are issued by background management system;
Streaming Media controller adopts master-slave redundancy mechanism, according to the direct broadcast band and the input source information, creates straight
The task of including is broadcast, and the access mode of virtual IP address is provided to external equipment;
The Streaming Media controller is included task controller and is started or stoped and live includes task by api interface control;
It is described include task controller start it is described live when including task, by master network and backup network access it is live
The direct-broadcasting code stream of encoder is included and distributed storage, and timing sends heartbeat message letter to the Streaming Media controller
Breath;
The Streaming Media controller is appointed by active inquiry or according to the heartbeat message information to all live including
The monitoring state of business, and distributed storage is carried out to the live status data for including task.
Further, the task controller of including starts described live when including task, also includes:
Whether the current direct broadcast band catalogue of detection is empty;
If so, then the Streaming Media that master network and backup network are accessed included and distributed storage;
If it is not, then loading the current existing play list file of direct broadcast band catalogue, retain completed section, start
Receiving the stream medium data of master network and backup network access carries out continuation section, and sets in the play list file new
Increase the label of section.
Further, described live streaming media records the method for Redundant backup also to be included:
When the main equipment place one malfunctions in the Streaming Media controller, by Streaming Media controller switching
It is operated to its internal stand-by equipment;
The mission bit stream data of the main equipment record in the Streaming Media controller are loaded from distributed memory;
Monitoring and the current all live states for including task of detection;Finding that live including there is no heartbeat report in task
Literary information, and when repeatedly not receiving feedback information yet after inquiry, to the task controller of including live including is re-issued
Task.
Preferably, the method that described live streaming media records Redundant backup, also includes:
Source server receives the live play that playback terminal sends when asking, according to locally stored path, find out with
The live play asks the data that corresponding direct broadcast band is recorded, and dynamic generates play list file, and by the broadcasting
Listing file is returned to the playback terminal.
Further, the method that described live streaming media records Redundant backup, also includes:
Channel and program parameter configuration to live recording, is that playback terminal generates live play address by api interface;
The playback terminal asks the live play address, and is started to download section according to the index of play list file
File, the Streaming Media of the channel of live recording is played based on HLS protocol.
On the other hand, the embodiment of the present invention additionally provides the system that a kind of live streaming media records Redundant backup, including:
Direct broadcast coder, for exporting live broadcast stream media to be recorded;
Master network and backup network, by way of being backed up port level, the code stream after direct broadcast coder is encoded is same
Step is input to master network and backup network;
Background management system, for issuing direct broadcast band and configuration input source information;
Using the Streaming Media controller of master-slave redundancy mechanism, for according to the direct broadcast band and the input source information,
Establishment is live to include task, and provides the access mode of virtual IP address to external equipment;
Task controller is included, for receiving the control signal of the Streaming Media controller by api interface, is started or is stopped
It is only live to include task;
It is described to include task controller, be additionally operable to start it is described it is live include task when, by master network and backup network
The direct-broadcasting code stream of the direct broadcast coder of access is included and distributed storage, and timing sends to the Streaming Media controller
Heartbeat message information;
The Streaming Media controller, is additionally operable to by active inquiry or according to the heartbeat message information, to all straight
The monitoring state of the task of including is broadcast, and distributed storage is carried out to the live status data for including task;
Distributed memory, for carrying out to the data for including task controller and Streaming Media controller record
Storage.
Further, it is described to include task controller, it is additionally operable to:
Whether the current direct broadcast band catalogue of detection is empty;If so, the Streaming Media for then accessing master network and backup network
Included and distributed storage;If it is not, then loading the current existing play list file of direct broadcast band catalogue, retain complete
Into section, start and receive the stream medium data that master network and backup network access and carry out continuation section, and in the played column
The label of newly-increased section is set on list file.
Further, described live streaming media records the system of Redundant backup also to be included:
Main equipment and stand-by equipment are included using the Streaming Media controller of master-slave redundancy mechanism;
The stand-by equipment, for when the main equipment place one malfunctions in the Streaming Media controller, taking over
The main equipment of Streaming Media controller is operated;
The stand-by equipment, is additionally operable to load the main equipment record in the Streaming Media controller from distributed memory
Mission bit stream data;And monitor and the current all live states for including task of detection;Finding live including in task not
When there is heartbeat message information, and repeatedly not receiving feedback information yet after inquiry, to it is described include task controller again under
Send out live and include task.
Further, the system that described live streaming media records Redundant backup, also includes:Source server and broadcasting are eventually
End;
The source server, for when the live play request that playback terminal sends is received, according to locally stored road
Footpath, finds out the data that the direct broadcast band corresponding with live play request is recorded, and dynamic generates play list file, and
The play list file is returned into the playback terminal.
Preferably, the system that described live streaming media records Redundant backup, also includes:
The background management system, is additionally operable to the channel to live recording and program parameter configuration, is to broadcast by api interface
Put terminal and generate live play address;
The playback terminal, for asking the live play address, and under being started according to the index of play list file
Section file is carried, the Streaming Media of the channel of live recording is played based on HLS protocol.
Live streaming media provided in an embodiment of the present invention records the technical scheme of Redundant backup, overcomes lacking for prior art
Fall into, make full use of existing streaming media server resource, additionally do not increasing server and reducing unnecessary redundant storage sky
Between in the case of, realize quick Redundant backup, reduce system jam and machine of delaying after (control is 2 time of service disconnection
Within second).In the technical scheme that the present invention is provided, can will include task controller, Streaming Media controller and be deployed in stream
On media server, it is not necessary to special Video Record Processor or control server, system hardware resources and construction cost are reduced;This
Outward, in order to ensure to be broken down in Streaming Media controller or place server is delayed when machine, having issued the task of including will
Continue to run with, newly issuing for the task of including can also continue to receive, and Streaming Media controller adopts master-slave redundancy mechanism, to live receipts
The status data of record task carries out distributed storage;Additionally, startup is live to include the Streaming Media included during task equally employing point
Cloth is stored, and can be easily achieved between multiple media servers carries out the scheduling of load balancing, while can be in a dynamic state
Send out and include task to the streaming media server of relative free, be easy to the infinite expanding of the memory capacity with portfolio growth.
Description of the drawings
The step of Fig. 1 is the one embodiment for the method that the live streaming media that the present invention is provided records Redundant backup flow process
Figure.
Fig. 2 is the structural representation of the one embodiment for the system that the live streaming media that the present invention is provided records Redundant backup
Figure.
Fig. 3 is the step of a kind of implementation of task is included in the startup that the present invention is provided flow chart.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described.
Referring to Fig. 1, the step of be the one embodiment for the method that live streaming media that the present invention is provided records Redundant backup
Flow chart.It is that the structure of one embodiment of the system of the live streaming media recording Redundant backup that the present invention is provided is shown referring to Fig. 2
It is intended to.
In the present embodiment, the method that described live streaming media records Redundant backup, mainly includes following six step:
Step S1:By way of port level is backed up, the code stream after direct broadcast coder 100 is encoded accesses to master network
201 and backup network 202;
Step S2:Direct broadcast band and configuration input source information are issued by background management system 300;
Step S3:Streaming Media controller 400 adopts master-slave redundancy mechanism, is believed according to the direct broadcast band and the input source
Breath, establishment is live to include task, and provides the access mode of virtual IP address to external equipment;
Step S4:The Streaming Media controller 400 is included task controller 500 and is started or stoped by api interface control
It is live to include task;
Step S5:It is described include task controller 500 start it is described live when including task, by master network 201 and standby
The direct-broadcasting code stream of the direct broadcast coder that network 202 is accessed is included and distributed storage, and timing is to the Streaming Media control
Device processed 400 sends heartbeat message information;
Step S6:The Streaming Media controller 400 passes through active inquiry or according to the heartbeat message information, to all
The live monitoring state for including task, and distributed storage is carried out to the live status data for including task.When the stream
Media controller detects the live task of including of one or more direct broadcast bands to be occurred to interrupt or during failure, is searched out relatively empty
Not busy node re-issues that the direct broadcast band is corresponding live to include task.
Corresponding with the method that the live streaming media that above-described embodiment is provided records Redundant backup, the embodiment of the present invention is also carried
The system for having supplied a kind of live streaming media to record Redundant backup, including:
Direct broadcast coder 100, for exporting live broadcast stream media to be recorded;Wherein, in order to ensure that input source is not in
Single Point of Faliure, direct broadcast coder 100 needs to support port level backup and N+M redundancy backup mechanism, so as to currently used straight
Broadcast encoder to break down or delay in the case of machine, standby direct broadcast coder output backup stream can be automatically switched to.Such as Fig. 2 institutes
Show, at least provided with main direct broadcast coder 101 and standby direct broadcast coder 102 in direct broadcast coder 100, realize streaming media data
Dual-host backup.Wherein, port level backup, refers to that in the present embodiment direct broadcast coder 100 adopts multiple (e.g., 2) networks
Interface is bound to realize the backup of port level, its objective is to realize more complete data backup;And N+M redundancy backups are referred to
Back mechanism between multiple stage direct broadcast coder and multiple networks.
Master network 201 and backup network 202, for by the network interface bound respectively, accessing direct broadcast coder live
Code stream, and the live broadcast stream media for treating recording by the backup network 202 backed up in realtime.
Background management system 300, for issuing direct broadcast band and configuration input source information.
Using the Streaming Media controller 400 of master-slave redundancy mechanism, for being believed according to the direct broadcast band and the input source
Breath, establishment is live to include task, and provides the access mode of virtual IP address to external equipment, outside during so as to active and standby switching
Equipment can be accessed normally.
Task controller 500 is included, for receiving the control signal of the Streaming Media controller 400 by api interface, is opened
It is dynamic or stop live including task;
It is described to include task controller 500, be additionally operable to start it is described it is live include task when, by master network 201 and standby
The Streaming Media accessed with network 202 is included and distributed storage, and timing sends the heart to the Streaming Media controller 400
Jump message information.
The Streaming Media controller 400, is additionally operable to by active inquiry or according to the heartbeat message information, to all
The live monitoring state for including task, and distributed storage is carried out to the live status data for including task.
Distributed memory 600, for including task controller 500 and the Streaming Media controller 400 is recorded to described
Data stored.
When the 401 place one malfunctions of main equipment in the Streaming Media controller 400, by Streaming Media control
Device switches to its internal stand-by equipment 402 and is operated;The Streaming Media controller is loaded from distributed memory 600
The mission bit stream data of the record of main equipment 401 in 400;Monitoring and the current all live states for including task of detection;Sending out
It is now live to include heartbeat message information of do not exist in task, and when repeatedly not receiving feedback information yet after inquiry, to the receipts
Record task controller 500 is re-issued live includes task.
In the present embodiment, direct broadcast coder 100 passes through UDP (User Datagram Protocol, User Datagram Protocol
View) etc. various protocols by multicast export content identical program source to two be configured to master-slave redundancy binding network interface to master network
201 and backup network 202, it is to avoid the Single Point of Faliure of network, and will be carried out by HLS (HTTP Live Streaming) agreement
Stream medium data after Redundant backup is exported into playback terminal 800 and played out.HLS is that a kind of Streaming Media based on HTTP is passed
Defeated agreement, is widely used between streaming media server and client (be mainly used in iOS terminals and android terminal), is capable of achieving
The live of Streaming Media, time shift, review and program request.
User can create and issue direct broadcast band by the administration page of background management system 300, configure input source
Multicast address and port, and be provided with whether open review recording etc. option, background management system 300 will be by HTTP REST
(Representational State Transfer, declarative state transfer) API (Application Programming
Interface, application programming interfaces) interface will issue the live task of including of establishment to Streaming Media controller 400;Can lead to simultaneously
Cross api interface and obtain live broadcasting URL (Uniform/Universal Resource from Streaming Media controller 400
Locator, URL) broadcast address, accessed with supplying playback terminal 800.
When being embodied as, Streaming Media controller 400 can provide channel live using http protocol and REST api interfaces
The startup of task is included, stops or restart function.After including task start, need to be sent out by including the timing of task controller 500
Heartbeat message information is sent to Streaming Media controller 400, while Streaming Media controller 400 can also active inquiry be all includes task
Status information, find include task occur interrupt or failure in the case of, by optimization algorithm find out relative free
Node, re-issue the channel includes task.
In the present embodiment, Streaming Media controller 400 mainly provides the management of task of including, including issuing, condition monitoring
With task in each node load balancing etc., it can be deployed on existing streaming media server, in order to ensure in Streaming Media control
When device breaks down or place server is delayed machine, having issued the task of including will continue to run with, and including for newly issuing is appointed
Business can also continue to receive, and Streaming Media controller 400 needs to be deployed to two-server and does master-slave redundancy.
As shown in Fig. 2 including main equipment 401 and stand-by equipment using the Streaming Media controller 400 of master-slave redundancy mechanism
402.Streaming Media controller can realize itself active and standby support using multiple technologies (such as keepalived technologies), only can provide
The mode of virtual IP address is realized accessing to external equipment.Keepalived is one based on VRRP (Virtual Router
Redundancy Protocol, Virtual Router Redundacy Protocol) come the WEB service high availability scheme realized, it is possible to use it is keeping away
Exempt from Single Point of Faliure.Streaming Media controller 400 (including main equipment 401 and stand-by equipment 402) needs to record including for all channels
The data such as task status, are stored on distributed storage disk, so as to the place one malfunctions of main equipment 401 or machine of delaying, then
After being switched to the node of stand-by equipment 402, can continue to monitor and manage and all of include task situation, it is assumed that main equipment 401
Also have during the one malfunctions at place part include task operation, after active-standby switch, stand-by equipment 402 need again from point
The mission bit stream data of the record of main equipment 401 are loaded on cloth memory 600, detection is all to include task status, occurs event
Hinder and interrupt, it is necessary to coordinate to issue the task of including again.
The stand-by equipment 402, for there is event when the place node of main equipment 401 in the Streaming Media controller 400
During barrier, the main equipment 401 for taking over Streaming Media controller 400 is operated;
The stand-by equipment 402, is additionally operable to from distributed memory 600 load in the Streaming Media controller 400
The data of the record of main equipment 401;And the current all live states for including task of detection;Live tasks interrupt is included existing
When, to it is described include task controller 500 and re-issue live include task.
Further, it is described to include task controller 500, it is additionally operable to:
Whether the current direct broadcast band catalogue of detection is empty;If so, then master network 201 and backup network 202 are accessed
Streaming Media is included and distributed storage, and timing sends heartbeat message information to the Streaming Media controller 400;If
It is no, then the current existing play list file of direct broadcast band catalogue is loaded, retain completed section, start and receive master network
201 and the stream medium data that accesses of backup network 202 carry out continuation section, and newly-increased cutting is set in the play list file
The label of piece.
It is the step of a kind of implementation of task is included in the startup of present invention offer flow chart referring to Fig. 3.
Specifically, include after task start, if it find that current direct broadcast band catalogue is sky, just by Starting mode first
Carry out Streaming Media record;If detect having the play list file box section of remnants under current directory, illustrate that this is to re-issue
Include task, at this moment need first to load existing play list file, such as the index file of M3U8 forms, retain it is all
The section for completing, then again from receives input data in direct broadcast coder 100, continues to cut into slices;The sequence number of section is in existing sequence
Continue to increase on the basis of number, the index file of M3U8 forms then needs to add corresponding label (e.g., EXT- according to the agreement of HLS
X-DISCONTINUITY labels), to distinguish each section.Actual test proves, can control the data lost in the middle of hot-swap
Within 2 seconds, do not affect substantially for business.
Further, the system that described live streaming media records Redundant backup, also includes:Source server 700 and broadcasting
Terminal 800.When being embodied as, the source server 700 of Streaming Media is the equipment in one or more source servers 1~N of cluster, its
It is main provide record the live of code stream, time shift, the program request of code stream of reviewing program request is pushed, can with include task controller 500
It is deployed in jointly on identical and different streaming media server.Additionally, source server 700, for receiving playback terminal 800
When the live play for sending is asked, according to locally stored path, the live frequency corresponding with live play request is found out
The data that road is recorded, dynamic generates play list file (such as with M3U8 as the index file of form suffix), and by the broadcasting
Listing file is returned to the playback terminal 800.
Additionally, the background management system 300, is additionally operable to the channel to live recording and program parameter configuration, by API
Interface is that playback terminal 800 generates live play address;
The playback terminal 800, for asking the live play address, and starts according to the index of play list file
Section file is downloaded, the Streaming Media of the channel of live recording is played based on HLS protocol.
In the present embodiment, including task controller 500 needs to set up heartbeat mechanism with Streaming Media controller 400, with reality
When monitoring include the execution state of task;Also, in Streaming Media controller 400 because failover is to after secondary node 402, also
Need software mechanism again to set up heartbeat link.
Distributed memory needs first to be mounted under the local directory of all of streaming media server, not order program data and
Live data is respectively allocated includes path.For example, by "/media " using as virtual root, then can be in "/media/
Vod " catalogues deposit order program data, and using "/media/live " catalogue live data are stored.And can be by the live road included
Gauge structure is defined as:" root:/ media/live, direct broadcast band path:channel[n]”;By the live catalogue knot included
Structure is defined as:Subdirectory under "/media/live/channel [n]/".Section filename rule definition can be according to specific
Streaming transfer protocol is performed, also, segmentation duration of cutting into slices preferably is adopted 10 seconds.
During the request live play address of playback terminal 800, background management system 300 is joined to the channel and program of live recording
Number configuration, is that playback terminal 800 generates live play address by api interface, and for example, broadcast address form can be:
http://streaming_domain/live/chan[n]/playlist.m3u8。
In this embodiment it is assumed that the playing request is already sent in all source servers 700 in cluster, therefore not
Consider the situation of Edge Server.In specific actual live plateform system, the source server 700 of cluster passes through load balancing
Technology redirect the request of playback terminal 800 to wherein one source server, the source server is regular according to path definition, looks into
The data that the direct broadcast band is recorded are found, the index file that dynamic is generated with M3U8 as suffix is returned to playback terminal 800.Play eventually
End 800 is started to download section file by the index of M3U8 files, in the way of sliding window, based on HLS protocol Streaming Media is opened
Playing flow.
Live streaming media provided in an embodiment of the present invention records the technical scheme of Redundant backup, overcomes lacking for prior art
Fall into, make full use of existing streaming media server resource, additionally do not increasing server and reducing unnecessary redundant storage sky
Between in the case of, realize quick Redundant backup, reduce system jam and machine of delaying after (control is 2 time of service disconnection
Within second).In the technical scheme that the present invention is provided, can will include task controller, Streaming Media controller and be deployed in stream
On media server, it is not necessary to special Video Record Processor or control server, system hardware resources and construction cost are reduced;This
Outward, in order to ensure to be broken down in Streaming Media controller or place server is delayed when machine, having issued the task of including will
Continue to run with, newly issuing for the task of including can also continue to receive, and Streaming Media controller adopts master-slave redundancy mechanism, to live receipts
The status data of record task carries out distributed storage;Additionally, startup is live to include the Streaming Media included during task equally employing point
Cloth is stored, and can be easily achieved between multiple media servers carries out the scheduling of load balancing, while can be in a dynamic state
Send out and include task to the streaming media server of relative free, be easy to the infinite expanding of the memory capacity with portfolio growth.
Implement the present invention provide technical scheme, can in (active and standby) network, live broadcast stream media input source, include task
One link of any of which such as controller, source server and Streaming Media controller and equipment break down, and have Redundant backup
Mechanism ensures that business will not interrupt for a long time.Using the present invention need not adopt it is special it is live include server, saved clothes
Business device cost, simultaneously as not recording the copy of live redundancy, has saved the input of storage, so as to save whole system input
Cost.Additionally, as portfolio is significantly increased, can be easy to carry out system seamless extension using the present invention, and not shadow
The service of the existing business of sound.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of method that live streaming media records Redundant backup, it is characterised in that include:
By way of port level is backed up, the code stream after direct broadcast coder is encoded synchronously is input to master network and backup network;
Direct broadcast band and configuration input source information are issued by background management system;
Streaming Media controller adopts master-slave redundancy mechanism, according to the direct broadcast band and the input source information, creates live receipts
Record task, and provide the access mode of virtual IP address to external equipment;
The Streaming Media controller is included task controller and is started or stoped and live includes task by api interface control;
The task controller of including starts described live when including task, the live coding that master network and backup network are accessed
The direct-broadcasting code stream of device is included and distributed storage, and timing sends heartbeat message information to the Streaming Media controller;
The Streaming Media controller by active inquiry or according to the heartbeat message information, to all live tasks of including
Monitoring state, and distributed storage is carried out to the live status data for including task.
2. the method that live streaming media as claimed in claim 1 records Redundant backup, it is characterised in that described to include task control
Device processed starts described live when including task, also includes:
Whether the current direct broadcast band catalogue of detection is empty;
If so, then the Streaming Media that master network and backup network are accessed included and distributed storage;
If it is not, then loading the current existing play list file of direct broadcast band catalogue, retain completed section, start and receive
The stream medium data that master network and backup network are accessed carries out continuation section, and newly-increased cutting is set in the play list file
The label of piece.
3. the method that live streaming media as claimed in claim 1 records Redundant backup, it is characterised in that methods described is also wrapped
Include:
When the main equipment place one malfunctions in the Streaming Media controller, the Streaming Media controller is switched into it
Internal stand-by equipment is operated;
The mission bit stream data of the main equipment record in the Streaming Media controller are loaded from distributed memory;
Monitoring and the current all live states for including task of detection;Finding that live including do not exist in task heartbeat message letter
Breath, and when repeatedly not receiving feedback information yet after inquiry, to it is described include task controller and re-issue live include task.
4. the method that live streaming media as claimed in claim 1 records Redundant backup, it is characterised in that methods described is also wrapped
Include:
Source server receives the live play that playback terminal sends when asking, according to locally stored path, find out with it is described
Live play asks the data that corresponding direct broadcast band is recorded, and dynamic generates play list file, and by the playlist
File is returned to the playback terminal;
The playback terminal asks the live play address, and is started to download section text according to the index of play list file
Part, the Streaming Media of the channel of live recording is played based on HLS protocol.
5. the method that live streaming media as claimed in claim 4 records Redundant backup, it is characterised in that methods described is also wrapped
Include:
Channel and program parameter configuration to live recording, is that playback terminal generates live play address by api interface.
6. the system that a kind of live streaming media records Redundant backup, it is characterised in that include:
Direct broadcast coder, for exporting live broadcast stream media to be recorded;
Master network and backup network, by way of being backed up port level, the code stream after direct broadcast coder is encoded is synchronously defeated
Enter to master network and backup network;
Background management system, for issuing direct broadcast band and configuration input source information;
Using the Streaming Media controller of master-slave redundancy mechanism, for according to the direct broadcast band and the input source information, creating
It is live to include task, and provide the access mode of virtual IP address to external equipment;
Task controller is included, for receiving the control signal of the Streaming Media controller by api interface, is started or stoped straight
Broadcast the task of including;
It is described to include task controller, be additionally operable to start it is described it is live include task when, master network and backup network are accessed
The direct-broadcasting code stream of direct broadcast coder included and distributed storage, and timing sends heartbeat to the Streaming Media controller
Message information;
The Streaming Media controller, is additionally operable to by active inquiry or according to the heartbeat message information, to all live receipts
The monitoring state of record task, and distributed storage is carried out to the live status data for including task;
Distributed memory, for depositing to the data for including task controller and Streaming Media controller record
Storage.
7. the system that live streaming media as claimed in claim 6 records Redundant backup, it is characterised in that described to include task control
Device processed, is additionally operable to:
Whether the current direct broadcast band catalogue of detection is empty;
If so, then the Streaming Media that master network and backup network are accessed included and distributed storage;
If it is not, then loading the current existing play list file of direct broadcast band catalogue, retain completed section, start and receive
The stream medium data that master network and backup network are accessed carries out continuation section, and newly-increased cutting is set in the play list file
The label of piece.
8. the system that live streaming media as claimed in claim 6 records Redundant backup, it is characterised in that
Main equipment and stand-by equipment are included using the Streaming Media controller of master-slave redundancy mechanism;
The stand-by equipment, for when the main equipment place one malfunctions in the Streaming Media controller, taking over stream matchmaker
The main equipment of body controller is operated;
The stand-by equipment, the main equipment record that is additionally operable to be loaded from distributed memory in the Streaming Media controller is appointed
Business information data;And monitor and the current all live states for including task of detection;Finding that live including do not exist in task
Heartbeat message information, and when repeatedly not receiving feedback information yet after inquiry, re-issue directly to the task controller of including
Broadcast the task of including.
9. the system that live streaming media as claimed in claim 6 records Redundant backup, it is characterised in that also include:Source services
Device and playback terminal;
The source server, for when the live play request that playback terminal sends is received, according to locally stored path, looking into
Find out the data that the direct broadcast band corresponding with live play request is recorded, dynamic generates play list file, and by institute
State play list file and be returned to the playback terminal;
The playback terminal, cuts for asking the live play address, and starting download according to the index of play list file
Piece file, the Streaming Media of the channel of live recording is played based on HLS protocol.
10. the system that live streaming media as claimed in claim 9 records Redundant backup, it is characterised in that
The background management system, is additionally operable to the channel to live recording and program parameter configuration, whole to play by api interface
End generates live play address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179975.0A CN106656593B (en) | 2016-12-19 | 2016-12-19 | Method and system for streaming media live broadcast recording redundancy hot standby |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611179975.0A CN106656593B (en) | 2016-12-19 | 2016-12-19 | Method and system for streaming media live broadcast recording redundancy hot standby |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106656593A true CN106656593A (en) | 2017-05-10 |
CN106656593B CN106656593B (en) | 2020-04-14 |
Family
ID=58833880
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611179975.0A Active CN106656593B (en) | 2016-12-19 | 2016-12-19 | Method and system for streaming media live broadcast recording redundancy hot standby |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106656593B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426021A (en) * | 2017-07-19 | 2017-12-01 | 北京锐安科技有限公司 | Construction method, device and the redundant system of redundant system |
CN107734350A (en) * | 2017-09-25 | 2018-02-23 | 上海幻电信息科技有限公司 | Live broadcast system and live broadcasting method |
CN108012161A (en) * | 2017-11-10 | 2018-05-08 | 广州华多网络科技有限公司 | Net cast method, system and terminal device |
CN109428864A (en) * | 2017-08-30 | 2019-03-05 | 武汉斗鱼网络科技有限公司 | Improve the method and device that nginx-rtmp draws streaming quality |
CN110602545A (en) * | 2019-09-26 | 2019-12-20 | 杭州米络星科技(集团)有限公司 | Distributed recording execution method for network live broadcast |
CN111031341A (en) * | 2019-11-20 | 2020-04-17 | 杭州当虹科技股份有限公司 | Heartbeat-based dual-computer hot standby method |
CN111026585A (en) * | 2019-12-05 | 2020-04-17 | 四川湖山电器股份有限公司 | Storage server hot standby switching method in recording and broadcasting system |
CN111083521A (en) * | 2019-12-27 | 2020-04-28 | 杭州当虹科技股份有限公司 | RTMP release main/standby fast switching method |
CN114143569A (en) * | 2021-11-18 | 2022-03-04 | 聚好看科技股份有限公司 | Webpage recording and live broadcasting method and system |
CN114422717A (en) * | 2021-12-06 | 2022-04-29 | 新奥特(北京)视频技术有限公司 | Cloud broadcasting, collecting and recording management control method and device, electronic equipment and storage medium |
CN115314733A (en) * | 2022-08-05 | 2022-11-08 | 京东方智慧物联科技有限公司 | Data display system, method, electronic device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060088063A1 (en) * | 2004-10-27 | 2006-04-27 | John Hartung | Network architecture for real time delivery of video over lossy networks from remote locations |
CN101068155A (en) * | 2006-09-20 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Coordinate connection stream media direct broadcasting system and collection server thereof |
CN101729794A (en) * | 2008-10-11 | 2010-06-09 | 华为技术有限公司 | Method, device and system for realizing live broadcast and live broadcast pretreatment |
CN102523480A (en) * | 2011-12-08 | 2012-06-27 | 成都东方盛行电子有限责任公司 | Recording system and method based on active-standby and cache technology |
CN105744290A (en) * | 2016-01-27 | 2016-07-06 | 观止云(北京)信息技术有限公司 | HLS hot standby method |
CN105872614A (en) * | 2016-04-12 | 2016-08-17 | 乐视控股(北京)有限公司 | Live stream switching method and device |
-
2016
- 2016-12-19 CN CN201611179975.0A patent/CN106656593B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060088063A1 (en) * | 2004-10-27 | 2006-04-27 | John Hartung | Network architecture for real time delivery of video over lossy networks from remote locations |
CN101068155A (en) * | 2006-09-20 | 2007-11-07 | 腾讯科技(深圳)有限公司 | Coordinate connection stream media direct broadcasting system and collection server thereof |
CN101729794A (en) * | 2008-10-11 | 2010-06-09 | 华为技术有限公司 | Method, device and system for realizing live broadcast and live broadcast pretreatment |
CN102523480A (en) * | 2011-12-08 | 2012-06-27 | 成都东方盛行电子有限责任公司 | Recording system and method based on active-standby and cache technology |
CN105744290A (en) * | 2016-01-27 | 2016-07-06 | 观止云(北京)信息技术有限公司 | HLS hot standby method |
CN105872614A (en) * | 2016-04-12 | 2016-08-17 | 乐视控股(北京)有限公司 | Live stream switching method and device |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107426021A (en) * | 2017-07-19 | 2017-12-01 | 北京锐安科技有限公司 | Construction method, device and the redundant system of redundant system |
CN109428864A (en) * | 2017-08-30 | 2019-03-05 | 武汉斗鱼网络科技有限公司 | Improve the method and device that nginx-rtmp draws streaming quality |
CN109428864B (en) * | 2017-08-30 | 2021-11-09 | 武汉斗鱼网络科技有限公司 | Method and device for improving quality of nginx-rtmp pull flow service |
CN107734350A (en) * | 2017-09-25 | 2018-02-23 | 上海幻电信息科技有限公司 | Live broadcast system and live broadcasting method |
CN108012161B (en) * | 2017-11-10 | 2021-10-01 | 广州华多网络科技有限公司 | Video live broadcast method, system and terminal equipment |
CN108012161A (en) * | 2017-11-10 | 2018-05-08 | 广州华多网络科技有限公司 | Net cast method, system and terminal device |
CN110602545A (en) * | 2019-09-26 | 2019-12-20 | 杭州米络星科技(集团)有限公司 | Distributed recording execution method for network live broadcast |
CN111031341A (en) * | 2019-11-20 | 2020-04-17 | 杭州当虹科技股份有限公司 | Heartbeat-based dual-computer hot standby method |
CN111026585A (en) * | 2019-12-05 | 2020-04-17 | 四川湖山电器股份有限公司 | Storage server hot standby switching method in recording and broadcasting system |
CN111026585B (en) * | 2019-12-05 | 2023-03-17 | 四川湖山电器股份有限公司 | Storage server hot standby switching method in recording and broadcasting system |
CN111083521A (en) * | 2019-12-27 | 2020-04-28 | 杭州当虹科技股份有限公司 | RTMP release main/standby fast switching method |
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 |
CN114422717A (en) * | 2021-12-06 | 2022-04-29 | 新奥特(北京)视频技术有限公司 | Cloud broadcasting, collecting and recording management control method and device, electronic equipment and storage medium |
CN114422717B (en) * | 2021-12-06 | 2024-01-05 | 新奥特(北京)视频技术有限公司 | Method and device for managing and controlling rebroadcast recording on cloud, electronic equipment and storage medium |
CN115314733A (en) * | 2022-08-05 | 2022-11-08 | 京东方智慧物联科技有限公司 | Data display system, method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106656593B (en) | 2020-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106656593A (en) | Streaming media live broadcast recording redundant hot-standby method and system | |
US6970939B2 (en) | Method and apparatus for large payload distribution in a network | |
JP5004975B2 (en) | Data storage system | |
US7272613B2 (en) | Method and system for managing distributed content and related metadata | |
US8266182B2 (en) | Transcoding for a distributed file system | |
US7941455B2 (en) | Notification for a distributed file system | |
EP1368948A2 (en) | Method and apparatus for large payload distribution in a network | |
JP2004070712A (en) | Data delivery method, data delivery system, split delivery data receiving method, split delivery data receiving device and split delivery data receiving program | |
JP2010531618A (en) | Real-time protocol stream migration | |
CN101808127A (en) | Data backup method, system and server | |
US20030154246A1 (en) | Server for storing files | |
CN102546776A (en) | Method for realizing off-line reading files in SAN (Storage Area Networking) shared file system | |
US20160182638A1 (en) | Cloud serving system and cloud serving method | |
US7788384B1 (en) | Virtual media network | |
CN1889418A (en) | Network storing method and network storing system | |
Qiang et al. | A Hyper-converged video management system based on object storage | |
KR100751075B1 (en) | The Remote Mirroring System using the Parallel Transfer Technique on NAS | |
JP2000316132A (en) | Video server |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |