CN1992898A - Video rate control method with low complexity - Google Patents

Video rate control method with low complexity Download PDF

Info

Publication number
CN1992898A
CN1992898A CN 200510135494 CN200510135494A CN1992898A CN 1992898 A CN1992898 A CN 1992898A CN 200510135494 CN200510135494 CN 200510135494 CN 200510135494 A CN200510135494 A CN 200510135494A CN 1992898 A CN1992898 A CN 1992898A
Authority
CN
China
Prior art keywords
histogram
frame
difference
video
rate control
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
Application number
CN 200510135494
Other languages
Chinese (zh)
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.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN 200510135494 priority Critical patent/CN1992898A/en
Publication of CN1992898A publication Critical patent/CN1992898A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a simple video code rate control method, which comprises bit rate preset process and quantified parameter adjustment, wherein the bit rate preset process uses video sequence character to preset the code rate; the quantified parameter adjustment uses the video sequence character to predict the code complexity, to evaluate the quantified parameters; the video sequence character is the differential diagram representing the local motion of video sequence. The invention has the advantages that: it can adjust the code rate distribution via the change to video content; the quantified parameters have simple calculation, with adaptive content; the code distribution and adjustment can match the change of video content; and it uses accumulation refresh statistic method to avoid time delay.

Description

A kind of video code rate control method of low complex degree
Technical field
The present invention relates to a kind of Rate Control mechanism, more particularly, the present invention relates to a kind of video code rate control method of the low complex degree based on the original video statistical nature.
Background technology
The Rate Control technology is hot issue of the video coding and the communications field, plays crucial effect in video communication.The Rate Control technology generally can be divided into three kinds: the one, utilize the analytic modell analytical model of code check one quantization parameter, and the 2nd, utilize code check is regulated in the control of encoding buffer, the 3rd, fully utilize above-mentioned two class methods.The advantage of first kind method is that code rate adjustment can be with separating that the method for resolving be optimized, but because the randomness of video content itself, single analytic modell analytical model can not accurately be portrayed the characteristic of video itself, so, need more Control Parameter and just can obtain satisfied effect, complexity is very high.Second class methods are simple to operate, but control precision is not enough.The 3rd class methods combine analytic modell analytical model and buffering area control, are most popular classes in the present Rate Control technology.
In recent years, along with the development of video coding technique, (H.264, VC1.0 AVS), correspondingly also has a series of rate control algorithms to propose to have produced new coding standard.But these rate control algorithms all are the 3rd class algorithm recited above usually, promptly based on the model of analytic modell analytical model and buffering area control.Though such model effectively combines analytic modell analytical model and buffering area controlling models, from rate control accuracy, can meet the demands, but because video sequence itself is difficult to by analytic modell analytical model accurately predicting (complexity height), so, existing method can not accurately control code check according to the intrinsic rate-distortion of video sequence (R-D) attribute itself, but video sequence regard as one stably random process control code check.But video sequence itself is the random process of a non-stationary, can make that like this R-D performance of existing bit rate control method is not high.
If overcome the deficiency of existing method, must promptly and accurately obtain the variation of video sequence, and come corresponding adjustment code check according to this variation.And the variation of video sequence can obtain by some statistics of video sequence itself.This tittle has generally comprised: image variance, consecutive frame histogram of difference, residual image variance and residual image histogram etc.Wherein consecutive frame histogram of difference (hereinafter to be referred as histogram of difference) can the interior power with respect to the reference frame movement degree of fine reflecting video frame.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, provide a kind of rate-distortion performance high low complex degree code check control algolithm.
For achieving the above object, the video code rate control method of low complex degree provided by the invention comprises bit rate pre-allocation process and quantization parameter adjustment process; It is characterized in that described bit rate pre-allocation process is to utilize video sequence characteristics to carry out code check preassignment; Described quantization parameter adjustment process is to come the predictive coding complexity according to video sequence characteristics, and then carries out quantization parameter and estimate; Described video sequence characteristics is meant the histogram of difference of representing the video sequence local motion.
In the technique scheme, described code check preassignment comprises the steps:
Step 1): target setting code check (in the video coding specified nominal code check) and destination buffer occupancy (the specified occupancy of video encoder buffering area) and gop size; According to the histogram of difference of first each coding unit of inter-frame, the histogram of difference value of present frame is asked in initialization, and histogram mean value is initialized as this value; In same image sets, the mean value of successive image histogram of difference obtains according to the mode of cumulative mean;
Step 2): to each frame, the encoder complexity of first coding unit of initialization;
Step 3): calculate the difference of consecutive frame and add up its histogram, calculate the average of histogram of difference sequence; According to the difference between present frame histogram and the average, combining target code check and destination buffer occupancy are distributed frame level bit-rate according to average-scale model then;
Step 4): on the basis of frame one-level Data Rate Distribution,, adopt average-scale model to distribute the code check of basic cell level further according to the histogram of difference of each Rate Control elementary cell.
In the technique scheme, described quantization parameter is estimated to comprise the steps:
Step 5): according to adjacent encoder unit histogram distribution in the frame, the encoder complexity of prediction present encoding unit;
Step 6): obtain after the encoder complexity of present encoding unit,, calculate the quantization parameter of present encoding unit according to preallocated code check; Utilize this quantization parameter that present image is encoded, and go to revise the Data Rate Distribution of next frame with the code check that obtains behind the coding.
In the technique scheme, described Rate Control elementary cell is a macro-block line.
The invention has the advantages that:
1, can in time regulate Data Rate Distribution according to the variation of video content;
2, quantization parameter calculates simply effectively, has content-adaptive;
3, the video content variation is pressed close in Data Rate Distribution and adjusting, has good rate-distortion (R-D) performance;
4, adopt the mode of the Pleistocene series metering that adds up, avoided delay.
Description of drawings
Fig. 1 is the rate-allocation procedure schematic diagram;
Fig. 2 is the flow chart of quantization parameter estimating part;
Fig. 3 is the flow chart of bit rate control method overall process of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing.
Rate-allocation procedure relates generally to histogram of difference and calculates, and frame level bit-rate distributes and the coding unit level bit-rate distributes.As shown in Figure 1, three parts refer to histogram calculation respectively among the figure, and frame distributes and the unit distributes.
Quantization parameter is estimated as shown in Figure 2.In code rate control method, in order to improve control precision, need to reduce the granularity of control, so every frame is divided into several basic coding unit, the Rate Control process is carried out on the basis of elementary cell.To each elementary cell, come the predictive coding complexity by its histogram of difference, just can obtain the quantization parameter that this coding unit should be taked according to preallocated code check afterwards.
The overall flow of Rate Control as shown in Figure 3.Rate Control is only at an image sets (between two I frames).For an image sets, control procedure is at first from initialization, comes bit to entire image set of dispense some according to target bit rate.A two field picture obtains target bit rate by code check preassignment in the image sets, obtains quantization parameter, the output bit flow of encoding afterwards by quantizing parameter Estimation.According to the bit of output and the difference between the target bit rate, correction image group overall bit rate is distributed, and then revises the code check preassignment of next frame.
Whole Rate Control process mainly is divided into following step:
1, according to the target bit rate requirement, the overall bit number of initialization present image group:
R=bit_rate*L/F。Here bit_rate represents the target bit rate requirement, and L is the size (frame) of image sets, and F is a frame per second.Initialization destination buffer size, initialization histogram of difference average: hod a = hod ( 0 ) = Σ i = 0 K = 1 hod ( 0 , i ) , hod ( 0 , i ) = Σ | x | ≥ a histogram ( 0 , i , x ) N p ( 0 , i ) . Here hod represents histogram of difference frame (difference frame histogram), and hod (m) represents the frame difference histogram of m inter-frame of present image group, m=0 for initial inter-frame, and it also is current histogram mean value hod simultaneously aHere suppose every frame K elementary cell, (m i) represents i elementary cell histogram of difference of m frame to hod.(m, i x) represent that difference value is the statistics with histogram value of x in the m frame i coding unit to Histogram.α is a threshold value, and value is between (0,20), and it has reflected the sensitivity of histogram for image difference, and α is more little, and sensitivity is high more.N p(m i) is the number of pixels of present encoding unit.
2, to each frame, the encoder complexity of first coding unit of initialization Xb ( m , 0 ) = 1 Km Σ k = 0 m - 1 Σ i = 0 K - 1 Xb ( k , i ) , m>0;Xb(m,0)=C,m=0。Here Xb (k i) represents the encoder complexity of k inter-frame i coding unit, Xb (k, i)=r (k, i) * Q (k, i), r (k, i) the corresponding coding unit of the representative used bit of encoding, Q (k, i) the representative quantization parameter that corresponding coding unit adopted here.
3, calculate the histogram of difference of present frame and according to the mode preassignment code check of cumulative mean: r ( m ) = ( 1 + hod ( m ) - ho d a hod a ) R - R u L - m - 1 , ho d a = 1 m + 1 Σ i = 0 m hod ( i ) , Here R uRepresent the code check that produced to preceding m+1 frame coding.Further combined with the destination buffer occupancy, be to the final code check preassignment of present frame:
r(m)=λr(m)+(1-λ)(BL(m)-Tbl(m))。Here λ=0.5 is a weight coefficient, and BL (m) represents the occupancy of present encoding buffering area, and Tbl (m) takies the destination buffer occupancy that model obtains according to destination buffer.
4, distribute code check for the present encoding unit according to the histogram of difference of present encoding unit: r ( m , i ) = ( 1 + hod ( m , i ) - ho d a hod a ) r ( m ) - r u K - i , Here ru is the encoded actual bit rate that elementary cell produced of present frame.
5, prediction present encoding cell encoding complexity.If first coding unit of present frame is then directly used step 2 initialization codes complexity.Otherwise,, also represented the own encoder complexity of image (motion Shaoxing opera is strong, and encoder complexity is big more) indirectly because histogram of difference itself has reflected the movement degree of image inside.So have: Xb ( m , i ) Xb ( m , i + 1 ) = hod ( m , i ) hod ( m , i + 1 ) Such hypothesis.In addition, for video image, the continuity on the feature presentative time between the consecutive frame (feature that is consecutive frame has very big similitude) for this reason, can obtain following relation:
- ω ≤ hod ( m , i ) hod ( m , i + 1 ) - hod ( m + 1 , i ) hod ( m + 1 , i + 1 ) ≤ ω
Based on above-mentioned these two relations, can further provide following relation:
If | hod ( m , i ) hod ( m , i - 1 ) - hod ( m - 1 , i ) hod ( m - 1 , i - 1 ) | ≤ ω (condition 1) set up, then Xb ( m , i ) = Xb ( m , i - 1 ) Xb ( m - 1 , i ) Xb ( m - 1 , i - 1 ) (complexity method of estimation 1) ω here is a threshold value constant, and value is between [0.05,0.1].
If | hod ( m , i ) hod ( m , i - 1 ) - hod ( m - 1 , i ) hod ( m - 1 , i - 1 ) | ≤ ω Be false, then adopt following Forecasting Methodology (complexity method of estimation 2):
If | hod (m, i)-hod (m, i-1) |-| hod (m, i)-hod (m-1, i) |>0.1hod aSo Xb (m, i)=(2*Xb (and m-1, i)+Xb (m, i-1))/3 otherwise Xb (m, i)=(Xb (and m-1, i)+2*Xb (m, i-1))/3
6, quantization parameter calculates and regulates.Obtained the encoder complexity prediction of present encoding unit, the quantization parameter that the definition by encoder complexity obtains predicting: Q ( m , i ) = Xb ( m , i ) r ( m , i ) . Because the code check r (m that the present encoding unit distributes, i) might be less than 0, but quantization parameter must require the quantization parameter of adjacent encoder unit can not differ too big greater than 0 and in order to guarantee the continuity of video pictures quality, so the quantization parameter that obtains also will be revised as follows:
Q(m,i)=max(2,min(Q a+3,max(Q a-3,Q a)),m=0
Q (m, i)=max (2, and min (Q (m, i-1)+3, max (Q (m, i-1)-3, Q (m, i))), m>0, min (.) and max (.) are illustrated respectively in two numbers and get less and higher value here, Q aRepresent the mean value of encoded elementary cell quantization parameter.

Claims (4)

1, a kind of video code rate control method of low complex degree comprises bit rate pre-allocation process and quantization parameter adjustment process; It is characterized in that described bit rate pre-allocation process is to utilize video sequence characteristics to carry out code check preassignment; Described quantization parameter adjustment process is to come the predictive coding complexity according to video sequence characteristics, and then carries out quantization parameter and estimate; Described video sequence characteristics is meant the histogram of difference of representing the video sequence local motion.
2. by the video code rate control method of the described low complex degree of claim 1, it is characterized in that described code check preassignment comprises the steps:
Step 1): target setting code check and destination buffer occupancy and gop size; According to the histogram of difference of first each coding unit of inter-frame, the histogram of difference value of present frame is asked in initialization, and histogram mean value is initialized as this value; In same image sets, the mean value of successive image histogram of difference obtains according to the mode of cumulative mean;
Step 2): to each frame, the encoder complexity of first coding unit of initialization;
Step 3): calculate the difference of consecutive frame and add up its histogram, calculate the average of histogram of difference sequence; According to the difference between present frame histogram and the average, combining target code check and destination buffer occupancy are distributed frame level bit-rate according to average-scale model then;
Step 4): on the basis of frame one-level Data Rate Distribution,, adopt average one scale model to distribute the code check of basic cell level further according to the histogram of difference of each Rate Control elementary cell.
3. by the video code rate control method of the described low complex degree of claim 1, it is characterized in that described quantization parameter is estimated to comprise the steps:
Step 5): according to adjacent encoder unit histogram distribution in the frame, the encoder complexity of prediction present encoding unit;
Step 6): obtain after the encoder complexity of present encoding unit,, calculate the quantization parameter of present encoding unit according to preallocated code check; Utilize this quantization parameter that present image is encoded, and go to revise the Data Rate Distribution of next frame with the code check that obtains behind the coding.
4, by the video code rate control method of the described low complex degree of claim 2, it is characterized in that described Rate Control elementary cell is a macro-block line.
CN 200510135494 2005-12-31 2005-12-31 Video rate control method with low complexity Pending CN1992898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510135494 CN1992898A (en) 2005-12-31 2005-12-31 Video rate control method with low complexity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510135494 CN1992898A (en) 2005-12-31 2005-12-31 Video rate control method with low complexity

Publications (1)

Publication Number Publication Date
CN1992898A true CN1992898A (en) 2007-07-04

Family

ID=38214777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510135494 Pending CN1992898A (en) 2005-12-31 2005-12-31 Video rate control method with low complexity

Country Status (1)

Country Link
CN (1) CN1992898A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101466035B (en) * 2007-12-21 2011-08-17 深圳市融创天下科技发展有限公司 Method for distributing video image set bit based on H.264
CN102948147A (en) * 2010-06-17 2013-02-27 微软公司 Video rate control based on transform-coefficients histogram
CN103796016A (en) * 2012-10-29 2014-05-14 南京信息工程大学 DMB meteorology early warning information message source encoding algorithm based on average code rate control
CN105791827A (en) * 2016-02-26 2016-07-20 北京计算机技术及应用研究所 Video coding method of wireless channel
CN106060548A (en) * 2016-05-26 2016-10-26 安凯(广州)微电子技术有限公司 Code rate control method and device
CN106231341A (en) * 2016-07-26 2016-12-14 浙江大华技术股份有限公司 A kind of method and device controlling Motion JPEG encoder bit rate
CN107071422A (en) * 2017-04-17 2017-08-18 南京邮电大学 Low complex degree HEVC rate adaption transformation coding methods based on image correlation model
CN109348244A (en) * 2018-11-20 2019-02-15 浙江齐聚科技有限公司 Configuration method, device, equipment and the storage medium of video coding parameter
CN110139102A (en) * 2019-05-23 2019-08-16 北京百度网讯科技有限公司 Prediction technique, device, equipment and the storage medium of video encoding complexity
CN110248195A (en) * 2019-07-17 2019-09-17 北京百度网讯科技有限公司 Method and apparatus for output information

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101466035B (en) * 2007-12-21 2011-08-17 深圳市融创天下科技发展有限公司 Method for distributing video image set bit based on H.264
CN102948147A (en) * 2010-06-17 2013-02-27 微软公司 Video rate control based on transform-coefficients histogram
CN103796016A (en) * 2012-10-29 2014-05-14 南京信息工程大学 DMB meteorology early warning information message source encoding algorithm based on average code rate control
CN105791827A (en) * 2016-02-26 2016-07-20 北京计算机技术及应用研究所 Video coding method of wireless channel
CN105791827B (en) * 2016-02-26 2018-07-24 北京计算机技术及应用研究所 A kind of method for video coding of wireless channel
CN106060548A (en) * 2016-05-26 2016-10-26 安凯(广州)微电子技术有限公司 Code rate control method and device
CN106060548B (en) * 2016-05-26 2019-03-29 安凯(广州)微电子技术有限公司 A kind of method and apparatus of code rate control
CN106231341A (en) * 2016-07-26 2016-12-14 浙江大华技术股份有限公司 A kind of method and device controlling Motion JPEG encoder bit rate
CN106231341B (en) * 2016-07-26 2019-05-24 浙江大华技术股份有限公司 A kind of method and device controlling Motion JPEG encoder bit rate
CN107071422B (en) * 2017-04-17 2019-07-12 南京邮电大学 Low complex degree HEVC rate adaption transformation coding method based on image correlation model
CN107071422A (en) * 2017-04-17 2017-08-18 南京邮电大学 Low complex degree HEVC rate adaption transformation coding methods based on image correlation model
CN109348244A (en) * 2018-11-20 2019-02-15 浙江齐聚科技有限公司 Configuration method, device, equipment and the storage medium of video coding parameter
CN109348244B (en) * 2018-11-20 2021-05-18 浙江齐聚科技有限公司 Method, device, equipment and storage medium for configuring video coding parameters
CN110139102A (en) * 2019-05-23 2019-08-16 北京百度网讯科技有限公司 Prediction technique, device, equipment and the storage medium of video encoding complexity
CN110139102B (en) * 2019-05-23 2021-09-21 北京百度网讯科技有限公司 Method, device, equipment and storage medium for predicting video coding complexity
US11259029B2 (en) 2019-05-23 2022-02-22 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, device, apparatus for predicting video coding complexity and storage medium
CN110248195A (en) * 2019-07-17 2019-09-17 北京百度网讯科技有限公司 Method and apparatus for output information
CN110248195B (en) * 2019-07-17 2021-11-05 北京百度网讯科技有限公司 Method and apparatus for outputting information

Similar Documents

Publication Publication Date Title
CN1992898A (en) Video rate control method with low complexity
KR100484148B1 (en) Advanced method for rate control and apparatus thereof
CN100481942C (en) Method and apparatus for operational frame-layer rate control in video encoder
CN101547349B (en) Method for controlling code rate of secondary AVS encoding of video signal
CN1177480C (en) Apparatus and method for object based rate control in coding system
CN100456835C (en) Methods and systems for rate control in video encoder
CN104683804A (en) Parameter-adaptive multidimensional bit rate control method based on video content characteristics
CN1247670A (en) Appts. and method for optimizing rate control in coding system
KR19990067041A (en) Apparatus and method for optimizing speed control in a coding system
CN1910934A (en) Encoder with adaptive rate control
CN1949877A (en) Adaptive quantization controller and method thereof
US20150172680A1 (en) Producing an Output Need Parameter for an Encoder
CN101335891B (en) Video rate control method and video rate controller
CN101188755A (en) A method for VBR code rate control in AVX decoding of real time video signals
CN1738424A (en) Code rate control method for subtle granule telescopic code based on H.264
CN1502207A (en) Method of performing video encoding rate control using bit budget
GB2459671A (en) Scene Change Detection For Use With Bit-Rate Control Of A Video Compression System
CN100574442C (en) Bit rate control method based on image histogram
US7480332B2 (en) Bit rate control method and apparatus for MPEG-4 video coding
CN111726613A (en) Video coding optimization method based on just noticeable difference
CN115767098A (en) Machine vision-oriented end-edge collaborative video coding method and video transmission system
US20050254576A1 (en) Method and apparatus for compressing video data
CN102724507B (en) GPU (graphic processing unit) accelerating encoder rate control method
US20080152009A1 (en) Scaling the complexity of video encoding
KR20040107850A (en) Apparatus and Method for Distortion Optimization of Moving Picture Compaction Encoder

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication