CN108712299A - A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay - Google Patents
A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay Download PDFInfo
- Publication number
- CN108712299A CN108712299A CN201810214127.1A CN201810214127A CN108712299A CN 108712299 A CN108712299 A CN 108712299A CN 201810214127 A CN201810214127 A CN 201810214127A CN 108712299 A CN108712299 A CN 108712299A
- Authority
- CN
- China
- Prior art keywords
- network time
- plug
- time
- flow
- live streaming
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- 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
Abstract
The present invention provides a kind of method monitoring live streaming delay at plug-flow end, the method includes:The plug-flow end synchronizing network time;Plug-flow timestamp is added to live data using synchronous network time.The method being delayed being broadcast live in the monitoring of broadcasting end the present invention also provides a kind of, the method includes:Play the end synchronizing network time;Live streaming delay is determined using current network time plug-flow timestamp corresponding with the live data played.The present invention can accurately obtain each live streaming delay for playing end.
Description
【Technical field】
The present invention relates to Internet technical field more particularly to a kind of method, apparatus, equipment and the meters of monitoring live streaming delay
Calculation machine storage medium.
【Background technology】
The measuring and calculating of live streaming delay at present generally carries out in the following manner:It is placed in given area and plays test point, by pushing away
Stream end, which is simulated to the broadcasting end, pushes a data stream, plays end when playing the data stream, broadcasting for frame is corresponded to by difference
The system time for putting the system time and plug-flow end at end obtains the live streaming delay time under this area's corresponding network situation.Due to
Plug-flow end and the system time played set by end can have a difference, therefore when the prior art can cause acquired live streaming to be delayed
Between accuracy it is inadequate.And since the data flow of live streaming is needed through content distributing network (Content Delivery
Network, CDN) it is transmitted, and the corresponding CDN delays such as different regional, different network operators are different, and can not
It is placed in each area and plays test point, therefore the measuring method of existing analog live broadcasting can only reflect specific live data streams
Live streaming delay under the Network status of the particular network operator of given area, and when can not reflect formal live streaming the whole network it is straight
Broadcast delay situation.
【Invention content】
In view of this, the present invention provides a kind of method, apparatus of monitoring live streaming delay, equipment and computer storages to be situated between
Matter, for accurately obtaining each live streaming delay for playing end.
The present invention is to provide a kind of monitored at plug-flow end for technical scheme applied to solve the technical problem and delay is broadcast live
Method, the method includes:The plug-flow end synchronizing network time;Using synchronous network time is added to live data the plug-flow time
Stamp.
According to one preferred embodiment of the present invention, the plug-flow end synchronizing network time includes:Plug-flow end utilizes network time
Agreement NTP synchronization modules obtain network time from NTP network time servers;Network is carried out using acquired network time
The synchronization of time.
According to one preferred embodiment of the present invention, described that plug-flow timestamp is added to live data using synchronous network time
Including:Plug-flow timestamp is added to every frame image in live data;Or the image of predetermined interval in live data is added
Timestamp.
The present invention is to provide a kind of monitored at broadcasting end for technical scheme applied to solve the technical problem and delay is broadcast live
Method, the method includes:Play the end synchronizing network time;It is corresponding with the live data played using current network time
Plug-flow timestamp determines live streaming delay.
According to one preferred embodiment of the present invention, the broadcasting end synchronizing network time includes:It plays end and utilizes network time
Agreement NTP synchronization modules obtain network time from NTP network time servers;Network is carried out using acquired network time
The synchronization of time.
According to one preferred embodiment of the present invention, described to be pushed away using current network time is corresponding with the live data played
Stream timestamp determines that live streaming delay includes:Determine the time difference between the current network time and the plug-flow timestamp;
Live streaming delay is determined using the time difference.
According to one preferred embodiment of the present invention, between the determination current network time and the plug-flow timestamp
Time difference includes:Count the difference between the current network time and the plug-flow timestamp in preset time range;Root
Result determines the time difference according to statistics.
According to one preferred embodiment of the present invention, described to determine that the time difference includes according to statistical result:It will be default
The maximum value of time difference is determined as between the two between the current network time and the plug-flow timestamp in time range
Time difference;Or it will time difference between the current network time and the plug-flow timestamp in preset time range
Average value be determined as time difference between the two.
According to one preferred embodiment of the present invention, the method further includes:Play the attribute information that end obtains terminal device;It will
The live streaming delay and the attribute information are sent to direct broadcast server, for determining the live streaming delay situation of the whole network.
According to one preferred embodiment of the present invention, the attribute information of the terminal device includes:The geographical location of terminal device
At least one of network operator used in information, terminal device.
The present invention is to provide a kind of monitored at plug-flow end for technical scheme applied to solve the technical problem and delay is broadcast live
Device, described device include:First synchronization unit is used for the synchronizing network time;First processing units, for utilizing synchronous net
The network time adds plug-flow timestamp to live data.
According to one preferred embodiment of the present invention, first synchronization unit is specific to execute in the synchronizing network time:It utilizes
Network Time Protocol NTP synchronization modules obtain network time from NTP network time servers;Utilize acquired network time
Carry out the synchronization of network time.
According to one preferred embodiment of the present invention, the first processing units using synchronous network time to live data
It is specific to execute when adding plug-flow timestamp:Plug-flow timestamp is added to every frame image in live data;Or to live data
The image of middle predetermined interval adds timestamp.
The present invention is to provide a kind of monitored at broadcasting end for technical scheme applied to solve the technical problem and delay is broadcast live
Device, described device include:Second synchronization unit is used for the synchronizing network time;Second processing unit, for utilizing current network
Time plug-flow timestamp corresponding with the live data played determines live streaming delay.
According to one preferred embodiment of the present invention, second synchronization unit is specific to execute in the synchronizing network time:It utilizes
Network Time Protocol NTP synchronization modules obtain network time from NTP network time servers;Utilize acquired network time
Carry out the synchronization of network time.
According to one preferred embodiment of the present invention, the second processing unit using current network time and played it is straight
It is specific to execute when the corresponding plug-flow timestamp of multicast data determines live streaming delay:Determine the current network time and the plug-flow
Time difference between timestamp;Live streaming delay is determined using the time difference.
According to one preferred embodiment of the present invention, the second processing unit is determining the current network time and described is pushing away
It is specific to execute when flowing the time difference between timestamp:It the current network time and described is pushed away in statistics preset time range
Flow the difference between timestamp;The time difference is determined according to statistical result.
According to one preferred embodiment of the present invention, the second processing unit is additionally operable to execute:Obtain the attribute of terminal device
Information;Live streaming delay and the attribute information are sent to direct broadcast server, for determining the live streaming delay shape of the whole network
Condition.
As can be seen from the above technical solutions, the present invention by plug-flow end with play end synchronous identical network time,
Each live streaming delay for playing end can accurately be obtained.
【Description of the drawings】
Fig. 1 is the schematic diagram of BroadVision WEBTV in the prior art;
Fig. 2 is the method flow diagram in the monitoring live streaming delay of plug-flow end that one embodiment of the invention provides;
Fig. 3 is the method flow diagram in the monitoring live streaming delay of broadcasting end that one embodiment of the invention provides;
Fig. 4 is the structure drawing of device in the monitoring live streaming delay of plug-flow end that one embodiment of the invention provides;
Fig. 5 is the structure drawing of device in the monitoring live streaming delay of broadcasting end that one embodiment of the invention provides;
Fig. 6 is the block diagram for the computer system/server that one embodiment of the invention provides.
【Specific implementation mode】
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, is not intended to be limiting
The present invention.In the embodiment of the present invention and "an" of singulative used in the attached claims, " described " and "the"
It is also intended to including most forms, unless context clearly shows that other meanings.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation of description affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate:Individualism A, exists simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, it is a kind of relationship of "or" to typically represent forward-backward correlation object.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
Fig. 1 is the schematic diagram of BroadVision WEBTV in the prior art, as shown in fig. 1, the system include data terminal,
Plug-flow end, server end and broadcasting end.Wherein, data terminal is for acquiring live data, and the live data to being acquired carries out
Pretreatment;Plug-flow end is used to the live data obtained from data terminal pushing to server end;Server end is then used to carry out straight
The publication of multicast data;End is played then to be used to obtain live data from server end and play out.The present invention passes through at plug-flow end
The mode of identical network time synchronous with end is played can accurately obtain each live streaming delay for playing end, and can be with this
To determine the live streaming delay situation of the whole network.That is, the scheme of monitoring live streaming delay provided by the present invention is at plug-flow end
With the overall plan carried out jointly in broadcasting end, i.e. plug-flow end plays end and also carries out net while carrying out network time synchronization
The synchronization of network time, to realize the network time using broadcasting end actual play live data with plug-flow end to currently played
Live data addition network time between difference, come accurately obtain play end live streaming delay purpose.
Fig. 2 is the method flow diagram in the monitoring live streaming delay of plug-flow end that one embodiment of the invention provides, such as institute in Fig. 2
Show, the method includes:
In 201, the plug-flow end synchronizing network time.
In this step, the plug-flow end in BroadVision WEBTV obtains network time, and utilizes acquired network
Time carries out time synchronization.The synchronization for the network time that plug-flow end is carried out is by the time on the time at plug-flow end and network
The time in source is consistent.
Specifically, plug-flow end is carried out using NTP (Network Time Protocol, Network Time Protocol) synchronization module
The synchronization of network time.Wherein, NTP synchronization modules obtain network time by Network Time Protocol from NTP network time servers,
Then the synchronization of time is carried out to plug-flow end using the network time.It is understood that this step can also use others
Time protocol, such as SNTP (Simple Network Time Protocol, Simple Network Time Protocol), from other networks
Time server, such as from CDMA (Code Division Multiple Access, CDMA) network time server,
Obtain network time.
In 202, plug-flow timestamp is added to live data using synchronous network time.
In this step, the plug-flow end in BroadVision WEBTV is obtained from data terminal after the live data of plug-flow,
Plug-flow timestamp is added to acquired live data.Wherein, the plug-flow timestamp that live data is added at plug-flow end is
Plug-flow end obtains network time corresponding when live data.In addition, the plug-flow timestamp that the present invention adds plug-flow end
Time format can be standard time format, such as 36 divide 25 seconds when 12 days 14 March in 2018 without limiting, or
Other time formats, such as it is accurate to the time format of minute, 38 divide when such as 12 days 14 March in 2018.
Plug-flow end to live data when adding plug-flow timestamp, when can be added to every frame image in live data
Between stab, can also only in live data predetermined interval image add timestamp.If for example, waiting for that the live data of plug-flow includes
200 frame images then all can add timestamp successively to the 200 frame image sequentially in time;If predetermined interval is 10
Frame then only can also add timestamp to images such as the 1st frame, 11 frames, 21 frames sequentially in time.The present invention to this without
It limits.
Plug-flow end will add the live streaming number of plug-flow timestamp after the live data addition plug-flow timestamp for treating plug-flow
According to server end is pushed to, the live data pushed is distributed by server end, then plays end to from server end
The live data of acquisition plays out.
Fig. 3 is the method flow diagram in the monitoring live streaming delay of broadcasting end that one embodiment of the invention provides, such as institute in Fig. 3
Show, the method includes:
In 301, the end synchronizing network time is played.
It is understood that it is to play terminal or the application of live data, such as mobile phone, tablet computer, notes to play end
The terminals such as this computer, desktop computer, or the related application in above-mentioned terminal.For example, if user passes through the live streaming in mobile phone
When being broadcast live using viewing, it can be mobile phone to play end, or the live streaming application in mobile phone;If user passes through the clear of desktop computer
When device of looking at viewing live streaming, then it can be desktop computer to play end, or the browser in desktop computer.
In this step, it plays end and obtains network time first, then carry out the time using acquired network time
It is synchronous.The synchronization for the network time that end is carried out is played, i.e., the time of time source on the time and network that play end is kept one
It causes.
Specifically, end is played to carry out using NTP (Network Time Protocol, Network Time Protocol) synchronization module
The synchronization of network time.Wherein, NTP synchronization modules obtain network time by Network Time Protocol from NTP network time servers,
Then the synchronization of time is carried out to playing end using the network time.It is understood that this step can also use others
Time protocol, such as SNTP (Simple Network Time Protocol, Simple Network Time Protocol), from other networks
Time server, such as from CDMA (Code Division Multiple Access, CDMA) network time server,
Obtain network time.
In order to more accurately obtain the live streaming delay for playing end, the network time that broadcasting end is synchronized is preferably
Consistent time network time synchronous with plug-flow end, that is, playing end need to be from identical network time server with plug-flow end
Network time is obtained to carry out the synchronization of time.
In 302, determine that live streaming is prolonged using current network time plug-flow timestamp corresponding with the live data played
When.
In this step, it plays end and obtains the corresponding plug-flow timestamp of live data first, that is, it is currently played to play end
The corresponding plug-flow timestamp of image, then will play the plug-flow time of end current network time and currently played image again
Stamp carries out difference, and live streaming delay is determined using time difference between the two.
Wherein, it plays end and broadcasting is decoded to acquired live data, each frame image in live data can be obtained
Corresponding plug-flow timestamp;It plays end and obtains the network time synchronized as current network time.And then utilize current net
Time difference between network time and plug-flow timestamp determines live streaming delay.
Specifically, the time between the corresponding plug-flow timestamp of live data for determining current network time and being played
When difference, following manner may be used:The current network time at end is played in statistics preset time range and plays end is played
Difference between the plug-flow timestamp of live data;Time difference is determined according to statistical result.For example, counting current in 1 minute
Difference between network time and plug-flow timestamp.
Wherein, when determining time difference according to statistical result, can be will in preset time range current network when
Between between plug-flow timestamp the maximum value of time difference be determined as time difference between the two, or will be when default
Between the average value of time difference is determined as time difference between the two between current network time and plug-flow timestamp in range.
End is played after determining time difference, determines that the live streaming for playing end is delayed using identified time difference.
If for example, there is 5 frame images in live data, play current network time of the end when playing the 5 frame image and this 5
The difference between plug-flow timestamp corresponding to frame image is respectively 1s, 2s, 2s, 0s and 0s, then current network time and pushes away
The time difference flowed between timestamp can be 2s (maximum value i.e. therein), or 1S (average value of i.e. 5 differences).
End is played after obtaining time difference, the time difference can directly be utilized to determine that the live streaming for playing end is delayed.
Live streaming delay can be determined by way of being compared time difference with predetermined threshold value.If for example, predetermined threshold value be 2s, when
Time difference shows that live streaming is normal when being less than 2s, then show that live streaming has delay when time difference is more than or equal to 2s.It can be with
Live streaming delay is determined by judging the delay gear residing for time difference.For example, delay gear (0~1s) be live streaming it is normal,
(1s~2s) is the slight delay of live streaming, (2s~3s) is live streaming delay etc., and the delay of live streaming is determined by above-mentioned delay gear
Situation.
After playing the case where end obtains live streaming delay, it can also be further delayed according to each live streaming for playing end to obtain
The live streaming delay situation of the whole network.When the live streaming being delayed according to each live streaming for playing end to obtain the whole network is delayed situation, can adopt
With the following methods:Play the attribute information that end obtains terminal device;The attribute information and corresponding live streaming delay hair at end will be played
It send to direct broadcast server, the situation so that it is determined that live streaming of the whole network is delayed.Wherein, the attribute information of terminal device includes:Terminal is set
At least one of network operator used in standby geographical location information and terminal device.End can be obtained by playing end
Network operator used in the location of end equipment (such as residing province, region) and terminal device (such as move 4G, connection
Logical broadband etc.) etc. information, the corresponding live streaming delay of acquired above- mentioned information is sent to direct broadcast server, to by straight
Broadcast the live streaming delay state that server obtains the whole network.
According to the live streaming delay state of obtained the whole network, direct broadcast server can carry out the viewing effect of user accurate
Scheduling.For example, direct broadcast server monitors that the live streaming delay of Shandong telecommunications is higher in certain period, but the live streaming of Hebei movement is prolonged
Shi Zhengchang, then direct broadcast server can use the user that Shandong telecommunication line is watched be dispatched to use Hebei move circuit into
Row viewing promotes the viewing effect of user to reduce live streaming delay when user's viewing.
Fig. 4 is the structure drawing of device in the monitoring live streaming delay of plug-flow end that one embodiment of the invention provides, such as institute in Fig. 4
Show, described device includes:First synchronization unit 41 and first processing units 42.
First synchronization unit 41 is used for the synchronizing network time.
First synchronization unit 41 obtains network time, and it is same then to carry out the time to plug-flow end using acquired network time
Step.The synchronization for the network time that first synchronization unit 41 carries out plug-flow end, when being by the time at plug-flow end and network
Between time in source be consistent.
Specifically, the first synchronization unit 41 is synchronous using NTP (Network Time Protocol, Network Time Protocol)
Module carries out the synchronization of network time.Wherein, NTP synchronization modules obtain net by Network Time Protocol from NTP network time servers
Then the network time carries out plug-flow end using the network time synchronization of time.It is understood that the first synchronization unit 41
Other time protocols, such as SNTP (Simple Network Time Protocol, simple network time association can be used
View), from other network time servers, such as from CDMA (Code Division Multiple Access, CDMA)
Network time server obtains network time.
First processing units 42, for adding plug-flow timestamp to live data using synchronous network time.
Plug-flow end of the first processing units 42 in BroadVision WEBTV obtains the live streaming number for waiting for plug-flow from data terminal
According to rear, plug-flow timestamp is added to acquired live data.Wherein, first processing units 42 are pushed away to what live data was added
Stream timestamp is that plug-flow end obtains network time corresponding when live data.In addition, the present invention is to first processing units 42
The time format of the plug-flow timestamp added can be standard time format, such as 12 days 14 March in 2018 without limiting
When 36 divide 25 seconds, or other time formats, such as be accurate to the time format of minute, such as 12 days 14 March in 2018
When 38 divide.
First processing units 42, can be to every frame image in live data when adding plug-flow timestamp to live data
Timestamp is added, can also timestamp only be added to the image of predetermined interval in live data.If for example, waiting for the live streaming of plug-flow
Data include 200 frame images, then first processing units 42 sequentially in time can all add the 200 frame image successively
Timestamp;If predetermined interval is 10 frames, first processing units 42 can also sequentially in time, only to the 1st frame, 11 frames, 21
The images such as frame add timestamp.The present invention is to this without limiting.
First processing units 42 will have been added by plug-flow end and pushed away after the live data addition plug-flow timestamp for treating plug-flow
The live data of stream timestamp is pushed to server end, and server end is distributed the live data pushed, then plays
End plays out the live data obtained from server end.
Fig. 5 is the structure drawing of device in the monitoring live streaming delay of broadcasting end that one embodiment of the invention provides, such as institute in Fig. 5
Show, described device includes:Second synchronization unit 51 and second processing unit 52.
Second synchronization unit 51 is used for the synchronizing network time.
Second synchronization unit 51 obtains network time first, when then being carried out using acquired network time to playing end
Between it is synchronous.The synchronization for the network time that second synchronization unit 51 is carried out, i.e., by time source on the time and network that play end
Time is consistent.
Specifically, the second synchronization unit 51 is synchronous using NTP (Network Time Protocol, Network Time Protocol)
Module carries out the synchronization of network time.Wherein, NTP synchronization modules obtain net by Network Time Protocol from NTP network time servers
Then the network time carries out the synchronization of time using the network time to playing end.It is understood that the second synchronization unit 51
Other time protocols, such as SNTP (Simple Network Time Protocol, simple network time association can be used
View), from other network time servers, such as from CDMA (Code Division Multiple Access, CDMA)
Network time server obtains network time.
In order to more accurately obtain the live streaming delay for playing end, what the second synchronization unit 51 was synchronized to playing end
Network time is preferably consistent to the network time that plug-flow end is synchronous with the first synchronization unit 41, i.e. the second synchronization unit 51 with
First synchronization unit 41 need to obtain network time to carry out the synchronization of time from identical network time server.
Second processing unit 52, for utilizing current network time plug-flow timestamp corresponding with the live data played
Determine live streaming delay.
Second processing unit 52 obtains the corresponding plug-flow timestamp of live data first, that is, plays the currently played figure in end
As corresponding plug-flow timestamp, then will play again the plug-flow timestamp of end current network time and currently played image into
Row difference determines live streaming delay using time difference between the two.
Wherein, second processing unit 52 is decoded broadcasting to acquired live data, can obtain in live data
The corresponding plug-flow timestamp of each frame image;When second processing unit 52 obtains the network time synchronized as current network
Between.And then determine that live streaming is prolonged using the time difference between current network time and plug-flow timestamp by second processing unit 52
When.
Specifically, second processing unit 52 is when determining corresponding with the live data played the plug-flow of current network time
Between stab between time difference when, following manner may be used:Count the current network time that end is played in preset time range
And play the difference between the plug-flow timestamp of the played live data in end;Time difference is determined according to statistical result.For example, the
Two processing units 52 count the difference between current network time and plug-flow timestamp in 1 minute.
Wherein, for second processing unit 52 when determining time difference according to statistical result, can be will be in preset time model
The maximum value for enclosing time difference between interior current network time and plug-flow timestamp is determined as time difference between the two, also may be used
Think that the average value by time difference between current network time in preset time range and plug-flow timestamp is determined as
Between time difference.Second processing unit 52 is played after determining time difference, using identified time difference to determine
The live streaming at end is delayed.
After second processing unit 52 obtains time difference, directly the time difference can be utilized to determine the live streaming for playing end
Delay.Mode that time difference is compared with predetermined threshold value can also be determined that the live streaming for playing end is delayed.If for example, pre-
If threshold value is 2s, show that live streaming is normal when time difference is less than 2s, then shows that live streaming is deposited when time difference is more than or equal to 2s
It is being delayed.Live streaming delay can also be determined by judging the delay gear residing for time difference.For example, delay gear (0~
1s) be live streaming it is normal, (1s~2s) be the slight delay of live streaming, (2s~3s) be to be broadcast live to be delayed etc., by above-mentioned delay gear come
Determine live streaming delay.
It, can also be further according to each broadcasting end after second processing unit 52 obtains the case where playing end live streaming delay
The live streaming delay situation that live streaming is delayed to obtain the whole network.It is delayed according to each live streaming delay for playing end to obtain the live streaming of the whole network
When situation, following manner may be used in second processing unit 52:Obtain the attribute information of terminal device;The attribute letter at end will be played
Breath and corresponding live streaming delay are sent to direct broadcast server, to determine the live streaming delay situation of the whole network by direct broadcast server.Its
In, the attribute information of terminal device includes:Network operation used in the geographical location information and terminal device of terminal device
At least one of quotient.I.e. broadcasting end can obtain the location of terminal device (such as residing province, region) and terminal is set
The information such as standby used network operator (such as move 4G, unicom broadband etc.), acquired above- mentioned information is corresponding
Live streaming delay be sent to direct broadcast server, to obtain the live streaming delay state of the whole network by direct broadcast server.
As shown in fig. 6, computer system/server 012 is showed in the form of universal computing device.Computer system/clothes
The component of business device 012 can include but is not limited to:One or more processor or processing unit 016, system storage
028, the bus 018 of connection different system component (including system storage 028 and processing unit 016).
Bus 018 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC)
Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Computer system/server 012 typically comprises a variety of computer system readable media.These media can be appointed
The usable medium what can be accessed by computer system/server 012, including volatile and non-volatile media, movably
With immovable medium.
System storage 028 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 030 and/or cache memory 032.Computer system/server 012 may further include other
Removable/nonremovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 034 can
For reading and writing immovable, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although in Fig. 6
It is not shown, can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and pair can
The CD drive that mobile anonvolatile optical disk (such as CD-ROM, DVD-ROM or other optical mediums) is read and write.In these situations
Under, each driver can be connected by one or more data media interfaces with bus 018.Memory 028 may include
There is one group of (for example, at least one) program module, these program modules to be configured at least one program product, the program product
To execute the function of various embodiments of the present invention.
Program/utility 040 with one group of (at least one) program module 042, can be stored in such as memory
In 028, such program module 042 includes --- but being not limited to --- operating system, one or more application program, other
Program module and program data may include the realization of network environment in each or certain combination in these examples.Journey
Sequence module 042 usually executes function and/or method in embodiment described in the invention.
Computer system/server 012 can also with one or more external equipments 014 (such as keyboard, sensing equipment,
Display 024 etc.) communication, in the present invention, computer system/server 012 is communicated with outside radar equipment, can also be with
One or more enable a user to the equipment interacted with the computer system/server 012 communication, and/or with make the meter
Any equipment that calculation machine systems/servers 012 can be communicated with one or more of the other computing device (such as network interface card, modulation
Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 022.Also, computer system/clothes
Being engaged in device 012 can also be by network adapter 020 and one or more network (such as LAN (LAN), wide area network (WAN)
And/or public network, such as internet) communication.As shown, network adapter 020 by bus 018 and computer system/
Other modules of server 012 communicate.It should be understood that although not shown in the drawings, computer system/server 012 can be combined
Using other hardware and/or software module, including but not limited to:Microcode, device driver, redundant processing unit, external magnetic
Dish driving array, RAID system, tape drive and data backup storage system etc..
Processing unit 016 is stored in program in system storage 028 by operation, to perform various functions using with
And data processing, such as realize a kind of method monitoring live streaming delay at plug-flow end, may include:
The plug-flow end synchronizing network time;
Plug-flow timestamp is added to live data using synchronous network time.
Such as realize a kind of method in the monitoring live streaming delay of broadcasting end, may include:
Play the end synchronizing network time;
Live streaming delay is determined using current network time plug-flow timestamp corresponding with the live data played.
Above-mentioned computer program can be set in computer storage media, i.e., the computer storage media is encoded with
Computer program, the program by one or more computers when being executed so that one or more computers execute in the present invention
State method flow shown in embodiment and/or device operation.For example, the method stream executed by said one or multiple processors
Journey may include:
The plug-flow end synchronizing network time;
Plug-flow timestamp is added to live data using synchronous network time.
Can also include:
Play the end synchronizing network time;
Live streaming delay is determined using current network time plug-flow timestamp corresponding with the live data played.
With time, the development of technology, medium meaning is more and more extensive, and the route of transmission of computer program is no longer limited by
Tangible medium, can also directly be downloaded from network etc..The arbitrary combination of one or more computer-readable media may be used.
Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer-readable storage medium
Matter for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or
The arbitrary above combination of person.The more specific example (non exhaustive list) of computer readable storage medium includes:There are one tools
Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access memory (RAM), read-only memory (ROM),
Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light
Memory device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer readable storage medium can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with one or more programming languages or combinations thereof for executing the computer that operates of the present invention
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partly executes or executed on a remote computer or server completely on the remote computer on the user computer.
Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including LAN (LAN) or
Wide area network (WAN) is connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service
Quotient is connected by internet).
Using technical solution provided by the present invention, by plug-flow end identical network time synchronous with end is played, energy
It is enough accurately to obtain each live streaming delay for playing end.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various
The medium of program code can be stored.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.
Claims (20)
1. a kind of method of monitoring live streaming delay, which is characterized in that the method includes:
The plug-flow end synchronizing network time;
Plug-flow timestamp is added to live data using synchronous network time.
2. according to the method described in claim 1, it is characterized in that, the plug-flow end synchronizing network time include:
Plug-flow end obtains network time using Network Time Protocol NTP synchronization modules from NTP network time servers;
The synchronization of network time is carried out using acquired network time.
3. according to the method described in claim 1, it is characterized in that, described add live data using synchronous network time
Plug-flow timestamp includes:
Plug-flow timestamp is added to every frame image in live data;Or
Timestamp is added to the image of predetermined interval in live data.
4. a kind of method of monitoring live streaming delay, which is characterized in that the method includes:
Play the end synchronizing network time;
Live streaming delay is determined using current network time plug-flow timestamp corresponding with the live data played.
5. according to the method described in claim 4, it is characterized in that, the broadcasting end synchronizing network time include:
It plays end and obtains network time from NTP network time servers using Network Time Protocol NTP synchronization modules;
The synchronization of network time is carried out using acquired network time.
6. according to the method described in claim 4, it is characterized in that, described utilize current network time and the live streaming number played
Determine that live streaming delay includes according to corresponding plug-flow timestamp:
Determine the time difference between the current network time and the plug-flow timestamp;
Live streaming delay is determined using the time difference.
7. according to the method described in claim 6, it is characterized in that, when the determination current network time and the plug-flow
Between stab between time difference include:
Count the difference between the current network time and the plug-flow timestamp in preset time range;
The time difference is determined according to statistical result.
8. the method according to the description of claim 7 is characterized in that described determine the time difference packet according to statistical result
It includes:
The maximum value of time difference between the current network time in preset time range and the plug-flow timestamp is true
It is set to time difference between the two;Or
The average value of time difference between the current network time in preset time range and the plug-flow timestamp is true
It is set to time difference between the two.
9. according to the method described in claim 4, it is characterized in that, the method further includes:
Play the attribute information that end obtains terminal device;
Live streaming delay and the attribute information are sent to direct broadcast server, for determining the live streaming delay shape of the whole network
Condition.
10. according to the method described in claim 9, it is characterized in that, the attribute information of the terminal device includes:Terminal device
Geographical location information, at least one of network operator used in terminal device.
11. a kind of device of monitoring live streaming delay, which is characterized in that the device is located at plug-flow end, and described device includes:
First synchronization unit is used for the synchronizing network time;
First processing units, for adding plug-flow timestamp to live data using synchronous network time.
12. according to the devices described in claim 11, which is characterized in that first synchronization unit in the synchronizing network time,
It is specific to execute:
Using Network Time Protocol NTP synchronization modules network time is obtained from NTP network time servers;
The synchronization of network time is carried out using acquired network time.
13. according to the devices described in claim 11, which is characterized in that the first processing units are when using synchronous network
Between when adding plug-flow timestamp to live data, it is specific to execute:
Plug-flow timestamp is added to every frame image in live data;Or
Timestamp is added to the image of predetermined interval in live data.
14. a kind of device of monitoring live streaming delay, which is characterized in that the device, which is located at, plays end, and described device includes:
Second synchronization unit is used for the synchronizing network time;
Second processing unit is straight for being determined using current network time plug-flow timestamp corresponding with the live data played
Broadcast delay.
15. device according to claim 14, which is characterized in that second synchronization unit in the synchronizing network time,
It is specific to execute:
Using Network Time Protocol NTP synchronization modules network time is obtained from NTP network time servers;
The synchronization of network time is carried out using acquired network time.
16. device according to claim 14, which is characterized in that the second processing unit is utilizing current network time
It is specific to execute when plug-flow timestamp corresponding with the live data played determines live streaming delay:
Determine the time difference between the current network time and the plug-flow timestamp;
Live streaming delay is determined using the time difference.
17. device according to claim 16, which is characterized in that the second processing unit is determining the current network
It is specific to execute when time difference between time and the plug-flow timestamp:
Count the difference between the current network time and the plug-flow timestamp in preset time range;
The time difference is determined according to statistical result.
18. device according to claim 14, which is characterized in that the second processing unit is additionally operable to execute:
Obtain the attribute information of terminal device;
Live streaming delay and the attribute information are sent to direct broadcast server, for determining the live streaming delay shape of the whole network
Condition.
19. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor
The computer program of operation, which is characterized in that the processor is realized when executing described program as any in claim 1~10
Method described in.
20. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is handled
Such as method according to any one of claims 1 to 10 is realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810214127.1A CN108712299A (en) | 2018-03-15 | 2018-03-15 | A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810214127.1A CN108712299A (en) | 2018-03-15 | 2018-03-15 | A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108712299A true CN108712299A (en) | 2018-10-26 |
Family
ID=63866127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810214127.1A Pending CN108712299A (en) | 2018-03-15 | 2018-03-15 | A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108712299A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110743162A (en) * | 2019-09-29 | 2020-02-04 | 深圳市九洲电器有限公司 | Cloud game running method and system |
CN111654690A (en) * | 2020-05-06 | 2020-09-11 | 北京百度网讯科技有限公司 | Live video delay time determination method and device and electronic equipment |
CN112198365A (en) * | 2020-09-29 | 2021-01-08 | 中国船舶重工集团公司第七二四研究所 | Method for realizing real-time frequency spectrum monitoring equipment |
CN112671718A (en) * | 2020-12-03 | 2021-04-16 | 网宿科技股份有限公司 | Switching method of return link, server and storage medium |
CN113573160A (en) * | 2021-05-17 | 2021-10-29 | 南斗六星系统集成有限公司 | Method for determining video delay in real-time video |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674204A (en) * | 2009-10-13 | 2010-03-17 | 东南大学 | Method for measuring multimedia multicast service quality based on client |
CN102572611A (en) * | 2010-12-07 | 2012-07-11 | 中国电信股份有限公司 | Method for watching network live stream synchronously with different users and system thereof |
CN104581422A (en) * | 2015-02-05 | 2015-04-29 | 成都金本华科技股份有限公司 | Method and device for processing network data transmission |
CN107682715A (en) * | 2016-08-01 | 2018-02-09 | 腾讯科技(深圳)有限公司 | Video synchronization method and device |
-
2018
- 2018-03-15 CN CN201810214127.1A patent/CN108712299A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674204A (en) * | 2009-10-13 | 2010-03-17 | 东南大学 | Method for measuring multimedia multicast service quality based on client |
CN102572611A (en) * | 2010-12-07 | 2012-07-11 | 中国电信股份有限公司 | Method for watching network live stream synchronously with different users and system thereof |
CN104581422A (en) * | 2015-02-05 | 2015-04-29 | 成都金本华科技股份有限公司 | Method and device for processing network data transmission |
CN107682715A (en) * | 2016-08-01 | 2018-02-09 | 腾讯科技(深圳)有限公司 | Video synchronization method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110743162A (en) * | 2019-09-29 | 2020-02-04 | 深圳市九洲电器有限公司 | Cloud game running method and system |
CN111654690A (en) * | 2020-05-06 | 2020-09-11 | 北京百度网讯科技有限公司 | Live video delay time determination method and device and electronic equipment |
CN112198365A (en) * | 2020-09-29 | 2021-01-08 | 中国船舶重工集团公司第七二四研究所 | Method for realizing real-time frequency spectrum monitoring equipment |
CN112671718A (en) * | 2020-12-03 | 2021-04-16 | 网宿科技股份有限公司 | Switching method of return link, server and storage medium |
CN112671718B (en) * | 2020-12-03 | 2023-07-21 | 网宿科技股份有限公司 | Switching method of return source link, server and storage medium |
CN113573160A (en) * | 2021-05-17 | 2021-10-29 | 南斗六星系统集成有限公司 | Method for determining video delay in real-time video |
CN113573160B (en) * | 2021-05-17 | 2022-03-22 | 南斗六星系统集成有限公司 | Method for determining video delay in real-time video |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108712299A (en) | A kind of method, apparatus, equipment and the computer storage media of monitoring live streaming delay | |
CN110417575A (en) | Alarm method, device and the computer equipment of O&M monitor supervision platform | |
CN108062409A (en) | Generation method, device and the electronic equipment of live video summary | |
CN110113407A (en) | Small routine state synchronization method, equipment and computer storage medium | |
CN107508719A (en) | Measure the method, apparatus and network node of network delay | |
US20170136347A1 (en) | System, method and apparatus for collecting and utilizing big data for online gameplay | |
CN107736019B (en) | Vehicle-mounted security monitoring method and system and terminal equipment | |
CN110381326A (en) | Video system and processing method, equipment and computer-readable medium | |
CN108521583A (en) | A kind of a large amount of barrage information concurrent processing methods and cloud computing server based on cloud computing | |
CN110505141A (en) | Processing method, device, readable medium and the electronic equipment of instant communication information | |
CN114185829A (en) | Shared resources for multiple communication services | |
US11671678B2 (en) | Method and device, equipment, and storage medium for data processing | |
CN110100460A (en) | Based on head position and time there is non-head to track stereosonic ambisonics audio | |
CN110502665A (en) | Method for processing video frequency and device | |
CN112199174A (en) | Message sending control method and device, electronic equipment and computer readable storage medium | |
CN110022259A (en) | Message arrival rate determines method, apparatus, data statistics server and storage medium | |
US9686536B2 (en) | Method and apparatus for aggregation and streaming of monitoring data | |
CN110222017A (en) | Processing method, device, equipment and the computer readable storage medium of real time data | |
CN110445667A (en) | A kind of link delay detection method, device, storage medium and terminal | |
CN108055594B (en) | Edge slicing implementation method and device, computer equipment and storage medium | |
CN113144620A (en) | Detection method, device, platform, readable medium and equipment for frame synchronization game | |
CN113542856A (en) | Reverse playing method, device, equipment and computer readable medium for online video | |
CN112311619B (en) | Network message delay detection method and device and electronic equipment | |
US5317564A (en) | Merging network for collection of data from multi-computers | |
US9219561B2 (en) | Method and apparatus for multiplexing and demultiplexing multi-channel signals and system for transmitting multi-channel signals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181026 |