CN101325711A - Method for controlling self-adaption code rate based on space-time shielding effect - Google Patents
Method for controlling self-adaption code rate based on space-time shielding effect Download PDFInfo
- Publication number
- CN101325711A CN101325711A CN 200810040631 CN200810040631A CN101325711A CN 101325711 A CN101325711 A CN 101325711A CN 200810040631 CN200810040631 CN 200810040631 CN 200810040631 A CN200810040631 A CN 200810040631A CN 101325711 A CN101325711 A CN 101325711A
- Authority
- CN
- China
- Prior art keywords
- frame
- complexity
- gop
- macro block
- bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention relates to a control method of self-adapted code rate based on time-space masking effect. The method unifies a macroscopic description that reflects features in some part of a visual sensing system, especially merging the perceiving property of eye about motion information with other sensing features, which includes: preprocessing the original sequence of video code; then calculating frame level complexity and degrees of perception of each macro-block using time-space masking effect; the self-adapted code rate control algorithm distributes frame bit number according to frame complexity; finally determining the quantization parameter of macro-block according to the degree of perception of the macro-block. The method obtains a better object visual quality under the condition of identical or less bit number in comparison with the code rate control algorithm on the JM10.2 edition of H.264 check model.
Description
Technical field
The present invention relates to a kind of method for controlling self-adaption code rate based on space-time shielding effect, in the Mathematical Modeling with macroscopic description unification to an integral body of reflection visually-perceptible system Partial Feature, particularly the apperceive characteristic of human eye for movable information merged mutually with other apperceive characteristics.Compare with the modified model VM8 rate control algorithm H.264, this method can obtain better subjective visual quality do with bit number still less.
Background technology
Multimedia technology based on computer technology, video, audio frequency and the communication technology makes people's life more rich and varied by the Internet network.The compress technique that adopts in the nowadays various video encoding standards, main information theory based on Shannon, the video quality evaluation criterion of mathematical computations is convenient in employing, removes the statistical redundancy of video information on room and time, thereby obtains the video code flow that is subjected to information entropy constrained.But along with being gradually improved and maturation of various compression coding technologies, compression efficiency has reached higher level, and compression ratio has been difficult to further raising near the limit under the Shannon theory framework.Satisfy more and more higher actual demand in order further to improve compression efficiency, it is extremely urgent to seek the new method and the technology that improve compression efficiency.In recent years, coding method in conjunction with the visually-perceptible model receives great concern, these methods mainly are to excavate and utilize the human visual system (human video system, characteristic HVS) improves compression efficiency, produces better lower compressed bit stream of subjective quality.
Existing method for video coding adopts rate-distortion optimization to remove the statistical redundancy information of video mostly, and the criterion of estimating the video coding distortion in this method is generally mean square error (MSE) and Y-PSNR (PSNR).This interpretational criteria and the human visual system that gets along well (HVS) are in full accord for the evaluation of video, therefore there is the defective that can not remove physiology/psychographic information redundancy in such method for video coding, and human eye is final information receiver, and the frame that signal to noise ratio is high might not have best subjective visual quality do.
Existing bit rate control method based on area-of-interest (ROI) is based on the control method of multi-object, or on the rate distortion equation, make an issue of, they do not consider this final recipient of human eye, can not determine which zone of frame and can use still less bit number, which zone will reach better subjective visual quality do with the more bits number.Or reach the same subjective visual quality do with still less bit number.
Shielding effect is a kind of important HVS characteristic, is meant under the situation that a plurality of visual stimuli exist, and the existence of a visual stimuli makes the visible threshold of another excitation promote the phenomenon of (or reduction of observability).The existence that is to say shielding effect will cause the change of the sensitivity threshold of vision, both can be to suppress, and also can be to strengthen.Occur in time or spatial domain according to shielding effect, can be divided into spatial domain and cover with time-domain and cover.
The time shielding effect is variation discontinuous lifting or the decline that causes the vision threshold value in time owing to brightness.Just explanation is in frame of video for this, and when the target of scene sudden change or rapid movement, the vision threshold value will promote to some extent, and this moment, the perception of human eyes degree will reduce greatly.
And the main forms of space shielding effect is covered for contrast.Discover that in contrast is covered when signal had identical frequency distribution and directional characteristic with the signal that causes shielding effect, the contrast shielding effect was the strongest.According to the space shielding effect, human eye is easier to discover to the distortion ratio of low frequency region, and the distortion of high-frequency region is difficult for discovering.
Given this, the inventive method is from the human visual system, utilize space-time shielding effect to set up a sensor model, by the complexity of this Model Calculation frame of video and the perceptibility of each macro block, utilize complexity and perceptibility to regulate the bit number of frame and macro block, make frame of video change the better subjective visual quality do of acquisition under the little situation at code check and PSNR.
Summary of the invention
The objective of the invention is defective at the prior art existence, a kind of method for controlling self-adaption code rate of imitating based on space-time shielding is provided, utilize space-time shielding effect to calculate the perceptibility of frame level complexity and macro-block level, utilize complexity and perceptibility in GOP, to regulate frame level bit number and macro-block level bit number then.The frame that complexity is high, self-adaption code rate control algolithm will give its more bits number.And for human eye interesting areas in the image, rate control algorithm will give this zone more bits number, promote this regional visual quality; Otherwise, then give less bit number for non-area-of-interest, but people's subjective visual quality do does not descend at this moment.This algorithm can make video coding change the better subjective visual quality do of acquisition under the little situation at code check and PSNR.
For reaching above-mentioned purpose, design of the present invention is:
As shown in Figure 1, at first the original series to video coding carries out preliminary treatment, utilize space-time shielding effect to calculate the perceptibility of frame level complexity and each macro block then, the self-adaption code rate control algolithm is distributed the frame bit number according to the frame complexity again, and the quantization parameter of macro block is then finally determined by the perceptibility of this macro block.
According to the foregoing invention design, the present invention adopts following technical proposals:
A kind of method for controlling self-adaption code rate based on space-time shielding, it is characterized in that particularly the apperceive characteristic of human eye for movable information being merged mutually with other apperceive characteristics in the Mathematical Modeling with macroscopic description unification to an integral body of reflection sensory perceptual system Partial Feature; Its concrete operations step is as follows:
(1) input video frame;
(2) to the frame of video preliminary treatment: uncoded original series is carried out Filtering Processing;
(3) set up sensor model: utilize space-time shielding effect to calculate the frame complexity of current encoded frame and the perceptibility of each macro block,, do not calculate its macro block perceptibility if the I frame then only calculates the frame complexity;
(4) utilize the self-adaption code rate control algolithm to adjust the quantization parameter of frame bit number and macro block;
(5) utilize the quantization parameter revised to the frame of video recompile.
As follows in the above-mentioned steps (2) to the pretreated method of frame of video:
Present frame utilized Gauss's template of 5 * 5 carry out gaussian filtering, template is as follows:
The step of setting up sensor model in the above-mentioned steps (3) is:
1. ask the border to obtain boundary image f ' (n) to the image of filtering with the Sobel algorithm;
2. ask the accumulation frame poor to the image of filtering, computing formula is as follows, wherein f " (n) the accumulation frame of expression n two field picture is poor, f (n) expression n frame original series image:
3. to boundary image f ' (n) and accumulative total frame difference image f " (n) carry out and computing, just obtained the prospect boundary image, fill then, can obtain foreground image;
4. the smoothness that auto-correlation computation obtains this macro block is carried out in the brightness of the macro block in the original image, wherein Smooth represents the smoothness of current macro, n gray values of pixel points of MBgray (n) expression current macro:
5. the macro block in the original image is carried out the activity Active that the gradient computing obtains this macro block, I in the following formula
I, jThe brightness value of the capable j row of expression current macro i:
6. the macroblock motion vector in the original image is carried out the time masking property that computing obtains this macro block, MVx, MVy represent the motion vector of the level and the vertical direction of current macro in the following formula, and MVz represents that the time of this macro block covers characteristic:
7. calculated the perceptibility Focus of this macro block by above Several Parameters, wherein a, b, c are weighting parameters; Forward represents that whether current macro is the macro block in the prospect, if current macro is a foreground blocks, then Forward equals 1, otherwise equals 0:
Focus=a*MVz+b*Smooth+c*Active+Forward
8. calculate the complexity Complexity of this frame by the perceptibility of all macro blocks in the frame:
The step of the self-adaption code rate control algolithm in the above-mentioned steps (4) is as follows:
1. according to the bandwidth of Set For Current and the length of frame per second and image sets GOP, current GOP is distributed a target bit
T wherein
r(n
i, 0) and be the GOP target bit, Bit_rate is a bandwidth, Frame_rate is a frame per second, N
GopBe GOP length;
If 2. present frame is the I frame,, adjust the quantization parameter QP of I frame then according to the complexity of this frame
iα, β, γ are for regulating parameter in the following formula; Complexity is the complexity of present frame, and a, b, c are threshold value:
If 3. present frame is the P frame, then distribute target bit to be:
F (n in the formula
I, j) the preallocated bit number of the current P frame of expression, bit_rate represents bandwidth, frame_rate represents frame per second, Tbl (n
I, j) expression i GOP j the preallocated bit number of P frame, B
c(n
I, j) j P frame of i GOP of expression preceding actual bit number that occupies of buffering area of encoding, W
p(n
I, j-1) complexity of j-1 P frame of i GOP of expression, T
r(n
I, j) j P frame of i GOP of expression preceding remaining bit number of GOP of encoding, α and β are constant;
4. according to the complexity of this P frame, adjust its target bit f (n
I, j) be:
Wherein α, β, γ are for regulating parameter; Complexity is the complexity of present frame, and a, b, c are threshold value;
5. according to target bit, calculate the quantization parameter QP of this frame by R-Q secondary rate quantitative model;
6. revise its quantization parameter QP according to the perceptibility of macro block:
QP in the following formula
nThe quantization parameter of representing n macro block, Focus are represented the macro block perceptibility, and α, β, γ are for regulating parameter, and a, b are threshold value.
The step of the adjustment frame bit number in the above-mentioned steps (4) is as follows:
1. the bit number T before the coding of the j frame among i GOP
r(n
i, j)=T
r(n
i, j-1)-A (n
i, j-1), A (n wherein
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression;
2. the remaining bits number of buffering area is updated to R
r(n
i, j), it represents the remaining bits number of the j frame coding back buffering area of i GOP, A (n
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression, Bit_rate is a bandwidth, Frame_rate is a frame per second.
The present invention compares with the rate control algorithm on H.264 the verification model JM10.2 version, have following outstanding feature and advantage: the present invention can reasonably adjust the bit number of distributing to GOP in its interframe, the bit number of distributing to coded frame reasonably can be adjusted between human eye area-of-interest and non-area-of-interest, under identical even still less bit number situation, be obtained better subjective visual quality do.
Description of drawings
Fig. 1 is the method for controlling self-adaption code rate FB(flow block) based on space-time shielding effect of the present invention.
Fig. 2 is the structured flowchart of sensor model among Fig. 1.
Fig. 3 is the structured flowchart of self-adaption code rate control algolithm among Fig. 1.
Fig. 4 is the employed bit number of I frame of rate control algorithm coding in the JM10.2 verification model and the comparison diagram of the employed bit number of method for controlling self-adaption code rate of the present invention coding I frame.
Fig. 5 is the contrast of the I two field picture and the method for controlling self-adaption code rate of the present invention coding I frame coded image of rate control algorithm coding in the JM10.2 verification model.
Fig. 6 is the employed bit number of P frame of rate control algorithm coding in the JM10.2 verification model and the comparison diagram of the employed bit number of method for controlling self-adaption code rate of the present invention coding P frame.
Fig. 7 is the contrast of the P two field picture and the method for controlling self-adaption code rate of the present invention coding P frame coded image of rate control algorithm coding in the JM10.2 verification model.
Embodiment
Details are as follows in conjunction with the accompanying drawings for one embodiment of the present of invention:
This method for controlling self-adaption code rate based on space-time shielding effect is by flow chart shown in Figure 1, be that programming realizes that Fig. 5 and Fig. 7 are the contrast of JM10.2 verification model and coded image of the present invention on the PC test platform of Athlon x2 2.0GHz, internal memory 1024M at CPU.
Referring to Fig. 1, this is based on the method for controlling self-adaption code rate of space-time shielding effect, (the I frame only obtains the frame complexity to have obtained the frame complexity of current encoded frame and the perceptibility of each macro block by sensor model, do not calculate its macro block perceptibility), utilize the frame complexity that the bit number of its distribution is adjusted then, utilize the perceptibility of its macro block that the quantization parameter of macro block is adjusted, this invention can utilize identical even bit number still less obtains better subjective visual quality do.
As shown in Figure 2, this at first sets up a sensor model based on the method for controlling self-adaption code rate of space-time shielding effect, and this model is based on the space-time shielding effect basis.Sensor model will reflect in the Mathematical Modeling of macroscopic description unification to an integral body of HVS of visually-perceptible system Partial Feature.Utilize space-time shielding effect, set up a sensor model based on human visual system (HVS).The main effect of sensor model is exactly an importance of analyzing each macro block (MB) in the frame of video, according to the size of its importance to perceptibility of its mark, the complexity of adding up this frame then.The analysis of perceptibility has then utilized space-time shielding effect, and the difference of motion size, activity, texture complexity and front and back scape by calculating MB is taken all factors into consideration.
Perceptibility (Focus) is a key parameter of distinguishing macro block importance in the frame of video.This CALCULATION OF PARAMETERS is that texture complexity, motion size, front and back scape and the activity by macro block comes weighting to differentiate.The calculating of perceptibility is finished by several aspects once:
(1) according to the space shielding effect, the complicated more zone of texture can hide many more noises, and the ability that smooth region is hidden noise comparatively speaking a little less than.Because the histogram information of smooth region is more concentrated, histogram after the translation and former histogram almost are quadratures, and therefore, this algorithm utilizes the brightness histogram information of macro block to calculate the texture complexity of this macro block.
(1)
MBgray in the formula (n) represents the number that this macro block brightness value is the pixel of n, and Smooth represents the texture complexity.
(2) according to human visual system (HVS), human eye is far longer than the attention rate of background image to the attention rate of foreground image in the video.Cutting apart of sport foreground, in order to reduce algorithm complex as much as possible, save the scramble time, what this algorithm adopted is a kind of simple effective method.At first to image sequence do inter-frame difference with every frame difference, then two class difference result are accumulated, the accumulation results cluster of taking to occur simultaneously is obtained the sport foreground profile.But the profile that comes out so still is not very perfect, therefore the boundary graph that this profile is drawn with the Sobel operator again with, after the boundary profile binary conversion treatment that draws at last, scanning filling can obtain the sport foreground in the image sequence.
(3) according to the time shielding effect, when occurrence scene switches or object when bigger motion is arranged, human eye needs the process of an adaptation, this moment, the rate respectively of human eye can descend, so less bit number can be distributed in these zones, and human eye has bigger attention rate among a small circle movement of objects, and more bit number will be distributed in these zones.So the differentiation to the size of moving is a relatively more crucial part.We find in the experiment, in the general video sequence motion amplitude of motion vector greater than the motion of 32 fritter usually enough greatly, when the MB motion amplitude greater than 32 the time, the resolution to this MB of human eye can descend significantly.So we are defined as 32 with the discrimination threshold of motion vector size.The calculating of MB motion vector as shown in Equation 2, MVx, MVy represent the motion vector of the level and the vertical direction of current macro in the formula, MVz represents that the time of this macro block covers characteristic.
(4) for video image, the activity of MB is big more, just needs many more bit numbers, and on the contrary, if the bit number of the big macroblock allocation of activity has lacked, the well as subjective video quality of image will seriously descend so.Gradient method is adopted in the calculating of activity in this algorithm, as shown in Equation (3), and I
I, jThe brightness value of the capable j row of expression current macro i.
By above four steps, the calculating of perceptibility by motion vector MVz, texture complexity Smooth, prospect Forward, these 4 parameter weightings of activity size Active calculate, as formula 4.Wherein a, b, c are weighting parameters; Forward represents that whether current macro is the macro block in the prospect, if current macro is a foreground blocks, then Forward equals 1, otherwise equals 0.
Focus=a*MVz+b*Smooth+c*Active+Forward (4)
The calculating of frame complexity Complexity is then got by the Focus statistics of all macro blocks, as formula (5).
The self-adaption code rate control algolithm is to carry out the distribution of bit number and the adjustment of quantization parameter on the basis of sensor model, and as shown in Figure 3, its committed step is as follows:
The first, the distribution of P frame bit number
The Rate Control model of this algorithm is based on the VM8 model modification, and the distribution of P frame bit number as shown in Equation (6).F (n in the formula
I, j) the preallocated bit number of the current P frame of expression, bit_rate represents bandwidth, frame_rate represents frame per second, Tbl (n
I, j) expression i GOP j the preallocated bit number of P frame, B
c(n
I, j) j P frame of i GOP of expression preceding actual bit number that occupies of buffering area of encoding, W
p(n
I, j-1) complexity of j-1 P frame of i GOP of expression, T
r(n
I, j) j P frame of i GOP of expression preceding remaining bit number of GOP of encoding, α and β are constant.Sub-distribution then is to carry out according to the complexity of present frame again.
(6)
P frame bit number depends primarily on that target bit and several two parameters of remaining bits take all factors into consideration as can be seen from formula 6.Complexity W in the formula
p(n
I, j-1) be that complexity weighting by quantization parameter, preassignment bit number and former frame gets, with frame complexity in herein the self-adaption code rate algorithm be two notions, the frame complexity in this paper algorithm is calculated by sensor model.Obtaining f (n
I, j) after, assigned the first time of P frame bit number.
The second, set up sensor model
Utilize sensor model to calculate the complexity of this frame and the perceptibility of interior each macro block of frame, shown in formula 4 and 5.
The 3rd, the secondary distribution of P frame bit number
Carry out the second time according to frame complexity Complexity and distribute, as formula (7).
Wherein α, β, γ are for regulating parameter; Complexity is the complexity of present frame, and a, b, c are threshold value.
The 4th, the correction of macroblock quantization parameter
The distribution of similar and frame bit number, the distribution of macro block bit number also is to count these two parameters according to the macro block actual bit of the complexity of macro block and former frame same position to determine.In conjunction with sensor model, utilize each macro block perceptibility we adjust this and revise quantization parameter.Final quantization parameter is decided by the quantization parameter and the correction quantization parameter of this macro block.
According to above-mentioned theory, the concrete operations step of present embodiment is as follows:
(1) uncoded original series is carried out Filtering Processing, preprocess method is to utilize Gauss's template of 5 * 5 to carry out gaussian filtering to present frame, and template is as follows:
(2) set up the perceptibility that sensor model calculates frame level complexity and macro block, its process is:
1. ask the border to obtain boundary image f ' (n) to the image of filtering with the Sobel algorithm;
2. ask the accumulation frame poor to the image of filtering, computing formula is as follows, wherein f " (n) the accumulation frame of expression n two field picture is poor, f (n) expression n frame original series image:
3. to boundary image f ' (n) and accumulative total frame difference image f " (n) carry out and computing, just obtained the prospect boundary image, fill then, can obtain foreground image;
4. the smoothness that auto-correlation computation obtains this macro block is carried out in the brightness of the macro block in the original image, wherein Smooth represents the smoothness of current macro, n gray values of pixel points of MBgray (n) expression current macro:
5. the macro block in the original image is carried out the activity Active that the gradient computing obtains this macro block, I in the following formula
I, jThe brightness value of the capable j row of expression current macro i:
6. the macroblock motion vector in the original image is carried out the time masking property that computing obtains this macro block, MVx, MVy represent the motion vector of the level and the vertical direction of current macro in the following formula, and MVz represents that the time of this macro block covers characteristic:
7. calculated the perceptibility Focus of this macro block by above Several Parameters, wherein a, b, c are weighting parameters; Forward represents that whether current macro is the macro block in the prospect, if current macro is a foreground blocks, then Forward equals 1, otherwise equals 0:
Focus=a*MVz+b*Smooth+c*Active+Forward
8. calculate the complexity Complexity of this frame by the perceptibility of all macro blocks in the frame:
(3) the frame level complexity that two steps calculated more than the utilization and the perceptibility of macro block, the process of self-adaption code rate control algolithm is as follows:
1. according to the bandwidth of Set For Current and the length of frame per second and image sets GOP, current GOP is distributed a target bit
T wherein
r(n
i, 0) and be the GOP target bit, Bit_rate is a bandwidth, Frame_rate is a frame per second, N
GopBe GOP length;
If 2. present frame is the I frame,, adjust the quantization parameter QP of I frame then according to the complexity of this frame
iα, β, γ are for regulating parameter in the following formula; Complexity is the complexity of present frame, and a, b, c are threshold value:
If 3. present frame is the P frame, then distribute target bit to be:
F (n in the formula
I, j) the preallocated bit number of the current P frame of expression, bit_rate represents bandwidth, frame_rate represents frame per second, Tbl (n
I, j) expression i GOP j the preallocated bit number of P frame, B
c(n
I, j) j P frame of i GOP of expression preceding actual bit number that occupies of buffering area of encoding, W
p(n
I, j-1) complexity of j-1 P frame of i GOP of expression, T
r(n
I, j) j P frame of i GOP of expression preceding remaining bit number of GOP of encoding, α and β are constant.
4. according to the complexity of this P frame, adjust its target bit f (n
I, j) be:
Wherein α, β, γ are for regulating parameter; Complexity is the complexity of present frame, and a, b, c are threshold value:
5. according to target bit, calculate the quantization parameter QP of this frame by R-Q secondary rate quantitative model;
6. revise its quantization parameter QP according to the perceptibility of macro block:
QP in the following formula
nThe quantization parameter of representing n macro block, Focus are represented the macro block perceptibility, and α, β, γ are for regulating parameter, and a, b are threshold value.
(4) step of the parameter update of rate control algorithm is as follows:
1. the bit number T before the coding of the j frame among i GOP
r(n
i, j)=T
r(n
i, j-1)-A (n
i, j-1), A (n wherein
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression;
2. the remaining bits number of buffering area is updated to:
R wherein
r(n
i, j) the remaining bits number of the j frame coding back buffering area of i GOP of expression, A (n
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression, Bit_rate is a bandwidth, Frame_rate is a frame per second.
Example when below providing the input video form and be 352 * 288 CIF adopts the H.264 encoder of JM10.2 version that standard test sequences is encoded.H.264 the configuration of encoder is as follows: BaselineProfile, and IPPP, per 15 frames insert 1 I frame, 1 reference frame, bandwidth is set to 256kbps, and frame per second is set to 30fps, and the initial quantization parameter is set to 32.
Adopt typical standard test sequences deadline to test as input video, as seen from Figure 4, the used average number of bits of I frame of self-adaption code rate control algolithm is obviously lacked than the average number of bits of I frame in the rate control algorithm of verification model.Subjective visual quality do as shown in Figure 5, upper left for the 0th two field picture of verification Model Reconstruction, it is first I frame, used bit number is 71080, upper right is the image of corresponding adaptive model, and used bit number is 58712, and both differ 12368 bits, but subjective visual quality do does not descend, and human eye can not distinguished the two difference.
The used bit number of P frame more as shown in Figure 6, the last a few two field picture bit numbers of each GOP descend relatively more severely in the verification model, in addition have only a few two field picture bit numbers in front 1/4th less than, make picture quality unbalanced.On the contrary, the bit number of several two field pictures in back promotes to some extent in the self-adaption code rate control algolithm, in order to prevent above-mentioned situation, makes the visual quality for images unanimity exactly.
And the used average number of bits of each GOP is as shown in table 1, and the frame of video complexity in GOP is higher, and when strenuous exercise was arranged, the bit number of distributing to GOP this moment was more, as the 7th GOP.When the GOP complexity is lower, in the time of reaching higher subjective visual quality do with less bit number, the bit number of then distributing to GOP is less.Each GOP of self-adaption code rate control algolithm based on sensor model lacks than the employed bit number of verification model on average, but has reached better subjective visual quality do, as shown in Figure 7.
The comparison of table 1GOP average number of bits
GOP
1 2 3 4 5 6 7 8 Average
Type
Verification model 8,781 8,576 8,476 8,555 8,638 8,533 8,867 8,276 8575
Sensor model 7,624 7,386 7,291 5,875 7,189 9,242 1,138 9,877 58134
Claims (5)
1, a kind of method for controlling self-adaption code rate based on space-time shielding effect, it is characterized in that particularly the apperceive characteristic of human eye for movable information being merged mutually with other apperceive characteristics in the Mathematical Modeling with macroscopic description unification to an integral body of reflection visually-perceptible system Partial Feature; Its concrete operations step is as follows:
A. input video frame;
B. to the frame of video preliminary treatment: uncoded original series is carried out Filtering Processing;
C. set up sensor model: utilize space-time shielding effect to calculate the frame complexity of current encoded frame and the perceptibility of each macro block,, do not calculate its macro block perceptibility if the I frame then only calculates the frame complexity;
D. utilize the self-adaption code rate control algolithm to adjust the quantization parameter of frame bit number and macro block;
E. utilize the quantization parameter of having revised to the frame of video recompile.
2, the self-adaption code rate control algolithm based on space-time shielding effect according to claim 1, it is characterized in that in the described step (2) being to utilize Gauss's template of 5 * 5 to carry out gaussian filtering to present frame to the pretreated method of frame of video, template is as follows:
3, the self-adaption code rate control algolithm based on space-time shielding effect according to claim 1 is characterized in that the step of the perceptibility of the calculating frame complexity of setting up sensor model in the described step (3) and macro block is:
1. ask the border to obtain boundary image f ' (n) to the image of filtering with the Sobel algorithm;
2. ask the accumulation frame poor to the image of filtering, computing formula is as follows, wherein f " (n) the accumulation frame of expression n two field picture is poor, f (n) expression n frame original series image:
3. to boundary image f ' (n) and accumulative total frame difference image f " (n) carry out and computing, just obtained the prospect boundary image, fill then, can obtain foreground image;
4. the smoothness that auto-correlation computation obtains this macro block is carried out in the brightness of the macro block in the original image, wherein Smooth represents the smoothness of current macro, n gray values of pixel points of MBgray (n) expression current macro:
5. the macro block in the original image is carried out the activity Active that the gradient computing obtains this macro block, I in the following formula
I, jThe brightness value of the capable j row of expression current macro i:
6. the macroblock motion vector in the original image is carried out the time masking property that computing obtains this macro block, MVx, MVy represent the motion vector of the level and the vertical direction of current macro in the following formula, and MVz represents that the time of this macro block covers characteristic:
7. calculated the perceptibility Focus of this macro block by above Several Parameters, wherein a, b, c are weighting parameters; Forward represents that whether current macro is the macro block in the prospect, if current macro is a foreground blocks, then Forward equals 1, otherwise equals 0:
Focus=a*MVz+b*Smooth+c*Active+Forward
8. calculate the complexity Complexity of this frame by the perceptibility of all macro blocks in the frame:
4, the self-adaption code rate control algolithm based on space-time shielding effect according to claim 1 is characterized in that the step of the self-adaption code rate control algolithm in the described step (4) is as follows:
1. according to the bandwidth of Set For Current and the length of frame per second and image sets GOP, current GOP is distributed a target bit
T wherein
r(n
i, 0) and be the GOP target bit, Bit_rate is a bandwidth, Frame_rate is a frame per second, N
GopBe GOP length;
If 2. present frame is the I frame,, adjust the quantization parameter QP of I frame then according to the complexity of this frame
iα, β, γ are for regulating parameter in the following formula; Complexity is the complexity of present frame, and a, b, c are threshold value:
If 3. present frame is the P frame, then distribute target bit to be:
F (n in the formula
I, j) the preallocated bit number of the current P frame of expression, bit_rate represents bandwidth, frame_rate represents frame per second, Tb1 (n
I, j) expression i GOP j the preallocated bit number of P frame, B
c(n
I, j) j P frame of i GOP of expression preceding actual bit number that occupies of buffering area of encoding, W
p(n
I, j-1) complexity of j-1 P frame of i GOP of expression, T
r(n
I, j) j P frame of i GOP of expression preceding remaining bit number of GOP of encoding, α and β are constant;
4. according to the complexity of this P frame, adjust its target bit f (n
I, j) be:
Wherein α, β, γ are for regulating parameter; Complexity is the complexity of present frame, and a, b, c are threshold value;
5. according to target bit, calculate the quantization parameter QP of this frame by R-Q secondary rate quantitative model;
6. revise its quantization parameter QP according to the perceptibility of macro block:
QP in the following formula
nThe quantization parameter of representing n macro block, Focus are represented the macro block perceptibility, and α, β, γ are for regulating parameter, and a, b are threshold value.
5, the self-adaption code rate control algolithm based on space-time shielding effect according to claim 1 is characterized in that the step of the adjustment frame bit number in the described step (4) is as follows:
1. the bit number T before the coding of the j frame among i GOP
r(n
i, j)=Tr (n
i, j-1)-A (n
i, j-1), A (n wherein
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression;
2. the remaining bits number of buffering area is updated to:
R wherein
r(n
i, j) the remaining bits number of the j frame coding back buffering area of i GOP of expression, A (n
i, j-1) the actual used bit number of j-1 frame coding of i GOP of expression, Bit_rate is a bandwidth, Frame_rate is a frame per second.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810040631 CN101325711A (en) | 2008-07-16 | 2008-07-16 | Method for controlling self-adaption code rate based on space-time shielding effect |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810040631 CN101325711A (en) | 2008-07-16 | 2008-07-16 | Method for controlling self-adaption code rate based on space-time shielding effect |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101325711A true CN101325711A (en) | 2008-12-17 |
Family
ID=40188992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810040631 Pending CN101325711A (en) | 2008-07-16 | 2008-07-16 | Method for controlling self-adaption code rate based on space-time shielding effect |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101325711A (en) |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101827267A (en) * | 2010-04-20 | 2010-09-08 | 上海大学 | Code rate control method based on video image segmentation technology |
CN101527846B (en) * | 2008-12-19 | 2010-11-03 | 无锡云视界科技有限公司 | H.264 variable bit rate control method based on Matthew effect |
CN101945275A (en) * | 2010-08-18 | 2011-01-12 | 镇江唐桥微电子有限公司 | Video coding method based on region of interest (ROI) |
CN101534444B (en) * | 2009-04-20 | 2011-05-11 | 杭州华三通信技术有限公司 | Image processing method, system and device |
CN102231825A (en) * | 2010-06-30 | 2011-11-02 | 无锡中星微电子有限公司 | Bite rate control method and apparatus thereof |
CN103079065A (en) * | 2012-12-27 | 2013-05-01 | 华为技术有限公司 | Video data processing method and device |
CN103188493A (en) * | 2011-12-28 | 2013-07-03 | 佳能株式会社 | Image encoding apparatus and image encoding method |
US20140254663A1 (en) * | 2013-03-11 | 2014-09-11 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
CN105049850A (en) * | 2015-03-24 | 2015-11-11 | 上海大学 | HEVC (High Efficiency Video Coding) code rate control method based on region-of-interest |
CN106331707A (en) * | 2016-08-30 | 2017-01-11 | 上海大学 | Asymmetric perceptual video coding system and method based on just noticeable distortion model |
WO2017020181A1 (en) * | 2015-07-31 | 2017-02-09 | SZ DJI Technology Co., Ltd. | Method of sensor-assisted rate control |
CN106572352A (en) * | 2016-10-21 | 2017-04-19 | 浙江大华技术股份有限公司 | Keyframe size control method and device |
CN106688232A (en) * | 2014-09-11 | 2017-05-17 | 欧几里得发现有限责任公司 | Perceptual optimization for model-based video encoding |
CN106937118A (en) * | 2017-03-13 | 2017-07-07 | 西安电子科技大学 | A kind of bit rate control method being combined based on subjective area-of-interest and time-space domain |
CN107454408A (en) * | 2017-06-28 | 2017-12-08 | 深圳中维世纪科技有限公司 | A kind of method of Image Coding code check dynamic adjustment |
CN108769693A (en) * | 2011-06-10 | 2018-11-06 | 茨特里克斯系统公司 | Quality perceive it is video optimized in macro-block-level self-adaptive quantization |
CN108810530A (en) * | 2018-07-12 | 2018-11-13 | 珠海亿智电子科技有限公司 | A kind of AVC bit rate control methods based on human visual system |
CN109862359A (en) * | 2018-12-29 | 2019-06-07 | 北京数码视讯软件技术发展有限公司 | Bit rate control method, device and electronic equipment based on hierarchical B-frame |
WO2019184643A1 (en) * | 2018-03-28 | 2019-10-03 | 腾讯科技(深圳)有限公司 | Video coding code rate control method, apparatus and device, and storage medium |
WO2020103384A1 (en) * | 2018-11-19 | 2020-05-28 | 浙江宇视科技有限公司 | Video encoding method and apparatus, electronic device, and computer readable storage medium |
US10708617B2 (en) | 2015-07-31 | 2020-07-07 | SZ DJI Technology Co., Ltd. | Methods of modifying search areas |
US10977498B2 (en) | 2016-10-18 | 2021-04-13 | Zhejiang Dahua Technology Co., Ltd. | Methods and systems for video processing |
CN112861852A (en) * | 2021-01-19 | 2021-05-28 | 北京金山云网络技术有限公司 | Sample data screening method and device, electronic equipment and storage medium |
-
2008
- 2008-07-16 CN CN 200810040631 patent/CN101325711A/en active Pending
Cited By (46)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101527846B (en) * | 2008-12-19 | 2010-11-03 | 无锡云视界科技有限公司 | H.264 variable bit rate control method based on Matthew effect |
CN101534444B (en) * | 2009-04-20 | 2011-05-11 | 杭州华三通信技术有限公司 | Image processing method, system and device |
CN101827267B (en) * | 2010-04-20 | 2012-07-04 | 上海大学 | Code rate control method based on video image segmentation technology |
CN101827267A (en) * | 2010-04-20 | 2010-09-08 | 上海大学 | Code rate control method based on video image segmentation technology |
CN102231825A (en) * | 2010-06-30 | 2011-11-02 | 无锡中星微电子有限公司 | Bite rate control method and apparatus thereof |
CN101945275B (en) * | 2010-08-18 | 2012-10-24 | 镇江唐桥微电子有限公司 | Video coding method based on region of interest (ROI) |
CN101945275A (en) * | 2010-08-18 | 2011-01-12 | 镇江唐桥微电子有限公司 | Video coding method based on region of interest (ROI) |
CN108769693B (en) * | 2011-06-10 | 2022-07-08 | 拜特移动网络创新有限责任公司 | Macroblock-level adaptive quantization in quality-aware video optimization |
CN108769693A (en) * | 2011-06-10 | 2018-11-06 | 茨特里克斯系统公司 | Quality perceive it is video optimized in macro-block-level self-adaptive quantization |
US9571828B2 (en) | 2011-12-28 | 2017-02-14 | Canon Kabushiki Kaisha | Image encoding apparatus, image encoding method and program |
CN103188493A (en) * | 2011-12-28 | 2013-07-03 | 佳能株式会社 | Image encoding apparatus and image encoding method |
CN103188493B (en) * | 2011-12-28 | 2017-04-26 | 佳能株式会社 | Image encoding apparatus and image encoding method |
CN103079065A (en) * | 2012-12-27 | 2013-05-01 | 华为技术有限公司 | Video data processing method and device |
CN103079065B (en) * | 2012-12-27 | 2016-08-03 | 华为技术有限公司 | A kind of video data handling procedure and device |
US9762901B2 (en) | 2013-03-11 | 2017-09-12 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
US10091500B2 (en) | 2013-03-11 | 2018-10-02 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
US20140254663A1 (en) * | 2013-03-11 | 2014-09-11 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
CN104919796B (en) * | 2013-03-11 | 2018-11-27 | 联发科技股份有限公司 | Use the method for video coding and associated video code device of the visual quality after at least assessing |
WO2014139396A1 (en) * | 2013-03-11 | 2014-09-18 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
US9967556B2 (en) * | 2013-03-11 | 2018-05-08 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
CN104919796A (en) * | 2013-03-11 | 2015-09-16 | 联发科技股份有限公司 | Video coding method using at least evaluated visual quality and related video coding apparatus |
US9756326B2 (en) | 2013-03-11 | 2017-09-05 | Mediatek Inc. | Video coding method using at least evaluated visual quality and related video coding apparatus |
CN106688232A (en) * | 2014-09-11 | 2017-05-17 | 欧几里得发现有限责任公司 | Perceptual optimization for model-based video encoding |
CN105049850B (en) * | 2015-03-24 | 2018-03-06 | 上海大学 | HEVC bit rate control methods based on area-of-interest |
CN105049850A (en) * | 2015-03-24 | 2015-11-11 | 上海大学 | HEVC (High Efficiency Video Coding) code rate control method based on region-of-interest |
CN107852491A (en) * | 2015-07-31 | 2018-03-27 | 深圳市大疆创新科技有限公司 | The bit rate control method of sensor auxiliary |
WO2017020181A1 (en) * | 2015-07-31 | 2017-02-09 | SZ DJI Technology Co., Ltd. | Method of sensor-assisted rate control |
US10834392B2 (en) | 2015-07-31 | 2020-11-10 | SZ DJI Technology Co., Ltd. | Method of sensor-assisted rate control |
US10708617B2 (en) | 2015-07-31 | 2020-07-07 | SZ DJI Technology Co., Ltd. | Methods of modifying search areas |
CN106331707A (en) * | 2016-08-30 | 2017-01-11 | 上海大学 | Asymmetric perceptual video coding system and method based on just noticeable distortion model |
US11527068B2 (en) | 2016-10-18 | 2022-12-13 | Zhejiang Dahua Technology Co., Ltd. | Methods and systems for video processing |
US10977498B2 (en) | 2016-10-18 | 2021-04-13 | Zhejiang Dahua Technology Co., Ltd. | Methods and systems for video processing |
CN106572352A (en) * | 2016-10-21 | 2017-04-19 | 浙江大华技术股份有限公司 | Keyframe size control method and device |
CN106572352B (en) * | 2016-10-21 | 2019-09-17 | 浙江大华技术股份有限公司 | A kind of key frame sign control method and device |
CN106937118B (en) * | 2017-03-13 | 2019-09-13 | 西安电子科技大学 | A kind of bit rate control method combined based on subjective area-of-interest and time-space domain |
CN106937118A (en) * | 2017-03-13 | 2017-07-07 | 西安电子科技大学 | A kind of bit rate control method being combined based on subjective area-of-interest and time-space domain |
CN107454408B (en) * | 2017-06-28 | 2020-04-07 | 深圳中维世纪科技有限公司 | Method for dynamically adjusting image coding code rate |
CN107454408A (en) * | 2017-06-28 | 2017-12-08 | 深圳中维世纪科技有限公司 | A kind of method of Image Coding code check dynamic adjustment |
WO2019184643A1 (en) * | 2018-03-28 | 2019-10-03 | 腾讯科技(深圳)有限公司 | Video coding code rate control method, apparatus and device, and storage medium |
US11606564B2 (en) | 2018-03-28 | 2023-03-14 | Tencent Technology (Shenzhen) Company Limited | Video encoding code rate control method, apparatus, and device, and storage medium |
US11240511B2 (en) | 2018-03-28 | 2022-02-01 | Tencent Technology (Shenzhen) Company Limited | Video encoding code rate control method, apparatus, and device, and storage medium |
CN108810530A (en) * | 2018-07-12 | 2018-11-13 | 珠海亿智电子科技有限公司 | A kind of AVC bit rate control methods based on human visual system |
WO2020103384A1 (en) * | 2018-11-19 | 2020-05-28 | 浙江宇视科技有限公司 | Video encoding method and apparatus, electronic device, and computer readable storage medium |
US11838507B2 (en) | 2018-11-19 | 2023-12-05 | Zhejiang Uniview Technologies Co., Ltd. | Video encoding method and apparatus, electronic device, and computer-readable storage medium |
CN109862359A (en) * | 2018-12-29 | 2019-06-07 | 北京数码视讯软件技术发展有限公司 | Bit rate control method, device and electronic equipment based on hierarchical B-frame |
CN112861852A (en) * | 2021-01-19 | 2021-05-28 | 北京金山云网络技术有限公司 | Sample data screening method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101325711A (en) | Method for controlling self-adaption code rate based on space-time shielding effect | |
CN101710993B (en) | Block-based self-adaptive super-resolution video processing method and system | |
CN101416511B (en) | Quantization adjustments based on grain | |
CN101416512B (en) | Quantization adjustment based on texture level | |
CN106604031A (en) | Region of interest-based H. 265 video quality improvement method | |
CN101184221A (en) | Vision attention based video encoding method | |
CN104219525B (en) | Perception method for video coding based on conspicuousness and minimum discernable distortion | |
CN107925772A (en) | The apparatus and method that video motion compensation is carried out using optional interpolation filter | |
CN104994382B (en) | A kind of optimization method of perception rate distortion | |
CN103517069A (en) | HEVC intra-frame prediction quick mode selection method based on texture analysis | |
CN103297781A (en) | High efficiency video coding (HEVC) intraframe coding method, device and system based on texture direction | |
CN101682758A (en) | Method and system for encoding an image signal, encoded image signal, method and system for decoding an image signal | |
CN106210721B (en) | A kind of quick code check code-transferring methods of HEVC | |
CN103945220A (en) | Quantized optimization method used for high-efficiency video coding | |
CN111355956A (en) | Rate distortion optimization fast decision making system and method based on deep learning in HEVC intra-frame coding | |
CN109997360A (en) | The method and apparatus that video is coded and decoded based on perception measurement classification | |
US20170374361A1 (en) | Method and System Of Controlling A Video Content System | |
CN104992419A (en) | Super pixel Gaussian filtering pre-processing method based on JND factor | |
CN104702959B (en) | A kind of intra-frame prediction method and system of Video coding | |
CN107454413A (en) | A kind of method for video coding of keeping characteristics | |
CN106056638B (en) | A kind of low complexity compression perceptual image coding method of adaptive texture contrast | |
CN110677644B (en) | Video coding and decoding method and video coding intra-frame predictor | |
JP2004023288A (en) | Preprocessing system for moving image encoding | |
CN106686383A (en) | Depth map intra-frame coding method capable of preserving edge of depth map | |
CN108769696A (en) | A kind of DVC-HEVC video transcoding methods based on Fisher discriminates |
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 |
Open date: 20081217 |