CN107809682A - It is a kind of to adjust the video flow control method for sending amount of buffered data - Google Patents
It is a kind of to adjust the video flow control method for sending amount of buffered data Download PDFInfo
- Publication number
- CN107809682A CN107809682A CN201711120887.8A CN201711120887A CN107809682A CN 107809682 A CN107809682 A CN 107809682A CN 201711120887 A CN201711120887 A CN 201711120887A CN 107809682 A CN107809682 A CN 107809682A
- Authority
- CN
- China
- Prior art keywords
- data
- video
- frame
- flow control
- buffering area
- 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
- 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/64784—Data processing by the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/50—Queue scheduling
- H04L47/56—Queue scheduling implementing delay-aware scheduling
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of video flow control method for adjusting transmission amount of buffered data, the video data sent first is admitted to transmission buffering area, sends the video data of buffering area in the data link free time, be removed transmission;Secondly, when each video data is fed to transmission buffering area, statistics sends the data volume and data growth rate of buffering area;Then judge whether to need to carry out flow control periodically according to data growth rate again;Finally, it is necessary to when flow controls, according to video data format, vector data is deleted by deletion rule, so as to reduce data volume.The present invention can more accurately calculate transmission bandwidth, and more data can be sent within the equivalent time, are so effectively improved the utilization rate of bandwidth, while reduce the accumulating amount that video data is transmitted across in journey, reduce data forward delay interval.
Description
Technical field
It is especially a kind of to adjust the video flow for sending amount of buffered data the present invention relates to video flow control method field
Control method.
Background technology
When computer sends video data, it may appear that data volume exceeds the situation of link bandwidth ability.In order that data volume
With bandwidth match, transmitting terminal needs the appropriate data volume for reducing output, i.e. flow controls.
Flow is controlled firstly the need of the bandwidth for knowing data link.Conventional band width estimation method is each transmission data
When, calculate from starting to be sent to the time interval of completing to send, as each transmission used time.In unit interval, each hair
The data word joint number and each transmission used time sent add up, and then the two is divided by, and obtains bandwidth at that time.But this bandwidth is estimated
Meter method is in the case of multithreading, it is possible to obtain the result less than normal than actual bandwidth.Reason be calculate send the used time when
Wait, because thread switches, be included in the unnecessary time.In the case of multithreading, only operating system is assigned with timeslice to thread,
Function can just be called.Send and start function and be sent completely the calling generation of function among different threads.In the event of under
Face such case:Data have been sent completely, but are performed and be sent completely the thread of function due to not being assigned to timeslice and in dormancy,
The dormancy time of thread will be included among the transmission used time.
The content of the invention
It is an object of the invention to overcome the technical problem present on, there is provided a kind of adjust sends regarding for amount of buffered data
Frequency flow control methods.
To achieve the above object, the technical scheme is that in the following manner realizing:
It is a kind of to adjust the video flow control method for sending amount of buffered data, comprise the following steps:
S1:The video data to be sent will be prepared first and be admitted to transmission buffering area, the video data for sending buffering area exists
During the data link free time, transmission is removed.
S2::When each video data is fed to transmission buffering area, statistics sends the data volume of buffering area and data increase
Speed.
S3:Then judge whether to need to carry out flow control periodically according to data growth rate again.
S4:When being controlled if necessary to flow, according to video data format, vector data is deleted by deletion rule, so as to subtract
Few data volume.
Further, the video data in above-mentioned steps S1 is admitted to transmission buffering area by packet subpackage, one or more
Individual packet belongs to a frame of video;Multiple frame of video belong to a video sequence, and video sequence and frame of video difference are in order
Numbering, it is video sequence to send the first order in buffering area, and in order of numbers arranges;The second level is the video of each video sequence
Frame, arranged by frame number order;The third level is the packet of each frame of video, is arranged by packet number order.
Further, the data volume in above-mentioned steps S2 presses byte count, and the data growth rate is united by bytes-per-second
Meter.
Further, the regular time intervals in above-mentioned steps S3 are 500 milliseconds, if finding for continuous 3 times to send buffering
The data volume sustainable growth in area, and growth rate is both greater than zero, then needs to carry out flow control.
Further, the first frame that the video data format in above-mentioned steps S4 refers to video sequence is independent decoding broadcasting
Key frame, subsequent frame are non-key frame, and each non-key frame is only with reference to former frame;Deletion rule is by number from back to front frame by frame
Delete..
The present invention can more accurately calculate transmission bandwidth, more data can be sent within the equivalent time, so
The utilization rate of bandwidth is effectively improved, while reduces the accumulating amount that video data is transmitted across in journey, reduces data transmission
Delay.
Brief description of the drawings
Fig. 1:Present invention regulation sends the workflow diagram of the video flow control method of amount of buffered data.
Embodiment
Below in conjunction with the accompanying drawings and embodiment the present invention is described in detail.
As shown in figure 1, a kind of adjust the video flow control method for sending amount of buffered data,
In step 401, thread is sent to bring into operation.
In step 402, there is video data bag input, it is necessary to send thread process.
In step 403, by the sequence number of video data bag, corresponding video sequence object is obtained from buffering area.Example
Such as, when the first bag data of Serial No. 1 arrives, now also without the video sequence object of Serial No. 1 in buffering area, then
With regard to a newly-built sequence pair as and its Serial No. 1 is set.When the follow-up data bag of Serial No. 1 arrives, then before finding
The sequence pair of establishment as.
In step 404, check whether the video sequence object got has occurred and that inflow-rate of water turbine control.If do not occur
Cross, then continue below step;In the event of mistake, then step 402 is gone to.For example, a video sequence includes 10 frames, the 8th
There occurs flow control during frame, the frame is deleted, then the later data of the 9th frame, be not inserted into this video sequence object, directly
It is switched to step 402.After the packet of next video sequence arrives, buffering area creates new sequence pair as just performing
Below step.
In step 405, by the frame number of video data bag, corresponding video frame object is obtained from buffering area.Such as frame
When number being arrived for 1 the first bag data, now also without the frame object that frame number is 1 in current sequence object, then with regard to newly-built one
Individual frame object and to set its frame number be 1, and is added it in current video sequence object.The follow-up data bag that frame number is 1 arrives
When coming, then the frame object created before is found.
In a step 406, video data bag, it is added in video frame object.Arranged by packet number order.
In step 407, when going to this step every time, first buffering byte number and time value are added up.If from upper
Secondary execution counts on the now time and has been over 500 milliseconds, then order performs;If less than 500 milliseconds, step is gone to
411。
In a step 408, buffering area byte number and the buffering growth rate for performing and being counted till now from last time are calculated.Preserve
The statistical result of nearest 3 times.
In step 409, whether continuous 3 growths of buffering byte number are checked.If it is, order performs;If it is not,
Then go to step 411.
In step 410, according to buffering growth rate, the frame in video sequence object is deleted.Deletion order is to be compiled by frame
Number delete frame by frame from back to front.
In step 411, check whether transmission link is idle.If idle, order performs;Otherwise, step is gone to
402。
In step 412, the packet of foremost is taken out from buffering area, is transmitted.
In step 413, thread is sent completely to bring into operation.
In step 414, in thread is sent completely, the idle mark of transmission link is set, for being checked in step 411.
Finally it should be noted that:Above example only not limits technology described in the invention to illustrate the present invention
Scheme;Therefore, although this specification with reference to above-mentioned each embodiment to present invention has been detailed description, this
Field it is to be appreciated by one skilled in the art that still can be modified to the present invention or equivalent substitution;And all do not depart from this
The technical scheme of the spirit and scope of invention and its improvement, it all should cover in scope of the presently claimed invention.
Claims (6)
1. a kind of adjust the video flow control method for sending amount of buffered data, it is characterised in that comprises the following steps:S1:Will
Prepare the video data to be sent and be admitted to transmission buffering area, send the video data of buffering area in the data link free time, quilt
Take out and send;S2::When each video data is fed to transmission buffering area, statistics sends the data volume of buffering area and data increase
Long speed;S3:Then judge whether to need to carry out flow control periodically according to data growth rate again;S4:Need flow control
When, according to video data format, vector data is deleted by deletion rule, so as to reduce data volume.
2. regulation according to claim 1 sends the video flow control method of amount of buffered data, it is characterised in that:It is described
Video data in step S1 is admitted to transmission buffering area by packet subpackage, and one or more packets belong to a video
Frame;Multiple frame of video belong to a video sequence, and video sequence and frame of video number in order respectively, send the in buffering area
One-level is video sequence, and in order of numbers arranges;The second level is the frame of video of each video sequence, is arranged by frame number order;
The third level is the packet of each frame of video, is arranged by packet number order.
3. regulation according to claim 1 sends the video flow control method of amount of buffered data, it is characterised in that:It is described
Data volume in step S2 presses byte count, and the data growth rate is counted by bytes-per-second.
4. regulation according to claim 1 sends the video flow control method of amount of buffered data, it is characterised in that:It is described
Regular time intervals in step S3 are 500 milliseconds, if find for continuous 3 times to send the data volume sustainable growth of buffering area, and
Growth rate is both greater than zero, then needs to carry out flow control.
5. regulation according to claim 1 sends the video flow control method of amount of buffered data, it is characterised in that:It is described
Video data format in step S4 refers to the key frame that the first frame of video sequence plays for independent decoding, and subsequent frame is non-key
Frame, each non-key frame is only with reference to former frame;Deletion rule is to delete frame by frame from back to front by number.
6. regulation according to claim 1 sends the video flow control method of amount of buffered data, it is characterised in that:It is described
After being sent completely in step S1, transmission link is set for idle mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120887.8A CN107809682A (en) | 2017-11-14 | 2017-11-14 | It is a kind of to adjust the video flow control method for sending amount of buffered data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120887.8A CN107809682A (en) | 2017-11-14 | 2017-11-14 | It is a kind of to adjust the video flow control method for sending amount of buffered data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107809682A true CN107809682A (en) | 2018-03-16 |
Family
ID=61591407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711120887.8A Pending CN107809682A (en) | 2017-11-14 | 2017-11-14 | It is a kind of to adjust the video flow control method for sending amount of buffered data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107809682A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109861921A (en) * | 2019-01-21 | 2019-06-07 | 西安微电子技术研究所 | A kind of adaptive dynamic flow control system and method towards Ethernet |
CN112954374A (en) * | 2021-01-28 | 2021-06-11 | 广州虎牙科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101466034A (en) * | 2008-12-25 | 2009-06-24 | 华为技术有限公司 | Method and device for sending and playing stream medium data and stream medium program request system |
CN101771492A (en) * | 2008-12-29 | 2010-07-07 | 华为技术有限公司 | Method and device for adjusting streaming media bit rate |
CN103401804A (en) * | 2013-06-06 | 2013-11-20 | 中国人民解放军理工大学 | Control system and method for node data caching and forwarding of wireless sensor network |
CN104702972A (en) * | 2014-01-03 | 2015-06-10 | 杭州海康威视数字技术股份有限公司 | Self-adaptive image data sending method and self-adaptive image data sending device |
CN105611309A (en) * | 2015-12-22 | 2016-05-25 | 北京奇虎科技有限公司 | Video transmission method and device |
CN105992023A (en) * | 2015-02-11 | 2016-10-05 | 杭州海康威视数字技术股份有限公司 | Video image data processing method and apparatus thereof |
-
2017
- 2017-11-14 CN CN201711120887.8A patent/CN107809682A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101466034A (en) * | 2008-12-25 | 2009-06-24 | 华为技术有限公司 | Method and device for sending and playing stream medium data and stream medium program request system |
CN101771492A (en) * | 2008-12-29 | 2010-07-07 | 华为技术有限公司 | Method and device for adjusting streaming media bit rate |
CN103401804A (en) * | 2013-06-06 | 2013-11-20 | 中国人民解放军理工大学 | Control system and method for node data caching and forwarding of wireless sensor network |
CN104702972A (en) * | 2014-01-03 | 2015-06-10 | 杭州海康威视数字技术股份有限公司 | Self-adaptive image data sending method and self-adaptive image data sending device |
CN105992023A (en) * | 2015-02-11 | 2016-10-05 | 杭州海康威视数字技术股份有限公司 | Video image data processing method and apparatus thereof |
CN105611309A (en) * | 2015-12-22 | 2016-05-25 | 北京奇虎科技有限公司 | Video transmission method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109861921A (en) * | 2019-01-21 | 2019-06-07 | 西安微电子技术研究所 | A kind of adaptive dynamic flow control system and method towards Ethernet |
CN109861921B (en) * | 2019-01-21 | 2022-08-02 | 西安微电子技术研究所 | Self-adaptive dynamic flow control method facing Ethernet |
CN112954374A (en) * | 2021-01-28 | 2021-06-11 | 广州虎牙科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
CN112954374B (en) * | 2021-01-28 | 2023-05-23 | 广州虎牙科技有限公司 | Video data processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11032205B2 (en) | Flow control method and switching device | |
CN104394486B (en) | A kind of video stream processing method and device based on cloud desktop | |
US11552721B2 (en) | Clock synchronization method and apparatus | |
US10848539B2 (en) | Genlock mechanism for software pacing of media constant bit rate streams | |
US9515919B2 (en) | Method and apparatus for protection switching in packet transport system | |
CN105025335B (en) | The method that a kind of audio video synchronization under cloud desktop environment renders | |
JP4864499B2 (en) | Inter-station transmission system, transmitter, receiver, and inter-station transmission method | |
CN107809682A (en) | It is a kind of to adjust the video flow control method for sending amount of buffered data | |
JP2016509782A (en) | Idle insertion for physical layer rate matching and time division duplex | |
CN111629158B (en) | Audio stream and video stream synchronous switching method and device | |
EP3008842B1 (en) | Methods of operating a user in a communication network | |
KR20080032088A (en) | Apparatus and method for estimating fill factor of client input buffers of a real time content distribution | |
CN103888313A (en) | Method for forecasting optimal timeout of flow table item | |
CN106792247A (en) | Reduce the live TV stream method for pushing and device, live broadcast system of time delay | |
EP2477366B1 (en) | Data transmission method, apparatus and system | |
US20210250112A1 (en) | Data sending method and apparatus, and flexe switching system | |
CN114501066A (en) | Video stream processing method, system, computer device and storage medium | |
JP4652314B2 (en) | Ether OAM switch device | |
US10404375B2 (en) | Method and apparatus for processing traffic in optical transport network | |
US20100274918A1 (en) | Stream data multiplexing device and multiplexing method | |
CN112272305B (en) | Multi-channel real-time interactive video cache storage method | |
CN112787944B (en) | Flow control method, apparatus and computer readable storage medium | |
CN105681816B (en) | A kind of video data transmission device and method | |
EP2533440B1 (en) | Method and device for sequencing members of multiple virtual concatenation groups | |
CN112272306A (en) | Multi-channel real-time interactive video fusion transmission method |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180316 |
|
WD01 | Invention patent application deemed withdrawn after publication |