CN104580985B - Video code rate adaptive approach and system - Google Patents
Video code rate adaptive approach and system Download PDFInfo
- Publication number
- CN104580985B CN104580985B CN201510055563.5A CN201510055563A CN104580985B CN 104580985 B CN104580985 B CN 104580985B CN 201510055563 A CN201510055563 A CN 201510055563A CN 104580985 B CN104580985 B CN 104580985B
- Authority
- CN
- China
- Prior art keywords
- packet loss
- threshold value
- code rate
- interval
- video code
- 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.)
- Expired - Fee Related
Links
Abstract
Video code rate adaptive approach and system, method include step A: receiving RR/SR packet, obtain packet loss from RR/SR packet;Step B: judging that packet loss is less than lower limit packet loss threshold value, or between lower limit packet loss threshold value and upper limit packet loss threshold value, is also greater than upper limit packet loss threshold value;If being less than lower limit packet loss threshold value, step C is executed;If executing step D between lower limit packet loss threshold value and upper limit packet loss threshold value;If more than upper limit packet loss threshold value, step E is executed;Step C: the number of an accumulative first interval packet loss;Step D: the number of an accumulative second interval packet loss;Step E: the number of an accumulative 3rd interval packet loss;Step F: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so, executing step G;If it is not, executing step A;And step G: adjustment video code rate.The present invention can be improved the accuracy of packet loss detection and avoid frequently adjusting code rate.
Description
Technical field
The present invention relates to a kind of video code rate adaptive approach and systems.
Background technique
The mode that the application of the upper Video chat class of Internet generallys use udp transmission packet carries out data transmission, and works as packet loss
When complete data frame do not received due to decoding end, can only be decoded again when receiving next frame, in this way, video will be caused
Caton.To improve video cardton situation, data transmission can be adjusted by code rate adaptive approach, code rate, which adaptively refers to, to be lost
Suitably code rate is reduced in the biggish situation of packet rate and reduces a kind of measure of packet loss.
Industry often obtains the packet loss of transmitting terminal with RR/SR message, i.e. transmitting terminal sends udp video with certain probability
Packet, each video bag include the sequence number of a short type, which adds 1 every time, and receiving end is receiving statistics in a period of time
The number of the udp packet actually received, and the number for the udp packet that transmitting terminal is sent is obtained according to sequence number, and then calculate packet loss,
Then pass through the packet loss situation in RR/SR message notifying transmitting terminal this period of rtcp.
Transmitting terminal receives the adjustment that a RR/SR message just carries out a code rate, when packet loss is greater than the upper limit of a setting
When threshold value, reduces code rate by ratio, when the lower threshold that packet loss is set less than one, increase code rate according to a certain percentage.
Such method determines current Network status by the feedback message of a RTCP, and is adjusted correspondingly to code rate, one
The feedback message of secondary RTCP does not obviously have statistical meaning, and decision errors are big, and frequently adjusts to code rate, will affect communication yet
Stability and reliability.
Summary of the invention
In view of the deficiencies of the prior art, the present invention intends to provide one kind to solve the video code rate of above-mentioned technical problem certainly
Adaptive method and system.
To achieve the above object, the present invention adopts the following technical scheme:
A kind of video code rate adaptive approach comprising following steps:
Step A: receiving RR/SR packet, obtains packet loss from RR/SR packet;
Step B: judge that packet loss is less than lower limit packet loss threshold value R1, or lost in lower limit packet loss threshold value R1 and the upper limit
Between packet rate threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss threshold value
R1 executes step C;If executing step D between lower limit packet loss threshold value R1 and upper limit packet loss threshold value R2;If more than the upper limit
Packet loss threshold value R2 executes step E;
Step C: the number of an accumulative first interval packet loss;
Step D: the number of an accumulative second interval packet loss;
Step E: the number of an accumulative 3rd interval packet loss;
Step F: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so,
Execute step G;If it is not, returning to step A;And
Step G: video code rate is decreased or increased.
Preferably, step F includes following sub-step:
Step F1: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so,
Execute step F2;If it is not, returning to step A;And
Step F2: whether judgement is currently greater than preset time interval threshold value to the period of last code rate adjustment, if
It is step G to be executed, if it is not, returning to step A.
Preferably, step G specifically:
When the ratio of the relatively total packet loss number of 3rd interval packet loss number reaches the first fractional threshold, with default ratio
Example reduces video code rate;Or
Reach the second ratio in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When threshold value, video code rate is reduced with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is small
When third fractional threshold, video code rate is increased with preset ratio.
A kind of video code rate Adaptable System comprising receiving unit, judging unit, the first counting unit to third count
Unit and code rate adjustment unit;
The receiving unit obtains packet loss for receiving RR/SR packet, from current RR/SR packet;
Judging unit is less than lower limit packet loss threshold value R1 for judging packet loss, or in lower limit packet loss threshold value R1 and
Between upper limit packet loss threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss
Threshold value R1, the first counting unit add up the number of a first interval packet loss;If being lost in lower limit packet loss threshold value R1 and the upper limit
Between packet rate threshold value R2, the second counting unit adds up the number of a second interval packet loss;If more than upper limit packet loss threshold value
R2, third counting unit add up the number of a 3rd interval packet loss;
The judging unit is also used to judge whether first be greater than preset number to the number summation of 3rd interval packet loss
Threshold value;If so, video code rate is decreased or increased in code rate adjustment unit;If it is not, receiving unit continues to RR/SR packet.
Preferably, which is also used to be greater than preset number in first to 3rd interval packet loss number summation
When threshold value, whether judgement is currently greater than preset time interval threshold value to the period of last code rate adjustment, if so, code rate tune
Video code rate is decreased or increased in whole unit;If it is not, receiving unit continues to RR/SR packet.
Preferably, code rate adjustment unit is used to reach in the ratio of the relatively total packet loss number of 3rd interval packet loss number
When the first fractional threshold, video code rate is reduced with preset ratio;Or
Reach the second ratio in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When threshold value, video code rate is reduced with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is small
When third fractional threshold, video code rate is increased with preset ratio.
Beneficial effects of the present invention are at least as follows:
Foregoing invention repeatedly counts the number summation of the packet loss in each section, and is greater than preset number threshold in number summation
Primary video code rate is just adjusted when value, more for statistical significance, improves the accuracy of packet loss detection, and can avoid frequently adjustment
Code rate, to improve the stability and reliability of video communication.
Detailed description of the invention
Fig. 1 is the broad flow diagram of the better embodiment of video code rate adaptive approach of the present invention.
Fig. 2 is the structural schematic diagram of the better embodiment of video code rate Adaptable System of the present invention.
Specific embodiment
Below in conjunction with attached drawing and specific embodiment, the present invention is described further:
Referring to Figure 1, the present invention relates to a kind of video code rate adaptive approach, better embodiment includes following step
It is rapid:
Step A: receiving RR/SR packet, obtains packet loss from RR/SR packet;
Step B: judge that packet loss is less than lower limit packet loss threshold value R1, or lost in lower limit packet loss threshold value R1 and the upper limit
Between packet rate threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss threshold value
R1 executes step C;If executing step D between lower limit packet loss threshold value R1 and upper limit packet loss threshold value R2;If more than the upper limit
Packet loss threshold value R2 executes step E;
Step C: the number of an accumulative first interval packet loss;
Step D: the number of an accumulative second interval packet loss;
Step E: the number of an accumulative 3rd interval packet loss;
Step F: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so,
Execute step G;If it is not, returning to step A;And
Step G: video code rate is decreased or increased.
Foregoing invention repeatedly counts the number summation of the packet loss in each section, and is greater than preset number threshold in number summation
Primary video code rate is just adjusted when value, more for statistical significance, improves the accuracy of packet loss detection, and can avoid frequently adjustment
Code rate, to improve the stability and reliability of video communication.
Preferably, step F includes following sub-step:
Step F1: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so,
Execute step F2;If it is not, returning to step A;And
Step F2: whether judgement is currently greater than preset time interval threshold value to the period of last code rate adjustment, if
It is step G to be executed, if it is not, returning to step A.
By the time interval threshold value of setting code rate adjustment, only just allow to adjust code rate when being greater than time interval threshold value,
In this way, may make packet loss detection more acurrate, and make the more stable and reliable of video communication.
Preferably, step G specifically:
When the ratio of the relatively total packet loss number of 3rd interval packet loss number reaches the first fractional threshold, determine at this time
Network is poor, reduces video code rate with preset ratio;Or
Reach the second ratio in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When threshold value, judgement is often poor at this time, reduces video code rate with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is small
When third fractional threshold, determines that network is fine at this time, video code rate is increased with preset ratio.
Wherein, total packet loss number refers to the number summation of the first packet loss to 3rd interval.
This method judges whether network is poor or preferable by section packet loss ratio, and then corresponding adjustment video codes
Rate may make packet loss detection more acurrate, and make the more stable and reliable of video communication.
Referring to fig. 2, the invention further relates to a kind of video code rate Adaptable Systems comprising receiving unit, judging unit,
One counting unit is to third counting unit, code rate adjustment unit.
The receiving unit obtains packet loss for receiving RR/SR packet, from current RR/SR packet;
Judging unit is less than lower limit packet loss threshold value R1 for judging packet loss, or in lower limit packet loss threshold value R1 and
Between upper limit packet loss threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss
Threshold value R1, the first counting unit add up the number of a first interval packet loss;If being lost in lower limit packet loss threshold value R1 and the upper limit
Between packet rate threshold value R2, the second counting unit adds up the number of a second interval packet loss;If more than upper limit packet loss threshold value
R2, third counting unit add up the number of a 3rd interval packet loss;
The judging unit is also used to judge whether first be greater than preset number to the number summation of 3rd interval packet loss
Threshold value;If so, video code rate is decreased or increased in code rate adjustment unit;If it is not, receiving unit continues to RR/SR packet.
Preferably, which is also used to be greater than preset number in first to 3rd interval packet loss number summation
When threshold value, whether judgement is currently greater than preset time interval threshold value to the period of last code rate adjustment, if so, code rate tune
Video code rate is decreased or increased in whole unit;If it is not, receiving unit continues to RR/SR packet.
Specifically, code rate adjustment unit is used to reach in the ratio of the relatively total packet loss number of 3rd interval packet loss number
When the first fractional threshold, determines that network is poor at this time, video code rate is reduced with preset ratio;Or
Reach the second ratio in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When threshold value, judgement is often poor at this time, reduces video code rate with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is small
When third fractional threshold, determines that network is fine at this time, video code rate is increased with preset ratio.
For those skilled in the art, it can make other each according to the above description of the technical scheme and ideas
Kind is corresponding to be changed and deforms, and all these change and deform the protection model that all should belong to the claims in the present invention
Within enclosing.
Claims (4)
1. a kind of video code rate adaptive approach, it is characterised in that: itself the following steps are included:
Step A: receiving RR/SR packet, obtains packet loss from RR/SR packet;
Step B: judge that packet loss is less than lower limit packet loss threshold value R1, or in lower limit packet loss threshold value R1 and upper limit packet loss
Between threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss threshold value R1, hold
Row step C;If executing step D between lower limit packet loss threshold value R1 and upper limit packet loss threshold value R2;If more than upper limit packet loss
Threshold value R2 executes step E;
Step C: the number of an accumulative first interval packet loss;
Step D: the number of an accumulative second interval packet loss;
Step E: the number of an accumulative 3rd interval packet loss;
Step F: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so, executing
Step G;If it is not, returning to step A;And
Step G: being decreased or increased video code rate, specifically, in the ratio of the relatively total packet loss number of 3rd interval packet loss number
When value reaches the first fractional threshold, video code rate is reduced with preset ratio;Or
Reach the second fractional threshold in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When, video code rate is reduced with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is less than
When three fractional thresholds, video code rate is increased with preset ratio.
2. video code rate adaptive approach as described in claim 1, it is characterised in that: step F includes following sub-step:
Step F1: judging whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss, if so, executing
Step F2;If it is not, returning to step A;And
Step F2: whether judgement is currently greater than preset time interval threshold value to the period of last code rate adjustment, if so, holding
Row step G, if it is not, returning to step A.
3. a kind of video code rate Adaptable System comprising receiving unit, judging unit, the first counting unit to third count single
Member and code rate adjustment unit;
The receiving unit obtains packet loss for receiving RR/SR packet, from current RR/SR packet;
Judging unit is for judging that packet loss is less than lower limit packet loss threshold value R1, or in lower limit packet loss threshold value R1 and the upper limit
Between packet loss threshold value R2, it is also greater than upper limit packet loss threshold value R2, wherein 0 < R1 < R2 < 1;If being less than lower limit packet loss threshold value
R1, the first counting unit add up the number of a first interval packet loss;If in lower limit packet loss threshold value R1 and upper limit packet loss
Between threshold value R2, the second counting unit adds up the number of a second interval packet loss;If more than upper limit packet loss threshold value R2,
Three counting units add up the number of a 3rd interval packet loss;
The judging unit is also used to judge whether first be greater than preset frequency threshold value to the number summation of 3rd interval packet loss;
If so, video code rate is decreased or increased in code rate adjustment unit;If it is not, receiving unit continues to RR/SR packet;
Code rate adjustment unit is used to reach the first ratio threshold in the ratio of the relatively total packet loss number of 3rd interval packet loss number
When value, video code rate is reduced with preset ratio;Or
Reach the second fractional threshold in the ratio of second interval and the relatively total packet loss number of 3rd interval packet loss number summation
When, video code rate is reduced with preset ratio;Or
It is zero in 3rd interval packet loss number, and the ratio of the relatively total packet loss number of second interval packet loss number is less than
When three fractional thresholds, video code rate is increased with preset ratio.
4. video code rate Adaptable System as claimed in claim 3, it is characterised in that: the judging unit be also used to first to
When the number summation of 3rd interval packet loss is greater than preset frequency threshold value, judgement is currently to the period of last code rate adjustment
Whether preset time interval threshold value is greater than, if so, video code rate is decreased or increased in code rate adjustment unit;If it is not, receiving unit
Continue to RR/SR packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510055563.5A CN104580985B (en) | 2015-01-30 | 2015-01-30 | Video code rate adaptive approach and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510055563.5A CN104580985B (en) | 2015-01-30 | 2015-01-30 | Video code rate adaptive approach and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104580985A CN104580985A (en) | 2015-04-29 |
CN104580985B true CN104580985B (en) | 2019-02-19 |
Family
ID=53096067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510055563.5A Expired - Fee Related CN104580985B (en) | 2015-01-30 | 2015-01-30 | Video code rate adaptive approach and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104580985B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106331577B (en) * | 2015-06-25 | 2020-08-14 | 阿里巴巴集团控股有限公司 | Method and device for adjusting codes |
CN106331717B (en) * | 2015-06-30 | 2019-05-07 | 成都鼎桥通信技术有限公司 | Video code rate self-adapting regulation method and sending ending equipment |
CN105376614A (en) * | 2015-10-27 | 2016-03-02 | 南京创维信息技术研究院有限公司 | Video quality optimizing method and device |
CN105871744A (en) * | 2016-03-31 | 2016-08-17 | 北京小米移动软件有限公司 | Method and device for controlling traffic dynamically |
CN105897506A (en) * | 2016-03-31 | 2016-08-24 | 乐视控股(北京)有限公司 | Bandwidth estimation method and device |
KR20170130253A (en) * | 2016-05-18 | 2017-11-28 | 에스케이텔레콤 주식회사 | Method for providing of adaptive streaming service and apparatus therefor |
CN107222781B (en) * | 2017-06-30 | 2020-05-01 | 深圳市九洲电器有限公司 | Method and system for intelligent gateway to dynamically convert code rate |
CN111417029B (en) * | 2020-02-25 | 2022-06-24 | 广州广哈通信股份有限公司 | Method, system, terminal and storage medium for adjusting video code rate |
CN112437319A (en) * | 2020-11-10 | 2021-03-02 | 杭州叙简科技股份有限公司 | Method for switching multiple video streams based on webrtc |
CN114390320B (en) * | 2022-02-18 | 2024-02-13 | 百果园技术(新加坡)有限公司 | Data coding rate self-adaptive adjusting method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1185071A2 (en) * | 2000-08-23 | 2002-03-06 | Oki Electric Industry Co., Ltd. | Communication connecting device adaptive to an IP network and communication rate control method therefor |
CN101170691A (en) * | 2007-11-27 | 2008-04-30 | 中国电信股份有限公司 | A method, system and STB for monitoring IPTV service quality |
CN102065468A (en) * | 2009-11-13 | 2011-05-18 | 华为技术有限公司 | Code rate adjustment method and server |
CN102113307A (en) * | 2008-07-30 | 2011-06-29 | 三菱电机株式会社 | Image processing device and method, and image display device |
CN103607661A (en) * | 2013-11-29 | 2014-02-26 | 广州华多网络科技有限公司 | Method and device for transmitting multimedia data |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002300274A (en) * | 2001-03-30 | 2002-10-11 | Fujitsu Ltd | Gateway device and voice data transfer method |
CN101001240B (en) * | 2006-01-13 | 2013-05-08 | 清华大学 | Transmission control method and device |
CN101252425B (en) * | 2008-04-09 | 2010-10-27 | 杭州华三通信技术有限公司 | Loss package error correcting method and system of self-adapting network |
CN103200192B (en) * | 2013-03-28 | 2016-02-17 | 中国科学院声学研究所 | Network code layer is to the decoding method of packet |
-
2015
- 2015-01-30 CN CN201510055563.5A patent/CN104580985B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1185071A2 (en) * | 2000-08-23 | 2002-03-06 | Oki Electric Industry Co., Ltd. | Communication connecting device adaptive to an IP network and communication rate control method therefor |
CN101170691A (en) * | 2007-11-27 | 2008-04-30 | 中国电信股份有限公司 | A method, system and STB for monitoring IPTV service quality |
CN102113307A (en) * | 2008-07-30 | 2011-06-29 | 三菱电机株式会社 | Image processing device and method, and image display device |
CN102065468A (en) * | 2009-11-13 | 2011-05-18 | 华为技术有限公司 | Code rate adjustment method and server |
CN103607661A (en) * | 2013-11-29 | 2014-02-26 | 广州华多网络科技有限公司 | Method and device for transmitting multimedia data |
Also Published As
Publication number | Publication date |
---|---|
CN104580985A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580985B (en) | Video code rate adaptive approach and system | |
CN110855400B (en) | Self-adaptive packet loss recovery method based on error correction code, computing device and storage medium | |
CN106330761B (en) | Congestion control method and device based on queue time delay | |
US11252088B2 (en) | Methods and systems for network congestion management | |
EP3429213B1 (en) | Video data redundancy control method and apparatus | |
CN101924603B (en) | Self-adaption adjusting method, device and system of data transmission rate | |
EP2950473B1 (en) | Anti-packet-loss real-time communication method, system and related device based on hierarchical coding | |
RU2450468C2 (en) | System and method to adapt to network congestion | |
EP3133878B1 (en) | Power adjustment apparatus and method | |
KR20210028722A (en) | Congestion control method and network device | |
CN107615692B (en) | Quality of service driven selective hybrid automatic repeat request | |
GB2581722A (en) | Bottleneck bandwidth and round-trip propagation time (BBR) congestion control with random early detection (RED) | |
CN105471865A (en) | Method for dynamic network state adaptation of video stream | |
US20170099237A1 (en) | Method and Device for Determining Transmission Buffer Size | |
CN105721333A (en) | Data transmission device and data transmission method | |
CN112491658B (en) | Bandwidth estimation method and device, electronic equipment and computer-readable storage medium | |
US20140376376A1 (en) | Method And Apparatus For Improved Multicast Rate Control | |
US8868003B2 (en) | Controlling transmission of data | |
CN103312719A (en) | Rate self-adaptive transmission method based on UDP (User Datagram Protocol) under network environment | |
US9807024B2 (en) | Management of data transmission limits for congestion control | |
CN104378307A (en) | Optimizing method and system based on throughput rate and packet loss control CWND | |
CN106230654B (en) | Method for rapidly realizing maximum throughput rate of RFC2544 under background flow | |
US20130250796A1 (en) | Method for determining an aggregation scheme in a wireless network | |
WO2016155945A1 (en) | Data rate adaptation in a wireless transmitter | |
Lee et al. | TRM-based multimedia streaming optimization scheme in wireless networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190219 Termination date: 20210130 |