CN109040830A - Prediction technique, switching method and the device of live play Caton - Google Patents

Prediction technique, switching method and the device of live play Caton Download PDF

Info

Publication number
CN109040830A
CN109040830A CN201710429396.5A CN201710429396A CN109040830A CN 109040830 A CN109040830 A CN 109040830A CN 201710429396 A CN201710429396 A CN 201710429396A CN 109040830 A CN109040830 A CN 109040830A
Authority
CN
China
Prior art keywords
video flowing
main video
frame rate
received frame
caton
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
Application number
CN201710429396.5A
Other languages
Chinese (zh)
Other versions
CN109040830B (en
Inventor
杨亮
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710429396.5A priority Critical patent/CN109040830B/en
Publication of CN109040830A publication Critical patent/CN109040830A/en
Application granted granted Critical
Publication of CN109040830B publication Critical patent/CN109040830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4383Accessing a communication channel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/61Network physical structure; Signal processing
    • H04N21/6106Network physical structure; Signal processing specially adapted to the downstream path of the transmission network
    • H04N21/6125Network physical structure; Signal processing specially adapted to the downstream path of the transmission network involving transmission via Internet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides prediction technique, switching method and the device of a kind of live play Caton.The present invention is by the variance based on the received frame rate of the main video flowing in unit time continuous within the current preset period compared with Caton threshold value, prediction plays Caton, and when predicting broadcasting Caton, pass through the current time stamp for obtaining the main video flowing being played on;Based on the variance of the received frame rate of each auxiliary video flowing of preset number within the current preset period, new main video flowing is obtained;Based on the new main video flowing and the current time stamp, switches at current time stamp described in the new main video flowing and play the new main video flowing, avoid broadcasting Caton.

Description

Prediction technique, switching method and the device of live play Caton
Technical field
The present invention relates to field of computer technology, prediction technique, switching more particularly, to a kind of live play Caton Method and device.
Background technique
With the development of computer technology and popularizing for network, more and more people's selections pass through network and watch live streaming section Mesh, for example, various competitive sports programs.
Currently, network direct broadcasting carries out the transmission of video resource typically merely by a network line.But due to network state Stability be difficult to ensure, usually will appear and cause due to Network status is bad to receive video resource in time during live streaming The phenomenon that playing Caton.In addition, impaired or loss of the video resource in transmission process, also results in broadcasting Caton.
Summary of the invention
The present invention provides prediction technique, switching method and the device of a kind of live play Caton, to overcome in the prior art Because playing Caton caused by Network status is bad or video resource is impaired or loss.
According to the first aspect of the invention, a kind of prediction technique of live play Caton is provided, this method comprises: step 11, obtain the received frame rate of the main video flowing in continuous unit time within the current preset period;Wherein, institute The received frame rate for stating main video flowing is the video image frame number of received main video flowing in the unit time;Step 12, based on described The received frame rate of the main video flowing in unit time obtains the main video flowing within the current preset period and receives The variance of frame per second;Step 13, if the variance of the received frame rate of main video flowing is greater than Caton threshold value within the current preset period, Think that the broadcasting of the video image frame of the received main video flowing within the current preset period will will appear Caton.
The first possible implementation in conjunction with first aspect present invention, in second of possible implementation, the step 12 further comprise: the received frame rate based on main video flowing described in the unit time obtains the current preset time The average value of the main video flowing received frame rate in section;Received frame rate based on main video flowing described in the unit time and The average value obtains the variance of the main video flowing received frame rate within the current preset period.
In conjunction with second of first aspect present invention possible implementation, in the third possible implementation, the step 12 corresponding calculation formula are as follows:
(m1+m2+…+mn)/n=u,
[(m1-u)2+(m2-u)2+…+(mn-u)2]/n=v,
Wherein, m1, m2... ..., mnFor the received frame rate of the main video flowing in unit time respectively;N is current preset The number for the unit time that period includes;U is the average value of the main video flowing received frame rate in the current preset period;v For the variance of main video flowing received frame rate described in the current preset period.
According to the second aspect of the invention, a kind of prediction meanss of live play Caton are provided.The device includes: receiving frame Rate obtains module, received frame rate variance obtains module and Caton prediction module;The received frame rate obtains module, for obtaining In the current preset period in continuous unit time the main video flowing received frame rate;Wherein, the main view frequency The received frame rate of stream is the video image frame number of received main video flowing in the unit time;The received frame rate variance obtains mould Block obtains within the current preset period for the received frame rate based on main video flowing described in the unit time The variance of the main video flowing received frame rate;The Caton prediction module, if for the main video flowing within the current preset period Received frame rate variance be greater than Caton threshold value, then it is assumed that the received main video flowing within the current preset period The broadcasting of video image frame will will appear Caton.
The prediction technique and device of live play Caton proposed by the present invention, by obtaining in the current preset period The received frame rate of the main video flowing in interior continuous unit time, based on main video flowing described in the unit time Received frame rate obtains the variance of the main video flowing received frame rate within the current preset period, if in current preset Between in section the variance of the received frame rate of main video flowing be greater than Caton threshold value, then it is assumed that it is received within the current preset period The broadcasting of the video image frame of the main video flowing will will appear Caton, so as to be taken in time accordingly according to the prediction result Wording avoids playing the appearance of Caton.
According to the third aspect of the invention we, a kind of computer program product is provided, the computer program product includes depositing The computer program in non-transient computer readable storage medium is stored up, the computer program includes program instruction, when described When program instruction is computer-executed, make the method for the computer execution as described in relation to the first aspect.
According to the fourth aspect of the invention, a kind of non-transient computer readable storage medium is provided, which is characterized in that described Non-transient computer readable storage medium stores computer instruction, and the computer instruction makes the computer execute such as first party Method described in face.
According to the fifth aspect of the invention, a kind of switching method of live play Caton is provided, this method comprises: step 21, if predicting main video flowing will occur playing Caton, obtain the current time stamp of the main video flowing being played on;Its In, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;Step 22, it is based on The variance of the received frame rate of each auxiliary video flowing of preset number, obtains new main video flowing within the current preset period; Step 23, it based on the new main video flowing and the current time stamp, switches to current described in the new main video flowing The new main video flowing is played at timestamp.
The first possible implementation in conjunction with fifth aspect present invention, in second of possible implementation, the step Further comprise if predicting main video flowing in 21 for appearance broadcasting Caton: obtaining continuous within the current preset period The received frame rate of the main video flowing in unit time;Wherein, the received frame rate of the main video flowing is inscribed for the unit time The video image frame number for the main video flowing received;Based on the received frame rate of main video flowing described in the unit time, obtain The variance of the main video flowing received frame rate in the current preset period;If the main video flowing within the current preset period The variance of received frame rate is greater than Caton threshold value, then it is assumed that the view of the received main video flowing within the current preset period The broadcasting of frequency picture frame will will appear Caton.
The first possible implementation in conjunction with fifth aspect present invention, in the third possible implementation, the step 22 further comprise: by the variance of received frame rate is the smallest in the auxiliary video flowing of preset number within the current preset period Auxiliary video flowing is as the new main video flowing.
According to the sixth aspect of the invention, a kind of switching device of live play Caton is provided.When the device includes: current Between stamp obtains module, new main video flowing obtains module and switching module;The current time stamp obtains module, if for predicting Main video flowing will occur playing Caton out, obtain the current time stamp of the main video flowing being played on;Wherein, the main view The received frame rate of frequency stream is the video image frame number of received main video flowing in the unit time;The new main video flowing obtains mould Block obtains new for the variance based on the received frame rate of each auxiliary video flowing of preset number within the current preset period Main video flowing;The switching module, for switching to described new based on the new main video flowing and the current time stamp Main video flowing described in the new main video flowing is played at current time stamp, and the new main video flowing is repeated above-mentioned Handoff procedure.
The switching method and device of live play Caton proposed by the present invention, by using multi-channel network line transmission video Resource, so that the available multiple video flowings in end are played, when main video flowing being played on is not sufficiently stable, may cause broadcasting card Immediately, the current video current time stamp of main video flowing being played on is obtained, and finds out video flowing from multiple auxiliary video flowings Most stable of auxiliary video flowing switches at the same video current time stamp of new main video flowing and continues as new main video flowing It plays, so as to avoid the broadcasting Caton phenomenon being likely to occur.
Detailed description of the invention
Fig. 1 is the prediction technique flow chart according to the live play Caton of the embodiment of the present invention;
Fig. 2 is the prediction technique flow chart according to the live play Caton of the embodiment of the present invention;
Fig. 3 is the prediction meanss schematic diagram according to the live play Caton of the embodiment of the present invention;
Fig. 4 is the structural block diagram according to the test equipment of the prediction meanss of the live play Caton of the embodiment of the present invention;
Fig. 5 is the switching method flow chart according to the live play Caton of the embodiment of the present invention;
Fig. 6 is the switching method flow chart according to the live play Caton of the embodiment of the present invention;
Fig. 7 is the switching device schematic diagram according to the live play Caton of the embodiment of the present invention;
Fig. 8 is the structural block diagram according to the test equipment of the switching device of the live play Caton of the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiments of the present invention will be described in further detail.Implement below Example is not intended to limit the scope of the invention for illustrating the present invention.
As shown in Figure 1, according to the first aspect of the invention, providing a kind of prediction technique of live play Caton, this method Include: step 11, obtains the receiving frame of the main video flowing in continuous unit time within the current preset period Rate;Wherein, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;Step 12, based on the received frame rate of main video flowing described in the unit time, obtain described within the current preset period The variance of main video flowing received frame rate;Step 13, if the variance of the received frame rate of main video flowing is big within the current preset period In Caton threshold value, then it is assumed that the broadcasting of the video image frame of the received main video flowing will within the current preset period It will appear Caton.
The prediction technique of live play Caton proposed by the present invention, it is continuous within the current preset period by obtaining Unit time in the main video flowing received frame rate, the receiving frame based on main video flowing described in the unit time Rate obtains the variance of the main video flowing received frame rate within the current preset period, if within the current preset period The variance of the received frame rate of main video flowing is greater than Caton threshold value, then it is assumed that the received master within the current preset period The broadcasting of the video image frame of video flowing will will appear Caton, so as to take corresponding wording to keep away in time according to the prediction result Exempt from the appearance of broadcasting Caton.
As a kind of alternative embodiment, the step 12 further comprises: based on the main view in the unit time The received frame rate of frequency stream, obtains the average value of the main video flowing received frame rate in the current preset period;Based on described The received frame rate and the average value of the main video flowing in unit time obtain described within the current preset period The variance of main video flowing received frame rate.
As a kind of alternative embodiment, the corresponding calculation formula of the step 12 is as follows:
(m1+m2+…+mn)/n=u,
[(m1-u)2+(m2-u)2+…+(mn-u)2]/n=v,
Wherein, m1, m2... ..., mnFor the received frame rate of the main video flowing in unit time respectively;N is current preset The number for the unit time that period includes;U is the average value of the main video flowing received frame rate in the current preset period;v For the variance of main video flowing received frame rate described in the current preset period.
Based on the method that above-mentioned Fig. 1 corresponding embodiment provides, the embodiment of the invention provides a kind of live play Catons Prediction technique.Referring to fig. 2, this method comprises:
101, obtain the receiving frame of the main video flowing in continuous unit time within the current preset period Rate;
102, based on the received frame rate of main video flowing described in the unit time, obtain the current preset period The average value of the interior main video flowing received frame rate;
103, based on the received frame rate and the average value of main video flowing described in the unit time, obtain described The variance of the main video flowing received frame rate in the current preset period;
104, if the variance of the received frame rate of main video flowing is greater than Caton threshold value within the current preset period, then it is assumed that The broadcasting of the video image frame of the received main video flowing will will appear Caton in the current preset period.
Since video flowing has the fixed frame per second i.e. video flowing interior video image frame number for including per second certain, then, if It plays the end interior video image frame number received per second and the frame per second of the video flowing is roughly equal, then it is believed that the video flowing stream Freely;If playing the end interior video image frame number received per second and the frame per second of the video flowing differing greatly, it is believed that the view Frequency stream Caton simultaneously can cause to play Caton.And if then the it is believed that video image frame number wave received within the unit time Dynamic smaller, then video flowing is smooth;If the video image frame number received within the unit time fluctuates larger, video flowing card ?.
From angle of statistics, it is believed that the video figure received in continuous unit time in preset time period As the variance of frame number shows the fluctuation size of the video image frame number received in the unit time within a preset period of time.It is i.e. square Difference is smaller, and the fluctuation of the video image frame number received in the unit time within a preset period of time is smaller, and video flowing is more smooth;Side Difference is bigger, and the fluctuation of the video image frame number received in the unit time within a preset period of time is bigger, and video flowing gets over Caton.Cause This, can be by the variance of the video image frame number of main video flowing in acquisition preset time period, to judge whether main video flowing blocks ?.For convenience, the video image frame number of main view frequency stream will be received in the unit time as the receiving frame of main video flowing Rate.
In the present embodiment, main video flowing can be the view originally from best one whole network line of Network status Frequency flows, and can also be to pass through to play the new main video flowing that Caton ameliorative way obtains.Preset time period and unit time can be with It is determined according to the actual situation, the present embodiment is not construed as limiting this.For example, preset time period is 1 minute, the unit time 1 Second.Same video resource is transmitted to according to 5 road network routes and plays end, then can receive at broadcasting end to 1 main view frequency Stream and 4 auxiliary video flowings, and the received frame rate of continuous 60 main video flowings in 1 second can be obtained in current 1 minute.Assuming that receiving Frame per second is followed successively by m1, m2... ..., m60.So, the received frame rate m based on this 60 main video flowings in 1 second1, m2... ..., m60, can Calculate the average value u of the received frame rate of main video flowing in current 1 minute, and based on the main view frequency in 1 second of 60 in current 1 minute The received frame rate m of stream1, m2... ..., m60With average value u, the variance v of the received frame rate of main video flowing in current 1 minute is calculated, Calculation formula is as follows:
(m1+m2+…+m60)/60=u,
[(m1-u)2+(m2-u)2+…+(m60-u)2]/60=v.
Caton threshold value is the upper limit of main video flowing stability range, according to the main video flowing described within the current preset period The variance of received frame rate and the comparison result of Caton threshold value, it can be determined that whether currently playing main video flowing is stable, Jin Ershi It is no to will lead to broadcasting Caton, to further determine whether the broadcasting Caton for needing to take measures to avoid to occur.It is even main The variance of the received frame rate of video flowing is greater than Caton threshold value, shows that currently playing main video flowing is unstable, may result in and broadcast Caton is put, needs to switch to other auxiliary video flowings and plays out;If the variance of the received frame rate of main video flowing is less than or equal to card Threshold value shows that currently playing main video flowing is stablized, cannot will lead to broadcasting Caton, can continue to play.Caton threshold value Value can empirically or experimentally statistical data be configured, and the present embodiment is it is not limited here.
As shown in figure 3, according to the second aspect of the invention, providing a kind of prediction meanss of live play Caton.The device It include: that received frame rate obtains module, received frame rate variance obtains module and Caton prediction module;The received frame rate obtains mould Block, for obtaining the received frame rate of the main video flowing in continuous unit time within the current preset period;Its In, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;The receiving frame Rate variance obtains module, for the received frame rate based on main video flowing described in the unit time, obtains described current The variance of the main video flowing received frame rate in preset time period;The Caton prediction module, if in the current preset time The variance of the received frame rate of main video flowing is greater than Caton threshold value in section, then it is assumed that the received institute within the current preset period The broadcasting for stating the video image frame of main video flowing will will appear Caton.
The prediction meanss of live play Caton proposed by the present invention obtain module by received frame rate, and acquisition is worked as described In preceding preset time period in continuous unit time the main video flowing received frame rate, pass through received frame rate variance obtain mould Block is obtained described within the current preset period based on the received frame rate of main video flowing described in the unit time The variance of main video flowing received frame rate, by Caton prediction module, if within the current preset period main video flowing receiving frame The variance of rate is greater than Caton threshold value, then it is assumed that the video image of the received main video flowing within the current preset period The broadcasting of frame will will appear Caton, so as to take corresponding wording to avoid playing going out for Caton in time according to the prediction result It is existing.
As a kind of alternative embodiment, the received frame rate variance obtains module, when being specifically used for based on the constituent parts The received frame rate of the interior main video flowing obtains being averaged for the main video flowing received frame rate in the current preset period Value;Based on the received frame rate and the average value of main video flowing described in the unit time, obtain in the current preset The variance of the main video flowing received frame rate in period.
As a kind of alternative embodiment, the received frame rate variance obtains module and is specifically used for according to following calculation formula meter Calculate the variance of the main video flowing received frame rate in the current preset period:
(m1+m2+…+mn)/n=u,
[(m1-u)2+(m2-u)2+…+(mn-u)2]/n=v,
Wherein, m1, m2... ..., mnFor the received frame rate of the main video flowing in unit time respectively;N is current preset The number for the unit time that period includes;U is the average value of the main video flowing received frame rate in the current preset period;v For the variance of main video flowing received frame rate described in the current preset period.
Fig. 4 is the structural block diagram for showing the test equipment of prediction meanss of live play Caton of the present invention.
Referring to Fig. 4, the test equipment of the display device, comprising: processor (processor) 401, memory (memory) 402, communication interface (Communications Interface) 403 and bus 404;
Wherein, the processor 401, memory 402, communication interface 403 complete mutual lead to by the bus 404 Letter;
The communication interface 403 is for the information transmission between the test equipment and the communication equipment of display device;
The processor 401 is used to call the program instruction in the memory 402, to execute above-mentioned each method embodiment Provided method, for example, obtain within the current preset period in continuous unit time the main view frequently The received frame rate of stream;Obtain the variance of the main video flowing received frame rate within the current preset period.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, obtains described current pre- If in the period in continuous unit time the main video flowing received frame rate;It obtains within the current preset period The variance of the main video flowing received frame rate.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example It such as include: the received frame rate for obtaining the main video flowing in continuous unit time within the current preset period;It obtains Take the variance of the main video flowing received frame rate within the current preset period.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as the test equipment of prediction meanss of live play Caton described above are only schematical, Described in as illustrated by the separation member unit may or may not be physically separated, portion shown as a unit Part may or may not be physical unit, it can and it is in one place, or may be distributed over multiple network lists In member.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.This Field those of ordinary skill is without paying creative labor, it can understands and implements.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
As shown in figure 5, according to the fifth aspect of the invention, providing a kind of switching method of live play Caton, this method Include: step 21, if predicting main video flowing will occur playing Caton, obtain the main video flowing being played on it is current when Between stab;Wherein, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;Step 22, based on the variance of the received frame rate of each auxiliary video flowing of preset number within the current preset period, obtain new master Video flowing;Step 23, based on the new main video flowing and the current time stamp, institute in the new main video flowing is switched to It states and plays the new main video flowing at current time stamp.
The switching method of live play Caton proposed by the present invention, by using multi-channel network line transmission video resource, So that the available multiple video flowings in end are played, when main video flowing being played on is not sufficiently stable, may cause broadcasting Caton, The current video current time stamp of main video flowing being played on is obtained, and it is most stable from multiple auxiliary video flowings to find out video flowing Auxiliary video flowing as new main video flowing, switch at the same video current time stamp of new main video flowing and continue to play, So as to avoid the broadcasting Caton phenomenon being likely to occur.
As a kind of alternative embodiment, further wrapped if predicting main video flowing in the step 21 and broadcasting Caton will occur It includes: obtaining the received frame rate of the main video flowing in continuous unit time within the current preset period;Wherein, institute The received frame rate for stating main video flowing is the video image frame number of received main video flowing in the unit time;When based on the constituent parts The received frame rate of the interior main video flowing obtains the side of the main video flowing received frame rate within the current preset period Difference;If the variance of the received frame rate of main video flowing is greater than Caton threshold value within the current preset period, then it is assumed that described current The broadcasting of the video image frame of the received main video flowing will will appear Caton in preset time period.
As a kind of alternative embodiment, the step 22 further comprises: will preset within the current preset period The smallest auxiliary video flowing of the variance of received frame rate is as the new main video flowing in the auxiliary video flowing of number.
Based on the method that above-mentioned Fig. 5 corresponding embodiment provides, the embodiment of the invention provides a kind of live play Catons Switching method.Referring to Fig. 6, this method comprises:
201, if predicting main video flowing will occur playing Caton, obtain the main video flowing being played on it is current when Between stab;
202, obtain the variance of the received frame rate of the auxiliary video flowing of each preset number within the current preset period;
203, based on the variance of the received frame rate of each auxiliary video flowing of preset number within the current preset period, obtain Take new main video flowing;
204, based on the new main video flowing and the current time stamp, switch to described in the new main video flowing The new main video flowing is played at current time stamp.
Wherein, 201, if predicting main video flowing will occur playing Caton, obtain the main video flowing being played on Current time stamp.
The present embodiment further includes broadcasting Caton whether will occur to main video flowing to predict before step 201, is predicted Method includes but is not limited to: the prediction technique that Fig. 2 corresponding embodiment proposes.Current time stamp is the currently playing position of main video flowing It sets, it is associated with the video image frame of video flowing, it can be in subsequent Switch Video stream for being positioned.
When predicting main video flowing will occur playing Caton, need to switch to obtained from other auxiliary video flowings it is new Main view frequency stream plays out.In order to realize that playing resource switches to new main video flowing from main video flowing being played on, need Video image frame being played on is positioned.In the present embodiment, positioning method including but not limited to: based on being playing The current time stamp of main video flowing positioned.I.e. when the variance of the received frame rate of main video flowing being played on is greater than Caton When threshold value, the current time stamp of main video flowing being played on is immediately obtained, to look in switching according to the current time stamp Into new main video flowing, corresponding video image frame continues to play.
In addition, in the present embodiment, for the continuity for ensuring broadcasting pictures, taking and receiving the master being played on After the video image frame of video flowing, the video image frame is played by prefixed time interval.Pass through the prefixed time interval that is delayed After play the video image frame, can complete before playing the video image frame based on the stability to main video flowing Judgement selects video image frame described in more stable video render and carries out video flowing switching, to ensure that broadcasting pictures Continuity.
Wherein, 202, obtain the side of the received frame rate of the auxiliary video flowing of each preset number within the current preset period Difference.
When predicting main video flowing for occurring playing Caton, need to obtain video flowing from the auxiliary video flowing of preset number Most stable of auxiliary video stream, for being played out after switching.Pass through main view in prediction technique based on live play Caton The variance of frequency stream received frame rate is equally existed using each auxiliary video flowing of calculating in this step to measure the stability of main video flowing The method of the variance of received frame rate in preset time period measures the stability of each auxiliary video flowing.Each auxiliary video flowing is pre- If main video flowing in the prediction technique of the circular of the variance of the received frame rate in the period and live play Caton The calculation method of the variance of received frame rate is similar, no longer repeats herein.
Wherein, 203, the side based on the received frame rate of each auxiliary video flowing of preset number within the current preset period Difference obtains new main video flowing.
In the present embodiment, the received frame rate based on each auxiliary video flowing of preset number within the current preset period Variance, obtain the method for new main video flowing including but not limited to: using the smallest auxiliary video flowing of the variance of received frame rate as New main video flowing, i.e., using the most stable of video flowing of video flowing as new main video flowing.Due to receiving frame in preset time period The variance of rate is bigger, and video image frame number is bigger around the variation of the average value of video image frame number, and video flowing is more unstable It is fixed;On the contrary, the variance of video image frame number is smaller, change of the video image frame number around the average value of video image frame number Change smaller, video flowing is more stable.It therefore, can be by video image frame after the variance for obtaining each auxiliary video flowing video image frame number The smallest auxiliary video flowing of the variance of number is as new main video flowing, i.e., using the most stable of video flowing of video flowing as new main view Frequency flows.
Wherein, 204, based on the new main video flowing and the current time stamp, switch to the new main video flowing Described in the new main video flowing is played at current time stamp.
After obtaining new main video flowing and current time stamp, need to carry out the switching of video flowing.Due to current time stamp It is associated with the video image frame of video flowing for the current play position of main video flowing, therefore, when switching, in new main view frequency It is positioned in stream according to the current time stamp of acquisition, it is ensured that video image frame and former main view at new main video flowing positioning Video image frame at frequency stream current time stamp position is identical, to guarantee that switching to new main view frequency from former main video flowing flows into The continuity of picture when row plays.
As shown in fig. 7, according to the sixth aspect of the invention, providing a kind of switching device of live play Caton.The device It include: that current time stamp obtains module, new main video flowing obtains module and switching module;The current time stamp obtains mould Block obtains the current time stamp of the main video flowing being played on if will occur playing Caton for predicting main video flowing; Wherein, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;It is described new Main video flowing obtains module, for the received frame rate based on each auxiliary video flowing of preset number within the current preset period Variance, obtain new main video flowing;The switching module, for based on the new main video flowing and the current time Stamp switches at current time stamp described in the new main video flowing and plays the new main video flowing, and to described new Main video flowing repeats above-mentioned handoff procedure.
The switching device of live play Caton proposed by the present invention, by using multi-channel network line transmission video resource, So that playing the available multiple video flowings in end, module is obtained by current time stamp, when main video flowing being played on is inadequate When stablizing, may cause broadcasting Caton, the current video current time stamp of main video flowing being played on is obtained, new master is passed through Video flowing obtains module, and the most stable of auxiliary video flowing of video flowing is found out from multiple auxiliary video flowings as new main video flowing, is led to Switching module is crossed, switches at the same video current time stamp of new main video flowing and continues to play, so as to avoid that may go out Existing broadcasting Caton phenomenon.
As a kind of alternative embodiment, the current time stamp obtains module also particularly useful for acquisition in the current preset In period in continuous unit time the main video flowing received frame rate;Wherein, the received frame rate of the main video flowing For the video image frame number of main video flowing received in the unit time;It is connect based on the main video flowing in the unit time Frame per second is received, the variance of the main video flowing received frame rate within the current preset period is obtained;If in the current preset time The variance of the received frame rate of main video flowing is greater than Caton threshold value in section, then it is assumed that the received institute within the current preset period The broadcasting for stating the video image frame of main video flowing will will appear Caton.
As a kind of alternative embodiment, the new main video flowing acquisition module is specifically used for will be in the current preset Between in section in the auxiliary video flowing of preset number the smallest auxiliary video flowing of variance of received frame rate as the new main video flowing.
Fig. 8 is the structural block diagram for showing the test equipment of switching device of live play Caton of the present invention.
Referring to Fig. 8, the test equipment of the display device, comprising: processor (processor) 801, memory (memory) 802, communication interface (Communications Interface) 803 and bus 804;
Wherein, the processor 801, memory 802, communication interface 803 complete mutual lead to by the bus 804 Letter;
The communication interface 803 is for the information transmission between the test equipment and the communication equipment of display device;
The processor 801 is used to call the program instruction in the memory 802, to execute above-mentioned each method embodiment Provided method, for example, obtain the current time stamp of the main video flowing being played on;Based on described current pre- If the variance of the received frame rate of each auxiliary video flowing of preset number, obtains new main video flowing in the period.
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include program instruction, when described program instruction is calculated When machine executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, obtains institute being played on State the current time stamp of main video flowing;Receiving frame based on each auxiliary video flowing of preset number within the current preset period The variance of rate obtains new main video flowing.
The present embodiment provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage medium Computer instruction is stored, the computer instruction makes the computer execute method provided by above-mentioned each method embodiment, example Current time stamp included: main video flowing as described in acquisition is being played on;Based on default within the current preset period The variance of the received frame rate of each auxiliary video flowing of number, obtains new main video flowing.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The embodiments such as the test equipment of switching device of live play Caton described above are only schematical, Described in as illustrated by the separation member unit may or may not be physically separated, portion shown as a unit Part may or may not be physical unit, it can and it is in one place, or may be distributed over multiple network lists In member.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.This Field those of ordinary skill is without paying creative labor, it can understands and implements.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation Method described in certain parts of example or embodiment.
Finally, method of the invention is only preferable embodiment, it is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of prediction technique of live play Caton characterized by comprising
Step 11, the receiving frame of the main video flowing in continuous unit time within the current preset period is obtained Rate;Wherein, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;
Step 12, the received frame rate based on main video flowing described in the unit time was obtained in the current preset time The variance of the main video flowing received frame rate in section;
Step 13, if the variance of the received frame rate of main video flowing is greater than Caton threshold value within the current preset period, then it is assumed that The broadcasting of the video image frame of the received main video flowing will will appear Caton in the current preset period.
2. the method according to claim 1, wherein the step 12 further comprises:
Based on the received frame rate of main video flowing described in the unit time, the master in the current preset period is obtained The average value of video flowing received frame rate;
Based on the received frame rate and the average value of main video flowing described in the unit time, obtain in the current preset The variance of the main video flowing received frame rate in period.
3. according to the method described in claim 2, it is characterized in that, the corresponding calculation formula of the step 12 is as follows:
(m1+m2+…+mn)/n=u,
(m1-u)2+(m2-u)2+…+(mn-u)2/ n=v,
Wherein, m1, m2... ..., mnFor the received frame rate of the main video flowing in unit time respectively;N is the current preset time The number for the unit time that section includes;U is the average value of the main video flowing received frame rate in the current preset period;V is to work as The variance of the main video flowing received frame rate in preceding preset time period.
4. a kind of switching method of live play Caton characterized by comprising
Step 21, if predicting main video flowing will occur playing Caton, obtain the main video flowing being played on it is current when Between stab;Wherein, the received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;
Step 22, the variance based on the received frame rate of each auxiliary video flowing of preset number within the current preset period, is obtained Take new main video flowing;
Step 23, it based on the new main video flowing and the current time stamp, switches to described in the new main video flowing The new main video flowing is played at current time stamp.
5. according to the method described in claim 4, it is characterized in that, if predicting main video flowing in the step 21 will broadcast Putting Caton further comprises:
Obtain the received frame rate of the main video flowing in continuous unit time within the current preset period;Wherein, The received frame rate of the main video flowing is the video image frame number of received main video flowing in the unit time;
Based on the received frame rate of main video flowing described in the unit time, obtain described within the current preset period The variance of main video flowing received frame rate;
If the variance of the received frame rate of main video flowing is greater than Caton threshold value within the current preset period, then it is assumed that described current The broadcasting of the video image frame of the received main video flowing will will appear Caton in preset time period.
6. according to the method described in claim 4, it is characterized in that, the step 22 further comprises: will be described current pre- If in the period in the auxiliary video flowing of preset number the smallest auxiliary video flowing of the variance of received frame rate as the new main view frequency Stream.
7. a kind of prediction meanss of live play Caton characterized by comprising received frame rate obtains module, received frame rate side Difference obtains module and Caton prediction module;
The received frame rate obtains module, is used to obtain described in continuous unit time within the current preset period The received frame rate of main video flowing;Wherein, the received frame rate of the main video flowing is the view of received main video flowing in the unit time Frequency number of image frames;
The received frame rate variance obtains module, for the received frame rate based on main video flowing described in the unit time, Obtain the variance of the main video flowing received frame rate within the current preset period;
The Caton prediction module, if the variance of the received frame rate for video flowing main within the current preset period is greater than Caton Threshold value, then it is assumed that the broadcasting of the video image frame of the received main video flowing will will appear within the current preset period Caton.
8. a kind of switching device of live play Caton characterized by comprising current time stamp obtains module, new main view Frequency stream obtains module and switching module;
The current time stamp obtains module, if will occur playing Caton for predicting main video flowing, obtains being played on The current time stamp of the main video flowing;Wherein, the received frame rate of the main video flowing is received main view frequency in the unit time The video image frame number of stream;
The new main video flowing obtains module, for each auxiliary video based on the preset number within the current preset period The variance of the received frame rate of stream obtains new main video flowing;
The switching module, for switching to the new main view based on the new main video flowing and the current time stamp The new main video flowing is played at current time stamp described in frequency stream, and above-mentioned switched is repeated to the new main video flowing Journey.
9. a kind of computer program product, which is characterized in that the computer program product includes being stored in non-transient computer Computer program on readable storage medium storing program for executing, the computer program include program instruction, when described program is instructed by computer When execution, the computer is made to execute the method as described in claims 1 to 3 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claims 1 to 3 is any.
CN201710429396.5A 2017-06-08 2017-06-08 Live broadcast pause prediction method, switching method and device Active CN109040830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710429396.5A CN109040830B (en) 2017-06-08 2017-06-08 Live broadcast pause prediction method, switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710429396.5A CN109040830B (en) 2017-06-08 2017-06-08 Live broadcast pause prediction method, switching method and device

Publications (2)

Publication Number Publication Date
CN109040830A true CN109040830A (en) 2018-12-18
CN109040830B CN109040830B (en) 2020-07-31

Family

ID=64628504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710429396.5A Active CN109040830B (en) 2017-06-08 2017-06-08 Live broadcast pause prediction method, switching method and device

Country Status (1)

Country Link
CN (1) CN109040830B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149546A (en) * 2019-04-15 2019-08-20 广州虎牙信息科技有限公司 Mobile terminal and its video shielded based on record mend frame method, computer storage medium
CN110366035A (en) * 2019-07-19 2019-10-22 广州酷狗计算机科技有限公司 Frame rate control method, device, computer equipment and computer readable storage medium
CN111404882A (en) * 2020-03-02 2020-07-10 广州华多网络科技有限公司 Media stream processing method and device
CN114025204A (en) * 2021-11-08 2022-02-08 北京量子之歌科技有限公司 Live video switching method, device, equipment and storage medium
CN116781963A (en) * 2023-08-16 2023-09-19 浙江印象软件有限公司 Live broadcast definition switching anti-blocking method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130057705A1 (en) * 2011-09-02 2013-03-07 Verizon Patent And Licensing Inc. Video quality scoring
CN103856806A (en) * 2012-11-28 2014-06-11 腾讯科技(北京)有限公司 Video stream switching method, device and system
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
CN105100675A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Terminal video communication quality adjusting method and system
CN105430532A (en) * 2015-11-18 2016-03-23 南京创维信息技术研究院有限公司 Control method and system for adaptive adjustment of video data transmission
CN106656629A (en) * 2017-01-13 2017-05-10 南京理工大学 Prediction method for stream media playing quality

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130057705A1 (en) * 2011-09-02 2013-03-07 Verizon Patent And Licensing Inc. Video quality scoring
CN103856806A (en) * 2012-11-28 2014-06-11 腾讯科技(北京)有限公司 Video stream switching method, device and system
CN105100830A (en) * 2015-07-23 2015-11-25 中国科学院声学研究所 Rapid switching video source apparatus based on video aggregation service and method thereof
CN105100675A (en) * 2015-09-11 2015-11-25 Tcl集团股份有限公司 Terminal video communication quality adjusting method and system
CN105430532A (en) * 2015-11-18 2016-03-23 南京创维信息技术研究院有限公司 Control method and system for adaptive adjustment of video data transmission
CN106656629A (en) * 2017-01-13 2017-05-10 南京理工大学 Prediction method for stream media playing quality

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110149546A (en) * 2019-04-15 2019-08-20 广州虎牙信息科技有限公司 Mobile terminal and its video shielded based on record mend frame method, computer storage medium
CN110366035A (en) * 2019-07-19 2019-10-22 广州酷狗计算机科技有限公司 Frame rate control method, device, computer equipment and computer readable storage medium
CN110366035B (en) * 2019-07-19 2021-08-24 广州酷狗计算机科技有限公司 Frame rate control method, apparatus, computer device and computer-readable storage medium
CN111404882A (en) * 2020-03-02 2020-07-10 广州华多网络科技有限公司 Media stream processing method and device
CN111404882B (en) * 2020-03-02 2022-03-25 广州华多网络科技有限公司 Media stream processing method and device
CN114025204A (en) * 2021-11-08 2022-02-08 北京量子之歌科技有限公司 Live video switching method, device, equipment and storage medium
CN114025204B (en) * 2021-11-08 2024-02-13 北京量子之歌科技有限公司 Live video switching method, device, equipment and storage medium
CN116781963A (en) * 2023-08-16 2023-09-19 浙江印象软件有限公司 Live broadcast definition switching anti-blocking method and device
CN116781963B (en) * 2023-08-16 2024-01-12 浙江印象软件有限公司 Live broadcast definition switching anti-blocking method and device

Also Published As

Publication number Publication date
CN109040830B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN109040830A (en) Prediction technique, switching method and the device of live play Caton
CN106454395B (en) It is used to adaptively provide the method and device of multi code Rate of Chinese character Streaming Media in the server
CN104967884B (en) A kind of bitstreams switching method and apparatus
US9167007B2 (en) Stream complexity mapping
CN102137248B (en) Video resolution switching method and device, terminal and switching system
CN107071503B (en) The method, apparatus of net cast and live streaming connect streaming server
CN104581388B (en) The processing method of broadcast state, apparatus and system
CN108632674A (en) A kind of playback method and client of panoramic video
CN104822008B (en) video synchronization method and device
US10231005B2 (en) Operation instructing method and apparatus for remote controller of intelligent television
CN104639951B (en) The pumping frame processing method and device of video code flow
CN108924582A (en) Video recording method, computer readable storage medium and recording and broadcasting system
CN108881894B (en) VR multimedia experience quality determination method and device
CN108769824A (en) A kind of video mixed flow method, apparatus, system, equipment and medium
CN103747348B (en) The switching method of mobile terminal, set top box and TV programme
CN113282260A (en) Screen projection control method and device, intelligent terminal and computer readable storage medium
CN103385000A (en) Method and apparatus for measuring video quality
CN108310766A (en) Data processing method and device, storage medium, processor and terminal
CN108810578A (en) Advertisement cut-in method and system applied to user terminal
CN109862403A (en) Self-adaption code rate switching method, device, electronic equipment and storage medium
CN104780419A (en) Seamless switchover system and method of application scene and channel
CN114173160B (en) Live broadcast push flow method and device
CN105872853A (en) Polling control method, device and system
CN109218817A (en) A kind of method and apparatus showing virtual present prompting message
CN105578073B (en) A kind of video monitoring picture display process and device

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