[go: up one dir, main page]

CN105187832A - Mobile video code rate control method based on 2.5G wireless network - Google Patents

Mobile video code rate control method based on 2.5G wireless network Download PDF

Info

Publication number
CN105187832A
CN105187832A CN201510568301.9A CN201510568301A CN105187832A CN 105187832 A CN105187832 A CN 105187832A CN 201510568301 A CN201510568301 A CN 201510568301A CN 105187832 A CN105187832 A CN 105187832A
Authority
CN
China
Prior art keywords
frame
bit rate
complexity
threshold values
full scale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510568301.9A
Other languages
Chinese (zh)
Other versions
CN105187832B (en
Inventor
张毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU GOLDENWAY ELECTRONIC Co Ltd
Original Assignee
CHENGDU GOLDENWAY ELECTRONIC Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU GOLDENWAY ELECTRONIC Co Ltd filed Critical CHENGDU GOLDENWAY ELECTRONIC Co Ltd
Priority to CN201510568301.9A priority Critical patent/CN105187832B/en
Publication of CN105187832A publication Critical patent/CN105187832A/en
Application granted granted Critical
Publication of CN105187832B publication Critical patent/CN105187832B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mobile video code rate control method based on a 2.5G wireless network. The method comprises the steps that an image gray binaryzation method is used to carry out preprocessing to acquire the binaryzation image of each image in a video to be compressed; the complexity of the binaryzation image of the current frame is calculated; the current full scale of the buffer zone of a coded frame, the threshold of the default binaryzation image complexity and a default full scale threshold are acquired and stored; and if the threshold of the default binaryzation image complexity is less than the current frame complexity, or the threshold of the default binaryzation image complexity is greater than the current frame complexity, the current full scale is greater than or equal to the default full scale threshold and the number of compiled frames consecutively abandoned is greater than the default threshold of the number of frames, the actual code rate of the current frame is calculated based on a weighted value dynamically produced by the 2.5G network.

Description

Based on 2.5G wireless network mobile video bit rate control method
Technical field
The present invention relates to video image compression technology, be specifically related to based on 2.5G wireless network mobile video bit rate control method.
Background technology
The every field being applied in people's daily life and work that current wireless communications products is more and more general, in order to meet the demand of people in 2.5G wireless network Video Applications, current rate control algorithm mainly contains two kinds, the first is by TM5 version modified hydrothermal process in MPEG-2, be applied in JVT-F086, it adopts TM5 model, is divided into bit to distribute, rate-distortion optimization for the first time, calculates quantization parameter and again carries out rate-distortion optimization four step.The second is by VM8 version modified hydrothermal process in MPEG-4, and be applied in JVT-G012, proposition flow comes and goes model allocation bit number, and adopts secondary rate distortion function to calculate quantization parameter in macroblock layer.Although above two kinds of algorithms have good encoding efficiency under middle high code check environment, quality performance under the environment such as network bandwidth instability, low delay low bit-rate, video sequence strenuous exercise of transmission of video declines significantly.
Summary of the invention
For above-mentioned deficiency of the prior art, provided by the invention can the compression bit rate of dynamic conditioning frame based on 2.5G wireless network mobile video bit rate control method, still can ensure the quality of transmission of video when the network bandwidth is unstable.
In order to reach foregoing invention object, the technical solution used in the present invention is:
There is provided a kind of based on 2.5G wireless network mobile video bit rate control method, it comprises the following steps:
Adopt gradation of image binarization method, preliminary treatment obtains the binary image of each two field picture in video to be compressed;
Calculate the complexity of present frame binary image;
Obtain the current full scale of storage encoded frame place buffer area, preset binary image complexity threshold values and pre-set full scale threshold values;
When the binary image complexity threshold values preset is less than present frame complexity, or default binary image complexity threshold values is greater than present frame complexity, current full scale is more than or equal to pre-set full scale threshold values and abandon compiling frame number continuously and is greater than when pre-setting frame number threshold values, the weighted value dynamically produced based on 2.5G network calculates the actual bit rate of present frame:
B i = ( a × ω × ( N G O P - n ) N G O P + 1 ) × E i , i = 2 , 3 ... N G O P
Wherein, B is the actual bit rate of frame; A is weighted value; E ifor the target bit rate of frame; ω is residue frame code check mean ratio; N is the sequence number of frame; N gOPfor the length of GOP.
Beneficial effect of the present invention is: compared with the size between front frame complexity with present frame complexity and default binary image complexity threshold values by default binary image complexity threshold values, determine the present frame changed greatly relative to previous frame, and based on the weighted value that 2.5G network dynamically produces, its actual bit rate is calculated, thus make control coding and transmission being carried out to data volume, thus ensure that the quality of transmission of video.
Accompanying drawing explanation
Fig. 1 is the flow chart based on a 2.5G wireless network mobile video bit rate control method embodiment.
Fig. 2 is the flow chart based on another embodiment of 2.5G wireless network mobile video bit rate control method.
Embodiment
Below the specific embodiment of the present invention is described; so that those skilled in the art understand the present invention; but should be clear; the invention is not restricted to the scope of embodiment; to those skilled in the art; as long as various change to limit and in the spirit and scope of the present invention determined, these changes are apparent, and all innovation and creation utilizing the present invention to conceive are all at the row of protection in appended claim.
The flow chart based on a 2.5G wireless network mobile video bit rate control method embodiment is shown with reference to figure 1, Fig. 1.As shown in Figure 1, should comprise the following steps based on 2.5G wireless network mobile video bit rate control method:
Adopt gradation of image binarization method, preliminary treatment obtains the binary image of each two field picture in video to be compressed;
Because the encode bit number of generation and the motion intense degree of image and picture material complexity have the characteristic of direct linear relationship, frame binary image every in video flowing divides by this programme chronologically, is encoded to original image by the binarization of gray value Image Coding characteristic of order space.
Calculate the complexity of present frame binary image; Actual ask for complexity time, following formulae discovery can be adopted and obtain:
C i = ( i - 1 ) E i Σ j = 1 i - 1 B j , i = 2 , 3 ... N G O P , j = 1 , 2 ... i - 1
Wherein, B is the actual bit rate of frame; E ifor the target bit rate of frame; E i=ρ × B i-1; ρ is linear predictor coefficient; N gOPfor the length of GOP; I and j is the sequence number of frame.
Obtain the current full scale of storage encoded frame place buffer area, preset binary image complexity threshold values and pre-set full scale threshold values;
By relatively presetting binary image complexity threshold values and present frame complexity and the size between default binary image complexity threshold values and front frame complexity, determine the present frame changed greatly relative to previous frame:
When the binary image complexity threshold values preset is less than present frame complexity, or default binary image complexity threshold values is greater than present frame complexity, current full scale is more than or equal to pre-set full scale threshold values and abandon compiling frame number continuously and is greater than when pre-setting frame number threshold values, show that present frame changes greatly relative to previous frame, need to compile it.
When carrying out Rate Control, preferred binary image complexity threshold values is 80%, and pre-setting frame number threshold values is 2.
To the specific practice that the present frame changed greatly compiles be: the actual bit rate based on the weighted value calculating present frame that 2.5G network dynamically produces:
B i = ( a × ω × ( N G O P - n ) N G O P + 1 ) × E i , i = 2 , 3 ... N G O P
Wherein, B is the actual bit rate of frame; A is weighted value; E ifor the target bit rate of frame; ω is residue frame code check mean ratio; N is the sequence number of frame; N gOPfor the length of GOP.
Above-mentioned weighted value can adopt following formulae discovery and obtain:
a = 1 ( 26 - R S S I - R S R P &GreaterEqual; 0 ) 1 - 26 - R S S I - R S R P ( 26 - R S S I - R S R P < 0 )
Wherein, RSSI is the intensity instruction that terminal receives 2.5G base station signal; RSRP is the mean value that terminal receives 2.5G base station signal power.
And residue frame code check mean ratio can adopt following formulae discovery and obtain:
&omega; = ( 1 - n N G O P ) 5
Wherein, n is the sequence number of frame; N gOPfor the length of GOP.
In one embodiment of the invention, because the actual bit rate of each frame all can carry out dynamic conditioning, if linear predictor coefficient chooses the target bit rate calculating that fixed value carries out frame, can affect to video transmission quality, so in order to the stability of the quality and transmission that ensure transmission of video, need when the target bit rate carrying out present frame is predicted to upgrade its linear predictor coefficient, also need to comprise the following steps in the complexity step calculating present frame binary image:
Calculate the linear predictor coefficient of present frame:
&rho; = B i - 1 B i - 2 , i = 2 , 3 ... N G O P .
The flow chart based on another embodiment of 2.5G wireless network mobile video bit rate control method is shown with reference to figure 2, Fig. 2.
When present frame is less relative to previous frame change, then abandon the compiling to present frame.Lose in order to avoid the code check because abandoning the frame compiled and occur that shake occurs picture quality or part picture runs off, with reference to figure 2, the target bit rate mean allocation abandoning compiling frame is left the target bit rate of frame by this programme.
Concrete judgment mode when present frame is less relative to previous frame change is: be less than present frame complexity when current full scale is less than to pre-set full scale threshold values and preset binary image complexity threshold values, or current full scale is more than or equal to pre-set full scale threshold values, establish binary image complexity threshold values to be less than present frame complexity and abandon compiling frame number continuously and is less than or equal to and pre-sets frame number threshold values.
Wherein, the practical operation method target bit rate of present frame being averagely allocated to the target bit rate of subsequent frame is adopt following formula to upgrade to the target bit rate of subsequent frame:
E i = E i + R x N G O P - i ( R x N G O P - i &le; 0.23 E i ) 1.23 E i ( R x N G O P - i > 0.23 E i )
Wherein, R abandons compiling the code check of frame, and x is its span of sequence number abandoning frame is 0≤x≤i.
After present frame is abandoned, in order to ensure that storing primary data cache district (uncoded frame region) has constant code stream to export, need to upgrade the full scale of encoded frame place buffer area, its concrete operations mode is:
&delta; i + 1 = 1 - ( G i - V f )
Wherein, δ is the full scale storing encoded frame place buffer area; G represents the quantity in remaining cache district; V is target bit rate; F is frame per second.
Refer again to Fig. 2, in order to improve the transmission quality of video further, in one embodiment of the invention, between the complexity calculating present frame binary image and the actual bit rate of described calculating present frame, comprise improving one's methods based on DCT coefficient further, judge whether occurrence scene converts present frame:
Obtain the DCT coefficient absolute value of present frame and itself and adjacent spaces frame DCT coefficient absolute value and ratio:
F i = D i D i - 2 ( D i > D i - 2 ) D i - 2 D i ( D i - 2 > D i )
Calculate scene handoff factor:
T i = F i vF i ( F i > vF i ) vF i F i ( vF i > F i )
Wherein, D irepresent present frame DCT coefficient absolute value and; VF ifor the mean value of the ratio F of processed all frames; T is scene handoff factor;
Current scene handoff factor is greater than and switches threshold values in advance, enters the actual bit rate step calculating present frame.
In sum, this can the compression bit rate of dynamic conditioning frame based on 2.5G wireless network mobile video bit rate control method, still can ensure the quality of transmission of video when the network bandwidth is unstable.

Claims (9)

1., based on 2.5G wireless network mobile video bit rate control method, it is characterized in that, comprise the following steps:
Adopt gradation of image binarization method, preliminary treatment obtains the binary image of each two field picture in video to be compressed;
Calculate the complexity of present frame binary image;
Obtain the current full scale of storage encoded frame place buffer area, preset binary image complexity threshold values and pre-set full scale threshold values;
When the binary image complexity threshold values preset is less than present frame complexity, or default binary image complexity threshold values is greater than present frame complexity, current full scale is more than or equal to pre-set full scale threshold values and abandon compiling frame number continuously and is greater than when pre-setting frame number threshold values, the weighted value dynamically produced based on 2.5G network calculates the actual bit rate of present frame:
B i = ( a &times; &omega; &times; ( N G O P - n ) N G O P + 1 ) &times; E i , i = 2 , 3 ... N G O P
Wherein, B is the actual bit rate of frame; A is weighted value; E ifor the target bit rate of frame; ω is residue frame code check mean ratio; N is the sequence number of frame; N gOPfor the length of GOP.
2. according to claim 1ly it is characterized in that based on 2.5G wireless network mobile video bit rate control method, described complexity adopts following formulae discovery and obtains:
C i = ( i - 1 ) E i &Sigma; j = 1 i - 1 B j , i = 2 , 3 ... N G O P , j = 1 , 2 ... i - 1
Wherein, E i=ρ × B i-1; ρ is linear predictor coefficient.
3. according to claim 2ly it is characterized in that based on 2.5G wireless network mobile video bit rate control method, the complexity step of described calculating present frame binary image also comprises:
Calculate the linear predictor coefficient of present frame:
&rho; = B i - 1 B i - 2 , i = 2 , 3 ... N G O P .
4. arbitrary described based on 2.5G wireless network mobile video bit rate control method according to claim 1-3, it is characterized in that, described weighted value adopts following formulae discovery and obtains:
a = 1 ( 26 - R S S I - R S R P &GreaterEqual; 0 ) 1 - 26 - R S S I - R S R P ( 26 - R S S I - R S R P < 0 )
Wherein, RSSI is the intensity instruction that terminal receives 2.5G base station signal; RSRP is the mean value that terminal receives 2.5G base station signal power.
5. according to claim 4ly it is characterized in that based on 2.5G wireless network mobile video bit rate control method, described residue frame code check mean ratio adopts following formulae discovery and obtains:
&omega; = ( 1 - n N G O P ) 5
Wherein, n is the sequence number of frame; N gOPfor the length of GOP.
6. according to claim 1ly to it is characterized in that based on 2.5G wireless network mobile video bit rate control method,
Present frame complexity is less than when current full scale is less than to pre-set full scale threshold values and preset binary image complexity threshold values, or current full scale is more than or equal to pre-set full scale threshold values, establish binary image complexity threshold values to be less than present frame complexity and abandon compiling frame number continuously and is less than or equal to when pre-setting frame number threshold values, the target bit rate of present frame is averagely allocated to the target bit rate of subsequent frame.
7. according to claim 6ly to it is characterized in that based on 2.5G wireless network mobile video bit rate control method, also comprise the full scale upgrading encoded frame place buffer area:
&delta; i + 1 = 1 - ( G i - V f )
Wherein, δ is the full scale storing encoded frame place buffer area; G represents the quantity in remaining cache district; V is target bit rate; F is frame per second.
8. according to claim 1,2,3,5,6 or 7 based on 2.5G wireless network mobile video bit rate control method, it is characterized in that, comprise improving one's methods based on DCT coefficient further between the complexity of described calculating present frame binary image and the actual bit rate of described calculating present frame, judge whether occurrence scene converts present frame:
Obtain the DCT coefficient absolute value of present frame and itself and adjacent spaces frame DCT coefficient absolute value and ratio:
F i = D i D i - 2 ( D i > D i - 2 ) D i - 2 D i ( D i - 2 > D i )
Calculate scene handoff factor:
T i = F i vF i ( F i > vF i ) vF i F i ( vF i > F i )
Wherein, D irepresent present frame DCT coefficient absolute value and; VF ifor the mean value of the ratio F of processed all frames; T is scene handoff factor;
Current scene handoff factor is greater than and switches threshold values in advance, enters the actual bit rate step calculating present frame.
9. according to claim 8ly it is characterized in that based on 2.5G wireless network mobile video bit rate control method, described binary image complexity threshold values is 80%, and pre-setting frame number threshold values is 2.
CN201510568301.9A 2015-09-09 2015-09-09 Based on 2.5G wireless network mobile video bit rate control methods Expired - Fee Related CN105187832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510568301.9A CN105187832B (en) 2015-09-09 2015-09-09 Based on 2.5G wireless network mobile video bit rate control methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510568301.9A CN105187832B (en) 2015-09-09 2015-09-09 Based on 2.5G wireless network mobile video bit rate control methods

Publications (2)

Publication Number Publication Date
CN105187832A true CN105187832A (en) 2015-12-23
CN105187832B CN105187832B (en) 2018-06-22

Family

ID=54909645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510568301.9A Expired - Fee Related CN105187832B (en) 2015-09-09 2015-09-09 Based on 2.5G wireless network mobile video bit rate control methods

Country Status (1)

Country Link
CN (1) CN105187832B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519571A (en) * 2019-09-19 2019-11-29 天津英田视讯科技有限公司 A method of based on scene complexity dynamic adjustment coder parameters
WO2020042269A1 (en) * 2018-08-31 2020-03-05 网宿科技股份有限公司 Code rate adjustment method and device for encoding process
CN111193926A (en) * 2018-11-14 2020-05-22 腾讯科技(深圳)有限公司 Encoded data processing method, apparatus, computer device and storage medium
CN113660491A (en) * 2021-08-10 2021-11-16 杭州网易智企科技有限公司 Encoding method, encoding device, storage medium, and electronic apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198058A (en) * 2007-12-14 2008-06-11 武汉大学 A rate-distortion-optimized intra-frame refresh and code rate allocation method for regions of interest
US20080170626A1 (en) * 2007-01-16 2008-07-17 Chih-Ta Star Sung Method of digital video reference frame compression
CN102129682A (en) * 2011-03-09 2011-07-20 深圳市融创天下科技发展有限公司 Foreground and background area division method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080170626A1 (en) * 2007-01-16 2008-07-17 Chih-Ta Star Sung Method of digital video reference frame compression
CN101198058A (en) * 2007-12-14 2008-06-11 武汉大学 A rate-distortion-optimized intra-frame refresh and code rate allocation method for regions of interest
CN102129682A (en) * 2011-03-09 2011-07-20 深圳市融创天下科技发展有限公司 Foreground and background area division method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020042269A1 (en) * 2018-08-31 2020-03-05 网宿科技股份有限公司 Code rate adjustment method and device for encoding process
CN111193926A (en) * 2018-11-14 2020-05-22 腾讯科技(深圳)有限公司 Encoded data processing method, apparatus, computer device and storage medium
CN111193926B (en) * 2018-11-14 2022-10-25 腾讯科技(深圳)有限公司 Encoded data processing method, apparatus, computer device and storage medium
CN110519571A (en) * 2019-09-19 2019-11-29 天津英田视讯科技有限公司 A method of based on scene complexity dynamic adjustment coder parameters
CN113660491A (en) * 2021-08-10 2021-11-16 杭州网易智企科技有限公司 Encoding method, encoding device, storage medium, and electronic apparatus
CN113660491B (en) * 2021-08-10 2024-05-07 杭州网易智企科技有限公司 Encoding method, encoding device, storage medium, and electronic apparatus

Also Published As

Publication number Publication date
CN105187832B (en) 2018-06-22

Similar Documents

Publication Publication Date Title
KR100304103B1 (en) Method for finding re-quantization step sizes resulting in abrupt bit-rate reduction and rate control method using it
CN108235016B (en) A code rate control method and device
CN103533359B (en) One is bit rate control method H.264
CN101877784B (en) H.264 rate control method suitable for real-time application
CN100425077C (en) Video Compression Rate Control Method Using Unequal Allocation of Frame Target Bits
WO2009121234A1 (en) A video compression code rate control method
CN101677398A (en) Scene switching code rate control method
CN103533365B (en) Bit-rate control method and Bit-Rate Control Algorithm system
CN107222748B (en) The treating method and apparatus of image data code rate
CN104185024A (en) HEVC quantization parameter optimizing method based on total code rate and information entropy model
CN105187832A (en) Mobile video code rate control method based on 2.5G wireless network
CN104754335B (en) A kind of code rate controlling method for video coding
TW200605675A (en) Method and apparatus for lossless encoding and decoding
CN107846593A (en) A kind of Rate-distortion optimization method and device
CN101287112A (en) Optimizing method controlled by fast high effective code rate
CN101335891B (en) Video rate control method and video rate controller
CN112887714B (en) Video coding bit resource reallocation method
CN104333761A (en) HEVC basic unit level code rate allocation method
CN104113761A (en) Code rate control method for video encoding and encoder
CN100448297C (en) A code rate control method
CN102104778A (en) Method and device for code rate control in picture coding
CN108322740B (en) Encoding method with controllable encoding complexity
CN102281434B (en) Video compression method and equipment
CN111416978B (en) Video encoding and decoding method and system, and computer readable storage medium
CN100452878C (en) Motion image handling method in video coding

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

Granted publication date: 20180622

Termination date: 20190909

CF01 Termination of patent right due to non-payment of annual fee