CN102148995A - Adaptive intra-frame code rate prediction control algorithm based on rate distortion - Google Patents

Adaptive intra-frame code rate prediction control algorithm based on rate distortion Download PDF

Info

Publication number
CN102148995A
CN102148995A CN 201010106495 CN201010106495A CN102148995A CN 102148995 A CN102148995 A CN 102148995A CN 201010106495 CN201010106495 CN 201010106495 CN 201010106495 A CN201010106495 A CN 201010106495A CN 102148995 A CN102148995 A CN 102148995A
Authority
CN
China
Prior art keywords
frame
mse
gop
algorithm based
control algorithm
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 201010106495
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.)
Chengdu Bosheng Information Technology Co., Ltd.
Original Assignee
CHENGDU SHIJIA ELECTRONICS INDUSTRIAL 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 SHIJIA ELECTRONICS INDUSTRIAL Co Ltd filed Critical CHENGDU SHIJIA ELECTRONICS INDUSTRIAL Co Ltd
Priority to CN 201010106495 priority Critical patent/CN102148995A/en
Publication of CN102148995A publication Critical patent/CN102148995A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to an adaptive intra-frame code rate prediction control algorithm based on rate distortion. In the algorithm, a novel code rate control model is provided in consideration of image complexity, cache state, scene change and other factors, thereby greatly improving encoding quality.

Description

Self-adaption intra-frame prediction frame bit rate control method based on rate distortion
Technical field
The present invention relates to field of video encoding, particularly a kind of adaptive infra-frame prediction frame Rate Control (Rate Control) algorithm based on rate distortion.
Background technology
H.264/AVC as the up-to-date video standard of ITU and MPEG joint development, obtained very big raising than traditional video standard.At present, existing a considerable amount of rate control algorithms propose in standard group, but their great majority all are at the P frame, are difficult to be directly applied for the I frame.In video coding system, be the key that encoder can satisfy the target bandwidth at last to the quality control of I frame.Because the bit number of I frame is more much bigger than same P frame or B frame, P frame, B frame can use the information of I frame to produce the image information of oneself simultaneously.Therefore, the quality decline of I frame can directly cause the quality of whole video sequence to descend.The present invention has considered factors such as image complexity, buffer status, scene change, proposes a kind of new Rate Control model, can improve coding quality significantly.
Summary of the invention
Because relation below the code check of I frame and MSE (MSE below appears being abbreviated as in mean square error) exist:
BitRate = ln ( 1 λMSE )
So algorithm of the present invention is not assert QP (QP below appears being abbreviated as in quantization parameter) and Qstep (Qstep below appears being abbreviated as in quantization step) and is linear relationship.
The objective of the invention is to realize by following steps:
1. the average gradient of computed image is weighed image complexity, and formula is as follows:
Grad = 1 MN Σ i = 1 M - 1 Σ j = 1 N - 1 ( | I i , j - I i + 1 , j | + | I i , j - I i , j + 1 | ) ; - - - ( 1 )
I wherein I, jFor present frame (i, the brightness value of j) locating, M are picture traverse, N is a picture altitude.
2. obtain the MSE of first I frame of i GOP according to the JVT-G012 algorithm, be expressed as MSE 1
3. according to test widely in a large number, find to exist between average gradient value and the output code flow pseudo-linear relation, according to the MSE of this Relationship Prediction present frame.It is as follows to be expressed as formula:
MSE i = MSE i - 1 × Grad i MG × 1 1 - BR i - 1 + θ ; - - - ( 2 )
MSE wherein iBe the I frame MSE value of i GOP (being current GOP), Grad iBe the average gradient value of i GOP (being current GOP), MG is the average of the average gradient of the I frame of having encoded before this sequence, and θ is a constant, BR iBe the memory space utilization rate of present encoding, formulate is as follows:
BR i = BF i Buffer _ Size ; - - - ( 3 )
BF wherein iFor behind i the GOP that encoded, the utilization rate of memory space.
4. according to test widely in a large number, the relation that draws between Qstep and the MSE can be expressed as following formula:
Qstep=α×MSE+β; (4)
Wherein α can calculate after finishing first I frame coding, and according to the difference of video sequence and difference, β for same video sequence, is worth unique for being constant.
The generation of determining scene change according to DOH (DOH below appears being abbreviated as in image histogram) whether, formula is as follows:
DOH n = 1 M × N Σ i = 0 255 | h n ( i ) - h n - 1 ( i ) | ; - - - ( 5 )
If the DOH value greater than 0.5, is then thought scene change has taken place.
For algorithm performance of the present invention is described, oppose than test with dissimilar video sequences and JVT-G012 algorithm, be specially: " Akyio ", " Suzie ", " Silent ", " Paris ", " Paris-Silent ", " Paris-Foreman ", " Silent-Suzie ", " Paris-Suzie ", " Foreman ".
Figure GSA00000011274100031
Table one
Can find out that from table 1 this compares with the JVT-G012 algorithm based on the self-adaption intra-frame prediction frame rate control algorithm of rate distortion, effect is obvious.
Specific implementation process
To this self-adaption intra-frame prediction frame rate control algorithm based on rate distortion, concrete implementation step is described below:
1. the average gradient of computed image is weighed image complexity, and formula is as follows:
Grad = 1 MN Σ i = 1 M - 1 Σ j = 1 N - 1 ( | I i , j - I i + 1 , j | + | I i , j - I i , j + 1 | ) ; - - - ( 1 )
I wherein I, jFor present frame (i, the brightness value of j) locating, M are picture traverse, N is a picture altitude.
2. obtain the MSE of first I frame of i GOP according to the JVT-G012 algorithm, be expressed as MSE 1
3. according to test widely in a large number, find to exist between average gradient value and the output code flow pseudo-linear relation, according to the MSE of this Relationship Prediction present frame.It is as follows to be expressed as formula:
MSE i = MSE i - 1 × Grad i MG × 1 1 - BR i - 1 + θ ; - - - ( 2 )
MSE wherein iBe the I frame MSE value of i GOP (being current GOP), Grad iBe the average gradient value of i GOP (being current GOP), MG is the average of the average gradient of the I frame of having encoded before this sequence, and θ is a constant, BR iBe the memory space utilization rate of present encoding, formulate is as follows:
BR i = BF i Buffer _ Size ; - - - ( 3 )
BF wherein iFor behind i the GOP that encoded, the utilization rate of memory space.
4. according to test widely in a large number, the relation that draws between Qstep and the MSE can be expressed as following formula:
Qstep=α×MSE+β; (4)
Wherein α can calculate after finishing first I frame coding, and according to the difference of video sequence and difference, β for same video sequence, is worth unique for being constant.
The generation of determining scene change according to DOH (DOH below appears being abbreviated as in image histogram) whether, formula is as follows:
DOH n = 1 M × N Σ i = 0 255 | h n ( i ) - h n - 1 ( i ) | ; - - - ( 5 )
If the DOH value greater than 0.5, is then thought scene change has taken place.

Claims (4)

1. the self-adaption intra-frame prediction frame rate control algorithm based on rate distortion is characterized in that, comprises the steps:
1) average gradient of computed image.
2) MSE of first I frame of i GOP of calculating.
3) according to the MSE of the Relationship Prediction present frame of average gradient value and output code flow.
4) parameter of linear relationship formula between calculating Qstep and the MSE.
5) calculate DOH, whether the generation of judgement scene change.
2. the self-adaption intra-frame prediction frame rate control algorithm based on rate distortion as claimed in claim 1 is characterized in that in the described step 3) formula of the MSE of prediction present frame:
MSE i = MSE i - 1 × Grad i MG × 1 1 - BR i - 1 + θ ; - - - ( 2 )
MSE wherein iBe the I frame MSE value of i GOP (being current GOP), Grad iBe the average gradient value of i GOP (being current GOP), MG is the average of the average gradient of the I frame of having encoded before this sequence, and θ is a constant, BR iBe the memory space utilization rate of present encoding, formulate is as follows:
BR i = BF i Buffer _ Size ; - - - ( 3 )
BF wherein iFor behind i the GOP that encoded, the utilization rate of memory space.
3. the self-adaption intra-frame prediction frame rate control algorithm based on rate distortion as claimed in claim 1 is characterized in that in the described step 4) linear relationship formula between the Qstep and MSE:
Qstep=α×MSE+β; (4)
Wherein α can calculate after finishing first I frame coding, and according to the difference of video sequence and difference, β for same video sequence, is worth unique for being constant.
4. the self-adaption intra-frame prediction frame rate control algorithm based on rate distortion as claimed in claim 1, the generation whether principle that it is characterized in that calculating the formula of DOH in the described step 5) and judge scene change:
DOH n = 1 M × N Σ i = 0 255 | h n ( i ) - h n - 1 ( i ) | ; - - - ( 5 )
If the DOH value greater than 0.5, is then thought scene change has taken place.
CN 201010106495 2010-02-04 2010-02-04 Adaptive intra-frame code rate prediction control algorithm based on rate distortion Pending CN102148995A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010106495 CN102148995A (en) 2010-02-04 2010-02-04 Adaptive intra-frame code rate prediction control algorithm based on rate distortion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010106495 CN102148995A (en) 2010-02-04 2010-02-04 Adaptive intra-frame code rate prediction control algorithm based on rate distortion

Publications (1)

Publication Number Publication Date
CN102148995A true CN102148995A (en) 2011-08-10

Family

ID=44422955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010106495 Pending CN102148995A (en) 2010-02-04 2010-02-04 Adaptive intra-frame code rate prediction control algorithm based on rate distortion

Country Status (1)

Country Link
CN (1) CN102148995A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534862A (en) * 2016-12-20 2017-03-22 杭州当虹科技有限公司 Video coding method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534862A (en) * 2016-12-20 2017-03-22 杭州当虹科技有限公司 Video coding method
CN106534862B (en) * 2016-12-20 2019-12-10 杭州当虹科技股份有限公司 Video coding method

Similar Documents

Publication Publication Date Title
CN103248893B (en) From H.264/AVC standard to code-transferring method and transcoder thereof the fast frame of HEVC standard
CN101547349B (en) Method for controlling code rate of secondary AVS encoding of video signal
CN100574427C (en) The control method of video code bit rate
EP2202986A1 (en) An adaptive predicting device and method
CN102281446B (en) Visual-perception-characteristic-based quantification method in distributed video coding
CN103636188B (en) Encoder-supervised imaging for video cameras
CN100574447C (en) Fast intraframe predicting mode selecting method based on the AVS video coding
CN101098473A (en) Picture coding method and apparatus
CN103442228B (en) Code-transferring method and transcoder thereof in from standard H.264/AVC to the fast frame of HEVC standard
CN103281530A (en) HEVC (High Efficiency Video Coding) rate control method based on rate distortion optimization
CN101895758B (en) H.264 code rate control method based on frame complexity
CN102148973A (en) Three-layer rate control method based on Lagrange's multiplier factors
WO2018120797A1 (en) Intra-frame prediction method for inter-frame prediction frame
CN107105240B (en) HEVC-SCC complexity control method and system
CN102625104B (en) Video coding method
CN104754335B (en) A kind of code rate controlling method for video coding
CN101202915A (en) Method and apparatus for selecting frame inner forecasting mode
CN102196253B (en) Video coding method and device based on frame type self-adaption selection
CN102377992B (en) Method and device for obtaining predicted value of motion vector
CN104113761A (en) Code rate control method for video encoding and encoder
KR20180056382A (en) Method and encoder system for encoding video
JP2006135557A (en) Moving picture encoding device
CN101511026B (en) Code rate control method for AVS secondary encode based on scene
CN102148995A (en) Adaptive intra-frame code rate prediction control algorithm based on rate distortion
CN116055726A (en) Low-delay layered video coding method, computer equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: CHENGDU BOSHENG INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHENGDU SHIJIA ELECTRONIC INDUSTRIAL CO., LTD.

Effective date: 20120620

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 610041 CHENGDU, SICHUAN PROVINCE TO: 610000 CHENGDU, SICHUAN PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20120620

Address after: 610000 Chengdu Province, high tech Zone, North Road, No. 19

Applicant after: Chengdu Bosheng Information Technology Co., Ltd.

Address before: 610041, nine Avenue, Wuhou District, Sichuan, Chengdu

Applicant before: Chengdu Shijia Electronics industrial Co., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110810