CN106385398A - Real-time video transcoding task seamless migration method - Google Patents
Real-time video transcoding task seamless migration method Download PDFInfo
- Publication number
- CN106385398A CN106385398A CN201610018811.3A CN201610018811A CN106385398A CN 106385398 A CN106385398 A CN 106385398A CN 201610018811 A CN201610018811 A CN 201610018811A CN 106385398 A CN106385398 A CN 106385398A
- Authority
- CN
- China
- Prior art keywords
- node
- video
- pcr
- transcoding
- replaced
- 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
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- 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
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
-
- 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/14—Session management
- H04L67/148—Migration or transfer of sessions
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23106—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
Abstract
A real-time video transcoding task seamless migration method relates to the video transcoding field. The method comprises the following steps that a control server acquires a current PCR of an assigned program from a replaced node; a replacing node starts to cache an assigned video program content; the control server simultaneously sends a switching PCR to the replaced node and the replacing node, after the replaced node detects the switching PCR from the received video content and a video frame where the switching PCR is located is transcoded and sent, transcoding is stopped, and simultaneously, after detecting the switching PCR from the received video content, the replacing node starts to transcode from a next video frame of the video frame where the switching PCR is located. In the invention, video data sent by the replaced node and the replacing node is ensured to be connected seamlessly, the video data is not overlapped or lost, and a broken screen or mosaic is not generated.
Description
Technical field
The present invention relates to video code conversion field, the task immigration method of more particularly, to a kind of real-time video transcoding.
Background technology
Real-time video transcoding node is when carrying out transcoding it is often necessary to by the transcoding task immigration on a node
To on another one transcoding node.Such as certain transcoding node is likely to occur fault it is therefore desirable to migration is appointed
On another one of being engaged in node.
In the task immigration method of existing real-time video transcoding, as shown in figure 1, passing through remote back-office server
Send termination messages to being replaced node 2, give simultaneously and replace node 3 transmission beginning message.It is replaced node 2 He
Replace node 3 in task transition process, the data sending after transcoding must assure that do not have Data duplication also not have
Shortage of data, otherwise can lead to recipient video mosaic.
But, said method is difficult to ensure that A and B is to receive message simultaneously, even receive message simultaneously,
Have no idea to ensure to be replaced the frame of video being ready for sending after node 2 sends last frame video data, with replacement
Node 3 send one-frame video data be same one-frame video data, therefore, usually produce video flower screen or
Mosaic.
Content of the invention
It is an object of the invention to provide a kind of real-time video transcoding task seamless migration method, thus solve existing
There are foregoing problems present in technology.
To achieve these goals, the technical solution used in the present invention is as follows:Real-time video transcoding task is seamless
Moving method, comprises the following steps:
S1, controls server from current PC R being replaced node acquisition appointed program;
S2, replaces node and starts to cache described appointed program content;
S3, described control server sends switching PCR simultaneously and is replaced node and described replacement node to described,
Described be replaced after node detects described switching PCR from the video content receiving will switch PCR be located regard
Frequency frame transcoding stops transcoding after sending, and meanwhile, described replacement node detects from the video content receiving
After switching PCR, start transcoding from next frame of video of switching PCR place frame of video.
Specifically, step S1 is:
S11, described control server to described be replaced node and send described appointed program termination work is asked
Ask;
S12, described is replaced node respond request, and by described current PC R of described appointed program and average
Code check is sent to described control server.
Specifically, step S2 is:
S21, described control server to described replacement node send described appointed program is started data cached simultaneously
Prepare the request of transcoding;
S22, described replacement node respond request, described replacement node starts to cache described appointed program content,
And inform that appointed program described in described control server has begun to cache.
Specifically, the computing formula of switching PCR is:
Pcr_switch=pcr_current+t_cache × Npcr
Wherein, pcr_switch is described switching PCR, and pcr_current is described current PC R, t_cache
Can be with the time span of storage content for the described buffer area replacing node, Npcr falls for unit time loss
PCR counts.
Specifically, step S3 is:
S31, described control node notify described in be replaced node and described replacement node prepares switching, and send out
Described switching PCR is sent to be replaced node and described replacement node to described;
S32, described being replaced after node detects described switching PCR from the video content receiving will switch
PCR place frame of video transcoding stops transcoding after sending;
S33, after described replacement node detects switching PCR from the video content receiving, from switching PCR institute
Start transcoding in next frame of video of frame of video.
More specifically, step S32 is:
S321, described be replaced after node detects described switching PCR from the video content receiving, will contain
The frame of video transcoding of described switching PCR sends;
S322, last transcoded data frame number is sent to described control server by the described node that is replaced;
S323, the described node that is replaced stops transcoding.
More specifically, step S33 is:
S331, after described replacement node detects described switching PCR from the video content receiving, will contain institute
Frame of video before stating switching PCR all abandons;
S332, described replacement node starts transcoding and transmission from next frame of video of switching PCR place frame of video;
S333, the data frame number starting transcoding is sent to described control server by described replacement node.
The invention has the beneficial effects as follows:Present invention can assure that being replaced node and regarding that replacement node is sent
Frequency according to being to be seamlessly connected, video data will not overlapping or disappearance, it can thus be avoided node migration
When produce video flower screen or mosaic.
Brief description
Fig. 1 is that prior art by controlling server, the specified transcoding task on node A is switched on node B
Schematic diagram;
Fig. 2 is the transcoding node migration series figure of the present invention.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with accompanying drawing, to this
Invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to solve
Release the present invention, be not intended to limit the present invention.
As shown in Fig. 2 real-time video transcoding task seamless migration method, comprise the following steps:
S1, controls server 1 from current PC R being replaced node 2 acquisition appointed program;
S2, replaces node 3 and starts to cache described appointed program content;
S3, described control server 1 sends switching PCR simultaneously and is replaced node 2 and described replacement node to described
3, described being replaced after node detects described switching PCR from the video content receiving will switch PCR place
Frame of video transcoding stops transcoding after sending, and meanwhile, described replacement node detects from the video content receiving
To after switching PCR, start transcoding from next frame of video of switching PCR place frame of video.
S1 is specially:
S11, described control server 1 sends to described appointed program termination work to the described node 2 that is replaced
Request;
S12, described is replaced node 2 respond request, and by described current PC R of described appointed program and average
Code check is sent to described control server 1.
S2 is specially:
S21, described control server 1 to described replacement node 3 send described appointed program is started data cached
And prepare the request of transcoding;
S22, described replacement node 3 respond request, described replacement node 3 starts to cache described appointed program content,
And inform that appointed program described in described control server 1 has begun to cache.
The computing formula of described switching PCR is:
Pcr_switch=pcr_current+t_cache × Npcr
Wherein, pcr_switch is described switching PCR, and pcr_current is described current PC R, t_cache
Can be with the time span of storage content for the described buffer area replacing node 3, Npcr falls for unit time loss
PCR counts.
S3 is specially:
S31, described control node S notify described in be replaced node 2 and described replacement node 3 prepares switching, and
And the described switching PCR of transmission is replaced node 2 and described replacement node 3 to described;
S32, described being replaced after node detects described switching PCR from the video content receiving will switch
PCR place frame of video transcoding stops transcoding after sending;
S33, after described replacement node detects switching PCR from the video content receiving, from switching PCR institute
Start transcoding in next frame of video of frame of video.
S32 is specially:
S321, described be replaced after node 2 detects described switching PCR from the video content receiving, will
Frame of video transcoding containing described switching PCR sends;
S322, last transcoded data frame number is sent to described control server by the described node 2 that is replaced;
S323, the described node 2 that is replaced stops transcoding.
S33 is specially:
S331, after described replacement node 3 detects described switching PCR from the video content receiving, will contain
Frame of video before described switching PCR all abandons;
S332, described replacement node 3 starts transcoding and transmission from next frame of video of switching PCR place frame of video;
S333, the data frame number starting transcoding is sent to described control server 1 by described replacement node 3.
The ultimate principle of the present invention is:In live video stream (MPEG2) ts stream, for coding side and broadcasting
End is synchronous, periodically can insert a time stamp data in video data bag, be called PCR (Program Clock
Reference, program clock reference).Insertion time interval is less than 50 milliseconds, and PCR value represents relative time,
Therefore PCR value can constantly increase, and circulation time long enough (about 24 hours) just can restart.Transcoding section
Mesh is generally multicast services, and all packets of the therefore data flow of appointed program can be replaced node 2 He
Replace node 3 to simultaneously observe.That is, PCR value can be replaced node 2 and replace as demarcation line
Node 3 simultaneously using this value as demarcation line.Node A continues transcoding, until by containing the Frame specifying PCR
Transcoding stops transcoding after sending, and node B to starting transcoding containing the Frame specified after PCR and can send out
Send, be so achieved that and replace node A by transcoding task immigration to the purpose replaced on node 3.
As shown in Fig. 2 the main flow of an embodiment of the present invention is as follows:
1) server 1 is controlled to send to appointed program (program number is pid) termination work to being replaced node 2
Request;
2) it is replaced node 2 respond request, inform that the current pcr value of appointed program pid is designated as:
Pcr_current, the average bit rate bitrate of this program;
3) control server 1 to send to replacement node 3 appointed program (program number is pid) is started to cache number
According to and prepare the request of transcoding;
4) replace node 3 respond request, inform that the data buffer storage work of appointed program pid has begun to;
5) replace node 3 and start the content that any buffered program number is pid, circulation old interior of new content replacement
Hold, the time span that can deposit content of buffer area is:t_cache;
6) control node S notifies to be replaced node 2 and replace node 3 to prepare switching, and sends pcr_switch
To A and B,
Pcr_switch=pcr_current+t_cache*Npcr,
Wherein, pcr_switch as switches PCR, represents in A and B after reading current PC R, at this
Current PC R carries out task immigration, and Npcr represents that the pcr that the unit interval consumes counts, when through t_cache
Between after, node B has housed substantial amounts of data, be ready to switch.Node A and B is within the regular hour
The reading of the pcr obtaining from each packet is far smaller than necessarily pcr_switch, and this can ensure that A and B
Necessarily (can postpone in view of network delay and processing, obtaining the time has a millisecond rank in close time
Difference) obtain the packet for pcr_switch for the pcr value;
7) it is replaced node 2 code of not stall always, after pcr_swi tch is detected, just will contain
After the frame of video transcoding of pcr_switch packet sends, it is replaced node and last transcoded data frame number is sent out
Deliver to described control server 1, stop transcoding.
8) replace node 3 all to abandon the frame of video before packet containing pcr_switch, video afterwards
Data all carries out transcoding and transmission, replaces node 3 and the data frame number starting transcoding is sent to control service
Device 1.
9) it is replaced node 2 successful termination transmission work.
10) replace node 3 successfully to start to send work.
By using technique scheme disclosed by the invention, having obtained following beneficial effect:The present invention can
To guarantee to be replaced node 2 and to replace the video data that node 3 sent be to be seamlessly connected, video data is not
Meeting is overlapping or lacks, it can thus be avoided producing video during node migration to spend screen or mosaic.
The above is only the preferred embodiment of the present invention it is noted that common for the art
For technical staff, under the premise without departing from the principles of the invention, some improvements and modifications can also be made,
These improvements and modifications also should regard protection scope of the present invention.
Claims (7)
1. real-time video transcoding task seamless migration method is it is characterised in that comprise the following steps:
S1, controls server (1) from current PC R being replaced node (2) acquisition appointed program;
S2, replaces node (3) and starts to cache described appointed program content;
S3, described control server (1) sends switching PCR to the described node (2) and described of being replaced simultaneously
Replace node (3), described being replaced will after node detects described switching PCR from the video content receiving
Switching PCR place frame of video transcoding stops transcoding after sending, and meanwhile, described replacement node is from the video receiving
After switching PCR is detected in content, start transcoding from next frame of video of switching PCR place frame of video.
2. real-time video transcoding task seamless migration method according to claim 1 it is characterised in that
S1 is specially:
S11, described control server (1) sends to described appointed program eventually to the described node (2) that is replaced
The only request of work;
S12, described be replaced node (2) respond request, and by described current PC R of described appointed program and
Average bit rate is sent to described control server (1).
3. real-time video transcoding task seamless migration method according to claim 2 it is characterised in that
S2 is specially:
S21, described control server (1) sends to described replacement node (3) and described appointed program is started
Request that is data cached and preparing transcoding;
S22, described replacement node (3) respond request, described replacement node (3) starts to cache described specifying
Programme content, and inform that the described appointed program of described control server (1) has begun to cache.
4. real-time video transcoding task seamless migration method as claimed in any of claims 1 to 3,
It is characterized in that, the computing formula of described switching PCR is:
Pcr_switch=pcr_current+t_cache × Npcr
Wherein, pcr_switch is described switching PCR, and pcr_current is described current PC R, t_cache
Can be with the time span of storage content for the described buffer area replacing node (3), Npcr is unit time loss
The PCR falling counts.
5. real-time video transcoding task seamless migration method according to claim 4 it is characterised in that
S3 specifically,
S31, described control node (S) notify described in be replaced node (2) and described replace node (3)
Prepare switching, and send described switching PCR to be replaced node (2) and described replacement node (3) to described;
S32, described being replaced after node detects described switching PCR from the video content receiving will switch
PCR place frame of video transcoding stops transcoding after sending;
S33, after described replacement node detects switching PCR from the video content receiving, from switching PCR institute
Start transcoding in next frame of video of frame of video.
6. real-time video transcoding task seamless migration method according to claim 5 it is characterised in that
S32 specifically,
S321, described be replaced after node (2) detects described switching PCR from the video content receiving,
Frame of video transcoding containing described switching PCR is sent;
S322, last transcoded data frame number is sent to described control server by the described node (2) that is replaced;
S323, the described node (2) that is replaced stops transcoding.
7. real-time video transcoding task seamless migration method according to claim 5 it is characterised in that
S33 specifically,
S331, after described replacement node (3) detects described switching PCR from the video content receiving,
All will abandon containing the frame of video before described switching PCR;
S332, described replacement node (3) from next frame of video of switching PCR place frame of video start transcoding and
Send;
S333, the data frame number starting transcoding is sent to described control server by described replacement node (3)
(1).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610018811.3A CN106385398B (en) | 2016-01-12 | 2016-01-12 | Real-time video transcoding task seamless migration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610018811.3A CN106385398B (en) | 2016-01-12 | 2016-01-12 | Real-time video transcoding task seamless migration method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106385398A true CN106385398A (en) | 2017-02-08 |
CN106385398B CN106385398B (en) | 2019-05-14 |
Family
ID=57916553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610018811.3A Active CN106385398B (en) | 2016-01-12 | 2016-01-12 | Real-time video transcoding task seamless migration method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106385398B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112087509A (en) * | 2020-09-03 | 2020-12-15 | 哈尔滨工业大学 | Task migration method in edge computing platform |
CN113992949A (en) * | 2021-10-28 | 2022-01-28 | 广州华多网络科技有限公司 | Mixed flow service switching method and device, equipment, medium and product thereof |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310919A (en) * | 1998-09-16 | 2001-08-29 | Actv公司 | Compressed digital-data seamless video switching system |
CN1960450A (en) * | 2006-09-05 | 2007-05-09 | 中兴通讯股份有限公司 | Method and device for switching channels of multimedia broadcast |
US20080133715A1 (en) * | 2006-11-30 | 2008-06-05 | Sony Corporation | Content playback system, playback device, playback switching method, and program |
CN101355470A (en) * | 2007-07-26 | 2009-01-28 | 华为技术有限公司 | System, method and apparatus for implementing business continuity in household network circumstance |
CN103856806A (en) * | 2012-11-28 | 2014-06-11 | 腾讯科技(北京)有限公司 | Video stream switching method, device and system |
-
2016
- 2016-01-12 CN CN201610018811.3A patent/CN106385398B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1310919A (en) * | 1998-09-16 | 2001-08-29 | Actv公司 | Compressed digital-data seamless video switching system |
CN1960450A (en) * | 2006-09-05 | 2007-05-09 | 中兴通讯股份有限公司 | Method and device for switching channels of multimedia broadcast |
US20080133715A1 (en) * | 2006-11-30 | 2008-06-05 | Sony Corporation | Content playback system, playback device, playback switching method, and program |
CN101355470A (en) * | 2007-07-26 | 2009-01-28 | 华为技术有限公司 | System, method and apparatus for implementing business continuity in household network circumstance |
CN103856806A (en) * | 2012-11-28 | 2014-06-11 | 腾讯科技(北京)有限公司 | Video stream switching method, device and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112087509A (en) * | 2020-09-03 | 2020-12-15 | 哈尔滨工业大学 | Task migration method in edge computing platform |
CN112087509B (en) * | 2020-09-03 | 2022-04-19 | 哈尔滨工业大学 | Task migration method in edge computing platform |
CN113992949A (en) * | 2021-10-28 | 2022-01-28 | 广州华多网络科技有限公司 | Mixed flow service switching method and device, equipment, medium and product thereof |
CN113992949B (en) * | 2021-10-28 | 2023-04-28 | 广州华多网络科技有限公司 | Mixed flow service switching method and device, equipment, medium and product thereof |
Also Published As
Publication number | Publication date |
---|---|
CN106385398B (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2070325B1 (en) | Multimedia management | |
US10645447B2 (en) | Fast channel change method and server, and IPTV system | |
CN102742249B (en) | Method, system and device for synchronization of media streams | |
CN101588494B (en) | Method for processing media stream, communication system, and relative devices | |
CN101909196B (en) | Channel-switching handling method, system and related equipment | |
EP2675129B1 (en) | Streaming media service processing method | |
CN101715648A (en) | Method and arrangement for improved channel switching | |
EP3192267A1 (en) | Calculating and signaling segment availability times for segments of media data | |
CN106233735A (en) | Multicast Flows transmits | |
CA2480979A1 (en) | Fast channel change | |
JP2007049751A (en) | System and method for broadband digital broadcasting | |
US8145778B2 (en) | Method and system for transitioning streamed digital video content between stream servers in a digital video network | |
CN101448072A (en) | Video viewing method and system of Internet video monitoring system | |
KR101280132B1 (en) | Device and method for estimating the filling rate of the input buffers of clients of a real-time content distribution | |
CN106385398A (en) | Real-time video transcoding task seamless migration method | |
CN102970585A (en) | Method for quick channel switching of streaming media | |
CN101964716B (en) | Method, communication system and associated equipment for realizing stream services | |
CN102651823A (en) | Method and system capable of sending multicast joining request in advance during quick channel switching | |
CN103685314A (en) | Method for achieving seamless switching of unicast and multicast of stream media playing | |
CN115314643B (en) | Method, system, equipment and storage medium for realizing net switching | |
CN107147923B (en) | A kind of time shift order method | |
CN101521798A (en) | Method and device for switching play modes | |
CN101686384A (en) | Method, device and system for channel switching | |
CN105245946B (en) | Method, device and system for controlling flow of variable-code-rate media stream | |
CN105306970A (en) | Method and device for controlling stream media live broadcast transmitting speed |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200520 Address after: 523808 Room 301, building 2, No. 5, information road, Songshanhu Park, Dongguan City, Guangdong Province Patentee after: DONGGUAN QIBAOSHU EDUCATION TECHNOLOGY Co.,Ltd. Address before: 430000 Hubei Province, Wuhan city Hongshan District Luoyu Road No. 1037 Patentee before: Tu Xuping |
|
TR01 | Transfer of patent right |