CN108337538B - Method for eliminating live broadcast delay based on Flash player - Google Patents
Method for eliminating live broadcast delay based on Flash player Download PDFInfo
- Publication number
- CN108337538B CN108337538B CN201710051675.2A CN201710051675A CN108337538B CN 108337538 B CN108337538 B CN 108337538B CN 201710051675 A CN201710051675 A CN 201710051675A CN 108337538 B CN108337538 B CN 108337538B
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- stream
- live
- video stream
- time
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000007246 mechanism Effects 0.000 claims description 8
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/238—Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
- H04N21/23805—Controlling the feeding rate to the network, e.g. by controlling the video pump
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network 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/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/647—Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
- H04N21/64746—Control signals issued by the network directed to the server or the client
- H04N21/64761—Control signals issued by the network directed to the server or the client directed to the server
- H04N21/64776—Control signals issued by the network directed to the server or the client directed to the server for requesting retransmission, e.g. of data packets lost or corrupted during transmission from server
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for eliminating live broadcast delay based on a Flash player, wherein live broadcast video lag caused by network fluctuation is divided into client network fluctuation and live broadcast end network fluctuation.
Description
Technical Field
The invention relates to the technical field of online education live broadcast, in particular to a method for eliminating live broadcast delay based on a Flash player.
Background
In the existing online education live broadcast field, because the network conditions of all terminals are different, the problem of live broadcast delay is very serious, most of the existing Flash player solutions continue to wait when the video is blocked, wait for network recovery, and continue to play after the video buffering is finished, but the waiting time is x1, the live broadcast delay time of the watching terminal and the streaming terminal is x1, and the live broadcast experience is very poor; in the existing solution, because in the video mortgage process, it is necessary to wait for the video buffering to be completed, the time consumed in this period is x1, the mortgage is performed n times, the time consumed is y ═ x1+ x2+ x3+ … + xn, and the live broadcast lag time of the client and the live broadcast end is y. The technical problem to be solved by the invention is to reduce the live broadcast lag time y as much as possible.
Disclosure of Invention
The invention aims to provide a method for eliminating live broadcast delay based on a Flash player, so as to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a method for eliminating live broadcast delay based on a Flash player is characterized in that live broadcast video lag caused by network fluctuation is divided into client network fluctuation and live broadcast end network fluctuation, and the method for eliminating delay caused by the client network fluctuation comprises the following steps:
A. firstly, setting two time constants, namely a single refreshing threshold St which is 3 seconds, and an accumulated refreshing threshold At which is 10 seconds;
B. refreshing the live video stream when the time interval between the video stream empty time and the video stream full time exceeds St seconds, accumulating the video stream empty time and the video stream full time interval xN if the time interval between the video stream empty time and the video stream full time does not exceed 3 seconds, and refreshing the live video stream when the time of xN exceeds At seconds;
C. the live stream can be synchronized with the video of the live end by refreshing the live stream, so that the problem of delay of the live stream is reduced by controlling the Flash player to automatically refresh the live stream through two time mechanisms.
Preferably, the method for eliminating delay caused by network fluctuation of the live end comprises the following steps:
A. judging whether the current live stream is a huge lag live stream or not according to the number of bytes of video downloaded by Flash;
B. dividing the playing time by the number of downloaded bytes to obtain the code rate of the video;
C. if the code rate is far greater than the set code rate of the live broadcast end, the code rate is proved to be a live broadcast stream with a large amount of lag caused by network packet loss of the live broadcast end, and then a refreshing mechanism is carried out, so that the normal live broadcast stream delay can be recovered.
Compared with the prior art, the invention has the beneficial effects that: according to the method and the device, the problems of the client network fluctuation and the live broadcast network fluctuation caused by the live broadcast network fluctuation are solved respectively by analyzing the reasons of the client network fluctuation and the live broadcast network fluctuation, and the live broadcast experience is improved.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A method for eliminating live broadcast delay based on a Flash player is characterized in that live broadcast video lag caused by network fluctuation is divided into client network fluctuation and live broadcast network fluctuation, the conditions caused by the client network fluctuation are divided into two types, when network packet loss occurs, the Flash player triggers a video stream to be empty, and when the network returns to be normal, the Flash player triggers the video stream to be full, and the following table is provided:
status of state | Flash player trigger event |
Client network packet loss | Video streaming |
Client network Normal | Video stream full |
The video stream empty and the video stream full are paired, the video stream empty trigger time is e1, the video stream full trigger time is f1, the process from the video stream empty to the video stream full is live broadcast pause caused by network fluctuation, the time lag of the live broadcast pause is f1-e 1-x 1, if the video stream is paused for N times, the following table is as follows:
after N times of mortises, the live broadcast delay of client viewing is x1+ x2+ x3+ x4+ xN, so the viewing experience for the user is very poor.
The method for eliminating the delay caused by the fluctuation of the client network comprises the following steps:
A. firstly, setting two time constants, namely a single refreshing threshold St which is 3 seconds, and an accumulated refreshing threshold At which is 10 seconds;
B. refreshing the live video stream when the time interval between the video stream empty time and the video stream full time exceeds St seconds, accumulating the video stream empty time and the video stream full time interval xN if the time interval between the video stream empty time and the video stream full time does not exceed 3 seconds, and refreshing the live video stream when the time of xN exceeds At seconds;
as shown in the following table
Condition | Treatment method |
f1-e1>St | Refreshing live streams |
(f1-e1)+(f2-e2)+(fN-eN)>At | Refreshing live streams |
C. The live stream can be synchronized with the video of the live end by refreshing the live stream, so that the problem of delay of the live stream is reduced by controlling the Flash player to automatically refresh the live stream through two time mechanisms.
The network of the live broadcast end fluctuates, under the condition of packet loss, video data cannot be sent to the server, and the Flash player of the client end can frequently trigger the video stream to be empty and full, so that a refreshing mechanism is caused, and the live broadcast stream is refreshed. Because live end network packet loss, so do not have newest video data at the server end, even Flash player has in time refreshed the live stream, what get is also the video data before, when Flash player refreshed the live stream, live end network recovery can upload a large amount of video data, the time of video data is, the card pause time LostTime + current live stream video data time NowTime that the network packet loss caused, as shown in the following table:
if the Flash triggers a time mechanism when the live broadcast end is blocked due to network packet loss, two situations can occur when the live broadcast stream is refreshed, as shown in the following table:
when the LostTime live broadcast lag time is long, the video stream empty and video stream full events of Flash cannot provide refresh references, because Flash itself can be regarded as a normal live broadcast video, but the live broadcast seen by the user is the live broadcast with the LostTime delay time.
The method for eliminating the delay caused by the network fluctuation of the live broadcast end comprises the following steps:
A. judging whether the current live stream is a huge lag live stream or not according to the number of bytes of video downloaded by Flash;
B. dividing the playing time by the number of downloaded bytes to obtain the code rate of the video; as shown in the following table:
C. if the code rate is far greater than the set code rate of the live broadcast end, the code rate is proved to be a live broadcast stream with a large amount of lag caused by network packet loss of the live broadcast end, and then a refreshing mechanism is carried out, so that the normal live broadcast stream delay can be recovered.
According to the method and the device, the problems of the client network fluctuation and the live broadcast network fluctuation caused by the live broadcast network fluctuation are solved respectively by analyzing the reasons of the client network fluctuation and the live broadcast network fluctuation, and the live broadcast experience is improved.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (1)
1. A method for eliminating live broadcast delay based on a Flash player is characterized in that live broadcast video lag caused by network fluctuation is divided into client network fluctuation and live broadcast network fluctuation, and the method comprises the following steps: the method for eliminating the delay caused by the fluctuation of the client network comprises the following steps:
A. firstly, setting two time constants, namely a single refreshing threshold St which is 3 seconds, and an accumulated refreshing threshold At which is 10 seconds;
B. refreshing the live broadcast video stream when the interval between the video stream empty time and the video stream full time exceeds St seconds, accumulating the video stream empty time and the video stream full time interval xN if the interval does not exceed 3 seconds, and refreshing the live broadcast video stream when the time for accumulating the video stream empty time and the video stream full time interval xN exceeds At seconds;
C. the live stream can be synchronized with the video of the live end by refreshing the live stream, so that the problem of delay of the live stream is reduced by controlling the Flash player to automatically refresh the live stream through two time mechanisms;
wherein, the conditions caused by network fluctuation of the client are divided into two conditions, when the network loses packets, the FLASH player triggers the video stream to be empty, when the network recovers to be normal, the FLASH player triggers the video stream to be full, the video stream empty time and the video stream full time are paired, the process from the video stream empty to the video stream full is live broadcast pause caused by network fluctuation,
the method further comprises the following steps: the method for eliminating the delay caused by the network fluctuation of the live broadcast end comprises the following steps:
a1, judging whether the current live stream is a huge lag live stream or not through the number of bytes of video downloaded by Flash;
b1, dividing the playing time by the number of downloaded bytes to obtain the code rate of the video;
c1, if the code rate is larger than the set code rate of the live broadcast end, it proves that the live broadcast stream is a huge lag live broadcast stream caused by the network packet loss of the live broadcast end, and then a refreshing mechanism is carried out, so that the normal live broadcast stream delay can be recovered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710051675.2A CN108337538B (en) | 2017-01-20 | 2017-01-20 | Method for eliminating live broadcast delay based on Flash player |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710051675.2A CN108337538B (en) | 2017-01-20 | 2017-01-20 | Method for eliminating live broadcast delay based on Flash player |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108337538A CN108337538A (en) | 2018-07-27 |
CN108337538B true CN108337538B (en) | 2022-01-11 |
Family
ID=62923083
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710051675.2A Active CN108337538B (en) | 2017-01-20 | 2017-01-20 | Method for eliminating live broadcast delay based on Flash player |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108337538B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007221411A (en) * | 2006-02-16 | 2007-08-30 | Mie Univ | Image encoder and image decoder, image encoding and decoding method, and program thereof |
CN105653407A (en) * | 2015-12-08 | 2016-06-08 | 网易(杭州)网络有限公司 | Terminal, jam measuring method, device, game jam measuring method and apparatus |
CN105955777A (en) * | 2016-05-03 | 2016-09-21 | 网易(杭州)网络有限公司 | User interface refreshing method and device |
CN106128499A (en) * | 2016-06-28 | 2016-11-16 | 田彬 | A kind of device refreshed for DRAM or eDRAM and method for refreshing |
-
2017
- 2017-01-20 CN CN201710051675.2A patent/CN108337538B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007221411A (en) * | 2006-02-16 | 2007-08-30 | Mie Univ | Image encoder and image decoder, image encoding and decoding method, and program thereof |
CN105653407A (en) * | 2015-12-08 | 2016-06-08 | 网易(杭州)网络有限公司 | Terminal, jam measuring method, device, game jam measuring method and apparatus |
CN105955777A (en) * | 2016-05-03 | 2016-09-21 | 网易(杭州)网络有限公司 | User interface refreshing method and device |
CN106128499A (en) * | 2016-06-28 | 2016-11-16 | 田彬 | A kind of device refreshed for DRAM or eDRAM and method for refreshing |
Also Published As
Publication number | Publication date |
---|---|
CN108337538A (en) | 2018-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107147919B (en) | Live broadcast quick starting method and system | |
JP2024519363A (en) | Game data processing method, device, computer device, and computer program | |
CN106658051B (en) | A kind of control method and system of buffered play Streaming Media | |
CN110248204A (en) | A kind of processing method, device, equipment and the storage medium of live streaming caching | |
CN106791899A (en) | The live middle method and device and client for reducing viewer end picture interim card | |
CN102333089A (en) | Adaptive control method of multi-rate media stream based on hypertext transfer protocol (HTTP) streaming | |
CN107920041B (en) | Method and device for adjusting bit rate of live video data coding | |
CN110324654A (en) | Main broadcaster end live video frame processing method, device, equipment, system and medium | |
CN107295364B (en) | For the real-time streaming transport control method of barrage video, control device | |
CN106713947A (en) | Method and device for reducing live broadcasting time delay and standstill as well as live broadcasting system | |
CN105791260A (en) | Network self-adaptive stream media service quality control method and device | |
CN111372138A (en) | Live broadcast low-delay technical scheme of player end | |
CN114501052B (en) | Live broadcast data processing method, cloud platform, computer equipment and storage medium | |
EP2654309A1 (en) | Method and device for evaluating video quality | |
CN101699867A (en) | Dynamic adjustment method of video data transmission rate | |
CN105791735B (en) | Method and system for video calling code stream dynamic adjustment | |
CN110740380A (en) | Video processing method and device, storage medium and electronic device | |
CN103986914A (en) | Code rate self-adaption method based on number of client sides in wireless video monitoring system | |
CN105392023A (en) | Video live broadcasting method and device in network jitter environment | |
CN109819312A (en) | Player system and its control method based on dynamic buffer | |
CN105578201B (en) | A kind of system and method for realizing HLS live streaming code check number dynamic adjustment | |
CN112351303B (en) | Video sharing method and system in network conference and readable storage medium | |
CN108337538B (en) | Method for eliminating live broadcast delay based on Flash player | |
DE102015115896B4 (en) | Adaptive management of a media buffer | |
CN108965807B (en) | Real-time video playing control method and device, terminal and storage medium |
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 |