Nothing Special   »   [go: up one dir, main page]

CN101552917B - Bit rate control method for video compression - Google Patents

Bit rate control method for video compression Download PDF

Info

Publication number
CN101552917B
CN101552917B CN 200810066409 CN200810066409A CN101552917B CN 101552917 B CN101552917 B CN 101552917B CN 200810066409 CN200810066409 CN 200810066409 CN 200810066409 A CN200810066409 A CN 200810066409A CN 101552917 B CN101552917 B CN 101552917B
Authority
CN
China
Prior art keywords
mrow
msub
image
complexity factor
mfrac
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200810066409
Other languages
Chinese (zh)
Other versions
CN101552917A (en
Inventor
徐苏珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Temobi Science and Technology Co Ltd
Original Assignee
SHENZHEN RONGCHUANG TIANXIA TECHNOLOGY DEVELOPMENT 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 SHENZHEN RONGCHUANG TIANXIA TECHNOLOGY DEVELOPMENT Co Ltd filed Critical SHENZHEN RONGCHUANG TIANXIA TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN 200810066409 priority Critical patent/CN101552917B/en
Priority to PCT/CN2008/073089 priority patent/WO2009121234A1/en
Publication of CN101552917A publication Critical patent/CN101552917A/en
Application granted granted Critical
Publication of CN101552917B publication Critical patent/CN101552917B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/147Data rate or code amount at the encoder output according to rate distortion criteria
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/149Data rate or code amount at the encoder output by estimating the code amount by means of a model, e.g. mathematical model or statistical model

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to the field of video image processing and provides a bit rate control method for video compression. The method comprises the following steps: A. image features are analyzed, andimage feature complexity factors are calculated; B. the number of target bits which are needed to be distributed to an image is calculated; and C. quantization parameters of codes are obtained by a r ate distortion model and combining the number of target bits needed to be distributed to the image. In the invention, the bit rate distribution and the image feature complexity are closely combined, and the quantization parameters Q p of codes are obtained by a secondary non-linear rate distortion model, thereby increasing the bit rate control accuracy and improving the image quality.

Description

Video compression code rate control method
Technical Field
The invention relates to the field of video image processing, in particular to a video compression code rate control method.
Background
In the video compression process, the data amount of the compressed frame varies, so that the data amount per unit time (code rate) fluctuates. In practical applications, especially in video streaming, a constant bitrate is required. The principle of code rate control is to utilize a mathematical model to recalculate the quantization factor of the next frame by the currently known user-specified code rate and the compressed bit number, thereby changing the bit number after encoding and achieving the purpose of controlling the code rate.
A conventional rate control algorithm (e.g., CBR algorithm) includes the following steps: (1) allocating a target number of bits almost equally to each frame image according to a target bit rate; (2) and calculating the encoded quantization parameter Qp for each frame according to the allocated target bit number, thereby ensuring that the encoder outputs a constant bit rate. Because the algorithm of the prior art allocates almost the same bit number to each frame of image in the video sequence, and actually, the complexity of each frame of image is constantly changed, the quality of the compressed image has great fluctuation, so that the quality of the image is not high, and especially in the video compression under a low bandwidth/wireless channel, because the channel has the characteristics of instability and error easiness, higher requirements are provided for the code rate control precision of an encoder.
Therefore, a new video compression rate control algorithm is needed to improve the rate control accuracy and thus improve the image quality.
Disclosure of Invention
The invention aims to provide a video compression code rate control algorithm, which aims to solve the problems of low code rate control precision and large image quality fluctuation in the video compression process in the prior art.
In order to achieve the object of the invention, the video compression rate control algorithm comprises the following steps:
A. analyzing the image characteristics and calculating the complexity factor of the image characteristics;
B. calculating the target bit number to be distributed by the image by combining the image characteristic complex factor;
C. and (4) calculating a coding quantization parameter QP by using a rate distortion model according to the target bit number required to be allocated to the image.
Preferably, the step a further comprises:
A1. calculating the motion complexity factor of the current image according to the actual bit number and the output average bit number generated by image coding;
A2. calculating the texture complexity factor of the current image according to the average texture complexity of the image;
A3. and combining the current motion complexity factor and the texture complexity factor of the image to calculate the characteristic complexity factor of the current image.
Preferably, the motion complexity factor of the image in step a1 is calculated by the formula:
C m = B j B ~ j
wherein, CmIs a motion complexity factor, B, of the current picturejIs the actual number of bits generated by the coding of the image of the jth frame,
Figure GSB00000145902900022
is the average number of bits of the encoded output calculated up to the j-th frame image.
Preferably, the
Figure GSB00000145902900023
The calculation formula of (2) is as follows:
<math><mrow><msub><mover><mi>B</mi><mo>~</mo></mover><mi>j</mi></msub><mo>=</mo><mi>&alpha;</mi><msub><mi>B</mi><mi>j</mi></msub><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&alpha;</mi><mo>)</mo></mrow><mo>&times;</mo><msub><mover><mi>B</mi><mo>~</mo></mover><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,
Figure GSB00000145902900025
is the average number of coded output bits calculated up to the j-th frame image,
Figure GSB00000145902900026
is the average number of bits of the encoded output up to the j-1 th frame image, BjIs the actual bit number of the coded output of the j frame image, and alpha is the weighting coefficient.
Preferably, the texture complexity factor of the image in step a2 is calculated by the formula:
C t = log 2 ( MAD j ) / M Ct ~ j
wherein, CtIs a texture complexity factor, MAD, of an imagejIs the average of the absolute differences of the previous picture, M is the number of macroblocks in the picture,
Figure GSB00000145902900028
is the average texture complexity factor up to the jth frame image.
Preferably, theThe calculation formula of (2) is as follows:
<math><mrow><msub><mover><mi>Ct</mi><mo>~</mo></mover><mi>j</mi></msub><mo>=</mo><mfrac><mrow><msub><mi>log</mi><mn>2</mn></msub><mrow><mo>(</mo><msub><mi>MAD</mi><mi>j</mi></msub><mo>)</mo></mrow></mrow><mi>M</mi></mfrac><mo>&times;</mo><mi>&beta;</mi><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&beta;</mi><mo>)</mo></mrow><msub><mover><mi>Ct</mi><mo>~</mo></mover><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,
Figure GSB00000145902900031
is the mean texture complexity factor, MAD, until the jth frame imagejIs the average of the absolute differences of the previous picture,
Figure GSB00000145902900032
is the average texture complexity factor up to the j-1 frame image, and β is the addition coefficient.
Preferably, the calculation formula of the feature complexity factor of the image in the step a3 is:
Cj=Cm+η×Ct
wherein, CjIs a characteristic complexity factor of the image, CmIs a motion complexity factor, C, of the imagetIs the texture complexity factor of the image and η is the adjustment factor.
Preferably, the target number of bits to be allocated for the image in step B is calculated by the following formula:
<math><mrow><msub><mi>B</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>=</mo><msub><mi>C</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>&times;</mo><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>-</mo><mfrac><mi>&alpha;</mi><mrow><msub><mi>f</mi><mi>s</mi></msub><mo>-</mo><mi>j</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>&times;</mo><mrow><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><munderover><mi>&Sigma;</mi><mrow><mi>i</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>m</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>i</mi><mo>=</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>,</mo><mi>m</mi><mo>=</mo><mi>fs</mi></mrow></munderover><msub><mi>br</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>m</mi><mo>)</mo></mrow></msub><mo>)</mo></mrow><mo>)</mo></mrow></mrow></math>
wherein, B(n,j)Is the target number of bits to be allocated for the j frame image of the n second, C(n,j)Is a feature complexity factor, R, of the corresponding image, i.e. the image of the j frame in the n secondbitIs the target bit rate of image coding, fsIs the target frame rate, br, of the image coding(i,m)Is the actual number of bits of the ith second mth picture output, and α isAnd adjusting the coefficient.
Preferably, said step C further comprises using a quadratic non-linear rate distortion model to find the encoded quantization parameter Qp in combination with the target number of bits to be allocated to the picture.
Preferably, the second order nonlinear rate distortion model is:
<math><mrow><mi>B</mi><mo>=</mo><mi>SAD</mi><mo>&times;</mo><mrow><mo>(</mo><mfrac><mrow><mi>c</mi><mn>1</mn></mrow><mi>Qp</mi></mfrac><mo>+</mo><mfrac><mrow><mi>c</mi><mn>2</mn></mrow><mrow><mi>Q</mi><msup><mi>p</mi><mn>2</mn></msup></mrow></mfrac><mo>)</mo></mrow></mrow></math>
where B is the target number of bits allocated for the current frame, SAD is the sum of absolute differences of the current frame, Qp is the quantization parameter for the macroblock, and c1 and c2 are the adjustment parameters.
The invention closely combines the code rate distribution with the characteristic complexity of the image, so that the encoder can accurately distribute the code rate and improve the control precision of the code rate; meanwhile, the invention uses a quadratic nonlinear rate distortion model to obtain the quantization parameter Qp of the code, and compared with a simple linear rate distortion model, the accuracy of controlling the code rate is better. Therefore, the video compression code rate control algorithm of the invention can improve the code rate control precision, thereby improving the image quality.
Drawings
FIG. 1 is a flow chart of a video compression rate control method according to the present invention;
fig. 2 is a flowchart of a video compression rate control method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention combines the code rate distribution and the image characteristic complexity to distribute the code rate, and then obtains the coding quantization parameter through the secondary nonlinear rate distortion model, thereby improving the code rate control precision and improving the image quality.
Fig. 1 shows a flow chart of the video compression rate control method of the present invention, and the process is as follows:
in step S101, the image features are analyzed and the image feature complexity factor is calculated.
In step S102, the target number of bits to be allocated to the image is calculated by combining the complexity factor of the image feature.
In step S103, the rate-distortion model is used to obtain the quantization parameter QP for coding, in combination with the target number of bits to be allocated to the picture.
Fig. 2 shows a flowchart of a video compression rate control method according to an embodiment of the present invention, which is based on the method flow shown in fig. 1, and includes the following specific processes:
in step S201, a motion complexity factor of a current picture is calculated based on an actual number of bits generated by picture coding and an output average number of bits.
The motion complexity of an image refers to the difference caused by the motion of an object in two consecutive frames of images in an image sequence, and the correlation between two consecutive frames of images in the image sequence is very large. One embodiment of the invention analyzes the motion complexity of the image through the previous frame image, and expresses the motion complexity by using the motion complexity factor of the image. In one embodiment, the motion complexity factor for the current image is calculated by the formula:
C m = B j B ~ j
wherein, CmIs a motion complexity factor, B, of the current picturejIs the actual number of bits generated by the coding of the image of the jth frame,is the average number of bits of the encoded output calculated up to the j-th frame image.
In one embodiment, the average number of bits of the encoded output calculated up to the jth frame image
Figure GSB00000145902900051
The calculation formula of (2) is as follows:
<math><mrow><msub><mover><mi>B</mi><mo>~</mo></mover><mi>j</mi></msub><mo>=</mo><mi>&alpha;</mi><msub><mi>B</mi><mi>j</mi></msub><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&alpha;</mi><mo>)</mo></mrow><mo>&times;</mo><msub><mover><mi>B</mi><mo>~</mo></mover><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,
Figure GSB00000145902900053
is the average number of coded output bits calculated up to the j-th frame image,
Figure GSB00000145902900054
is the average number of bits of the encoded output up to the j-1 th frame image, BjIs the actual bit number of the coded output of the j frame image, and alpha is the weighting coefficient. The value of α may be adjusted according to specific situations, and in one embodiment, the value α is 0.725.
In step S202, a texture complexity factor of the current image is calculated based on the average texture complexity of the image. Since the scene correlation of two consecutive frames of images is relatively large in the image sequence, one embodiment of the present invention uses the previous frame of image to analyze the texture complexity of the image, and uses the texture complexity factor of the image to express the texture complexity. In one embodiment, the texture complexity factor for the current image is calculated as:
C t = log 2 ( MAD j ) / M Ct ~ j
wherein, CtIs a texture complexity factor, MAD, of an imagejIs the average of the absolute differences of the previous picture, M is the number of macroblocks in the picture,
Figure GSB00000145902900056
is the average texture complexity factor up to the jth frame image.
In one embodiment, the average texture complexity factor up to the jth frame image
Figure GSB00000145902900057
The calculation formula of (2) is as follows:
<math><mrow><msub><mover><mi>Ct</mi><mo>~</mo></mover><mi>j</mi></msub><mo>=</mo><mfrac><mrow><msub><mi>log</mi><mn>2</mn></msub><mrow><mo>(</mo><msub><mi>MAD</mi><mi>j</mi></msub><mo>)</mo></mrow></mrow><mi>M</mi></mfrac><mo>&times;</mo><mi>&beta;</mi><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&beta;</mi><mo>)</mo></mrow><msub><mrow><mover><mi>C</mi><mo>~</mo></mover><mi>t</mi></mrow><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,is the mean texture complexity factor, MAD, until the jth frame imagejIs the average of the absolute differences of the previous picture,
Figure GSB000001459029000510
is the average texture complexity factor up to the j-1 frame image, and β is the addition coefficient. The value of β may be adjusted according to specific situations, and in one embodiment, β may be 0.825.
In step S203, the feature complexity factor of the current image is calculated by combining the current motion complexity factor and texture complexity factor of the image. One embodiment of the present invention uses the feature complexity factor of the image to describe the image feature, and combines the motion complexity factor and the texture complexity factor of the image to calculate the feature complexity factor of the image, and the calculation formula is as follows:
Cj=Cm+η×Ct
wherein, CjIs a characteristic complexity factor of the image, CmIs a motion complexity factor, C, of the imagetIs the texture complexity factor of the image and η is the adjustment factor. The value of η may be adjusted according to specific situations, and in one embodiment, η may be equal to 0.5.
In step S204, the image feature is introduced into the image bit rate allocation process, and the target number of bits to be allocated to the image is calculated by combining the complexity factor of the image feature. In one embodiment, the target number of bits to be allocated for a picture is calculated as:
<math><mrow><msub><mi>B</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>=</mo><msub><mi>C</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>&times;</mo><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>-</mo><mfrac><mi>&alpha;</mi><mrow><msub><mi>f</mi><mi>s</mi></msub><mo>-</mo><mi>j</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>&times;</mo><mrow><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><munderover><mi>&Sigma;</mi><mrow><mi>i</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>m</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>i</mi><mo>=</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>,</mo><mi>m</mi><mo>=</mo><mi>fs</mi></mrow></munderover><msub><mi>br</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>m</mi><mo>)</mo></mrow></msub><mo>)</mo></mrow><mo>)</mo></mrow></mrow></math>
wherein, B(n,j)Is the target number of bits to be allocated for the j frame image of the n second, C(n,j)Is a feature complexity factor, R, of the corresponding image, i.e. the image of the j frame in the n secondbitIs the target bit rate of image coding, fsIs the target frame rate, br, of the image coding(i,m)Is the actual number of bits output by the mth picture in the ith second, and α is the adjustment coefficient. The value of α may be adjusted according to specific situations, and in one embodiment, the value α is 0.25. It should be noted that the above calculation formula is only one example of the present invention, and other transformation formulas of the formula are also included in the protection scope of the present invention.
In step S205, a Rate-Distortion (RD) model is used to determine the encoded quantization parameter Qp according to the target number of bits to be allocated to the picture. In an exemplary embodiment of the present invention, the quantization parameter Qp of the code is obtained using a quadratic non-linear RD model in combination with the target number of bits to be allocated to the picture, given the target number of bits already known.
In one embodiment, the quadratic non-linear RD model used is:
<math><mrow><mi>B</mi><mo>=</mo><mi>SAD</mi><mo>&times;</mo><mrow><mo>(</mo><mfrac><mrow><mi>c</mi><mn>1</mn></mrow><mi>Qp</mi></mfrac><mo>+</mo><mfrac><mrow><mi>c</mi><mn>2</mn></mrow><mrow><mi>Q</mi><msup><mi>p</mi><mn>2</mn></msup></mrow></mfrac><mo>)</mo></mrow></mrow></math>
where B is the target number of bits allocated for the current frame, SAD (Sum of Absolute Difference) is the Sum of Absolute differences of the current frame, Qp is the quantization parameter of the macroblock, and c1 and c2 are the adjustment parameters. Where c1 and c2 are estimated from the previous frame image using the RD model and need to be updated continuously.
The quantization parameter Qp, which is an important parameter for the encoder to control the degree of image compression, is used to control the quantizer in encoding, and the smaller the Qp, the finer the quantization, the higher the image quality, and the longer the generated code stream. The secondary nonlinear RD model is used for dynamically changing the quantization parameter Qp, so that the complexity of an input image and the output code rate can be balanced, and the code rate of the coded output is constant.
It should be noted that the present invention is a generic algorithm that can be applied to different encoders, such as any one of the h.120, h.261, h.263, h.264, MPEG-1, MPEG-4 or any other hybrid framework encoders.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (9)

1. A method for controlling video compression rate, the method comprising the steps of:
A. analyzing the image characteristics and calculating the complexity factor of the image characteristics;
B. calculating the target bit number to be distributed by the image by combining the image characteristic complex factor;
C. calculating a coding quantization parameter QP by using a rate distortion model in combination with the target bit number to be distributed to the image;
the step A further comprises the following steps:
A1. calculating the motion complexity factor of the current image according to the actual bit number and the output average bit number generated by image coding;
A2. calculating the texture complexity factor of the current image according to the average texture complexity of the image;
A3. and combining the current motion complexity factor and the texture complexity factor of the image to calculate the characteristic complexity factor of the current image.
2. The method for controlling video compression rate according to claim 1, wherein the motion complexity factor of the picture in step a1 is calculated by the formula:
C m = B j B ~ j
wherein, CmIs a motion complexity factor, B, of the current picturejIs the actual number of bits generated by the coding of the image of the jth frame,
Figure FSB00000246286000012
is the average number of bits of the encoded output calculated up to the j-th frame image.
3. The method of claim 2, wherein the video compression rate control method is further characterized in that
Figure FSB00000246286000013
The calculation formula of (2) is as follows:
<math><mrow><msub><mover><mi>B</mi><mo>~</mo></mover><mi>j</mi></msub><mo>=</mo><mi>&alpha;</mi><msub><mi>B</mi><mi>j</mi></msub><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&alpha;</mi><mo>)</mo></mrow><mo>&times;</mo><msub><mover><mi>B</mi><mo>~</mo></mover><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,
Figure FSB00000246286000015
is the average number of coded output bits calculated up to the j-th frame image,
Figure FSB00000246286000016
is the average number of bits of the encoded output up to the j-1 th frame image, BjIs the actual bit number of the coded output of the j frame image, and alpha is the weighting coefficient.
4. The method for rate control in video compression as claimed in claim 1, wherein the texture complexity factor of the picture in step a2 is calculated by the formula:
C t = log 2 ( MAD j ) / M C ~ t j
wherein, CtIs a texture complexity factor, MAD, of an imagejIs the average of the absolute differences of the previous picture, M is the number of macroblocks in the picture,
Figure FSB00000246286000022
is the average texture complexity factor up to the jth frame image.
5. The method of claim 4, wherein the video compression rate control method is applied to the video compressionThe calculation formula of (2) is as follows:
<math><mrow><msub><mrow><mover><mi>C</mi><mo>~</mo></mover><mi>t</mi></mrow><mi>j</mi></msub><mo>=</mo><mfrac><mrow><msub><mi>log</mi><mn>2</mn></msub><mrow><mo>(</mo><msub><mi>MAD</mi><mi>j</mi></msub><mo>)</mo></mrow></mrow><mi>M</mi></mfrac><mo>&times;</mo><mi>&beta;</mi><mo>+</mo><mrow><mo>(</mo><mn>1</mn><mo>-</mo><mi>&beta;</mi><mo>)</mo></mrow><msub><mrow><mover><mi>C</mi><mo>~</mo></mover><mi>t</mi></mrow><mrow><mi>j</mi><mo>-</mo><mn>1</mn></mrow></msub></mrow></math>
wherein,
Figure FSB00000246286000025
is the mean texture complexity factor, MAD, until the jth frame imagejIs the average of the absolute differences of the previous picture,
Figure FSB00000246286000026
is the average texture complexity factor until the j-1 frame image, and β is the weighting factor.
6. The method for controlling video compression rate according to claim 1, wherein the calculation formula of the characteristic complexity factor of the image in step a3 is:
Cj=Cm+η×Ct
wherein, CjIs a characteristic complexity factor of the image, CmIs a motion complexity factor, C, of the imagetIs the texture complexity factor of the image and η is the adjustment factor.
7. The method of claim 1, wherein the target number of bits to be allocated for the picture in step B is calculated by the following formula:
<math><mrow><msub><mi>B</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>=</mo><msub><mi>C</mi><mrow><mo>(</mo><mi>n</mi><mo>,</mo><mi>j</mi><mo>)</mo></mrow></msub><mo>&times;</mo><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>-</mo><mfrac><mi>&alpha;</mi><mrow><msub><mi>f</mi><mi>s</mi></msub><mo>-</mo><mi>j</mi><mo>+</mo><mn>1</mn></mrow></mfrac><mrow><mo>(</mo><mfrac><msub><mi>R</mi><mi>bit</mi></msub><msub><mi>f</mi><mi>s</mi></msub></mfrac><mo>&times;</mo><mrow><mo>(</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>)</mo></mrow><mo>-</mo><munderover><mi>&Sigma;</mi><mrow><mi>i</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>m</mi><mo>=</mo><mn>0</mn></mrow><mrow><mi>i</mi><mo>=</mo><mi>n</mi><mo>-</mo><mn>1</mn><mo>,</mo><mi>m</mi><mo>=</mo><mi>fs</mi></mrow></munderover><msub><mi>br</mi><mrow><mo>(</mo><mi>i</mi><mo>,</mo><mi>m</mi><mo>)</mo></mrow></msub><mo>)</mo></mrow><mo>)</mo></mrow></mrow></math>
wherein, B(n,j)Is the target number of bits to be allocated for the j frame image of the n second, C(n,j)Is a feature complexity factor, R, of the corresponding image, i.e. the image of the j frame in the n secondbitIs the target bit rate of image coding, fsIs the target frame rate, br, of the image coding(i,m)Is the actual number of bits output by the mth picture in the ith second, and α is the adjustment coefficient.
8. The method of claim 1, wherein step C further comprises using a quadratic non-linear rate distortion model to obtain the encoded quantization parameter Qp in combination with the target number of bits to be allocated for the picture.
9. The method of claim 8, wherein the quadratic non-linear rate distortion model is:
<math><mrow><mi>B</mi><mo>=</mo><mi>SAD</mi><mo>&times;</mo><mrow><mo>(</mo><mfrac><mrow><mi>c</mi><mn>1</mn></mrow><mi>Qp</mi></mfrac><mo>+</mo><mfrac><mrow><mi>c</mi><mn>2</mn></mrow><msup><mi>Qp</mi><mn>2</mn></msup></mfrac><mo>)</mo></mrow></mrow></math>
where B is the target number of bits allocated for the current frame, SAD is the sum of absolute differences of the current frame, Qp is the quantization parameter for the macroblock, and c1 and c2 are the adjustment parameters.
CN 200810066409 2008-03-31 2008-03-31 Bit rate control method for video compression Expired - Fee Related CN101552917B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 200810066409 CN101552917B (en) 2008-03-31 2008-03-31 Bit rate control method for video compression
PCT/CN2008/073089 WO2009121234A1 (en) 2008-03-31 2008-11-17 A video compression code rate control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810066409 CN101552917B (en) 2008-03-31 2008-03-31 Bit rate control method for video compression

Publications (2)

Publication Number Publication Date
CN101552917A CN101552917A (en) 2009-10-07
CN101552917B true CN101552917B (en) 2011-01-05

Family

ID=41134809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810066409 Expired - Fee Related CN101552917B (en) 2008-03-31 2008-03-31 Bit rate control method for video compression

Country Status (2)

Country Link
CN (1) CN101552917B (en)
WO (1) WO2009121234A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238382B (en) * 2010-05-07 2013-09-25 联咏科技股份有限公司 Bit rate control method and device for image compression
CN102025994B (en) * 2010-12-16 2013-07-03 深圳市融创天下科技股份有限公司 Coding method, coding device and coding and decoding system based on adaptive decoding complexity as well as equipment comprising coding and decoding system
CN102647586B (en) * 2011-02-16 2015-07-08 富士通株式会社 Code rate control method and device used in video coding system
CN103297775B (en) * 2013-05-17 2016-02-10 西安电子科技大学 Based on the Multispectral Image Compression System and method for that unicode rate distributes and controls
CN104427336B (en) * 2013-09-02 2018-09-14 苏州威迪斯特光电科技有限公司 Video quality improvement method based on region of interest domain compensation coding
CN105208388B (en) * 2014-06-24 2019-03-05 深圳市腾讯计算机系统有限公司 Dynamically adjustment encodes the method and system of frame per second in video communication
CN104410861A (en) * 2014-11-24 2015-03-11 华为技术有限公司 Video encoding method and device
CN106612434B (en) * 2015-10-22 2019-06-21 北京博雅华录视听技术研究院有限公司 A kind of statistic multiplexing method based on video complexity
CN110166781B (en) * 2018-06-22 2022-09-13 腾讯科技(深圳)有限公司 Video coding method and device, readable medium and electronic equipment
CN111193927B (en) * 2018-11-14 2022-09-23 腾讯科技(深圳)有限公司 Encoded data processing method, apparatus, computer device and storage medium
CN111565317A (en) * 2019-02-13 2020-08-21 合肥图鸭信息科技有限公司 Image compression method, coding and decoding network training method and device and electronic equipment
CN111787318A (en) * 2020-06-24 2020-10-16 浙江大华技术股份有限公司 Video code rate control method, device, equipment and storage device
CN113691814A (en) * 2021-07-26 2021-11-23 浙江大华技术股份有限公司 Video encoding method, video encoding device, electronic device, and storage medium
CN113949872B (en) * 2021-11-09 2024-06-25 华侨大学 Screen content video coding rate control method based on 3D-Gradient guidance
CN114554204A (en) * 2022-01-20 2022-05-27 珠海全志科技股份有限公司 Method and device for adjusting image quality of coded image
CN118524217A (en) * 2024-07-22 2024-08-20 宁波康达凯能医疗科技有限公司 Inter-frame image code rate control method based on Lyapunov stability

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014352A1 (en) * 2005-07-14 2007-01-18 Haihua Wu Rate control method and apparatus
CN1988659A (en) * 2006-12-30 2007-06-27 清华大学 Method for control video frequency coding rate
CN101094411A (en) * 2007-07-03 2007-12-26 芯瀚电子技术(上海)有限公司 Code rate control method of video code
CN101102494A (en) * 2007-07-23 2008-01-09 武汉大学 A control method for macro block code rate in video code conversion
CN101127909A (en) * 2007-09-29 2008-02-20 华为技术有限公司 A control method and device for image code rate

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1190969C (en) * 2003-03-08 2005-02-23 华中科技大学 Method for controlling video coding bit rate
JP5198869B2 (en) * 2004-12-02 2013-05-15 トムソン ライセンシング Determination of quantization parameters for rate control of video encoders
CN100448297C (en) * 2005-11-08 2008-12-31 上海广电(集团)有限公司中央研究院 Bit rate control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070014352A1 (en) * 2005-07-14 2007-01-18 Haihua Wu Rate control method and apparatus
CN1988659A (en) * 2006-12-30 2007-06-27 清华大学 Method for control video frequency coding rate
CN101094411A (en) * 2007-07-03 2007-12-26 芯瀚电子技术(上海)有限公司 Code rate control method of video code
CN101102494A (en) * 2007-07-23 2008-01-09 武汉大学 A control method for macro block code rate in video code conversion
CN101127909A (en) * 2007-09-29 2008-02-20 华为技术有限公司 A control method and device for image code rate

Also Published As

Publication number Publication date
CN101552917A (en) 2009-10-07
WO2009121234A1 (en) 2009-10-08

Similar Documents

Publication Publication Date Title
CN101552917B (en) Bit rate control method for video compression
CN101658035B (en) Methods and systems for quality controlled encoding
KR100304103B1 (en) Method for finding re-quantization step sizes resulting in abrupt bit-rate reduction and rate control method using it
CN100574427C (en) The control method of video code bit rate
CN101795415B (en) Method and device for controlling code rate in video coding
CN101594525B (en) Method and device for acquiring quantization parameters and transcoding device
CN102036062B (en) Video coding method and device and electronic equipment
CN102724510B (en) Code rate control algorithm based on fullness degree of virtual encoding buffer area
CN101547365B (en) Method and device of coding video for guaranteeing display quality of specific regions
CN101287112B (en) Optimizing method controlled by adaptive code rate
CN101877784B (en) H.264 rate control method suitable for real-time application
CN101854531B (en) Multi-channel video unicode rate control method
CN102025994B (en) Coding method, coding device and coding and decoding system based on adaptive decoding complexity as well as equipment comprising coding and decoding system
CN1190969C (en) Method for controlling video coding bit rate
US8588294B2 (en) Statistical multiplexing using a plurality of two-pass encoders
TW200534714A (en) Rate controlling method and apparatus for use in a transcoder
CN100448295C (en) Integration code rate control method of low complexity
CN102104778A (en) Method and device for code rate control in picture coding
CN103281532B (en) A kind of quantization method of adjustment based on motion strength detection and system
CN101977309B (en) Code rate control method and device thereof
CN103167282B (en) A kind of online updating method of image compression dynamic regulation
US9426474B2 (en) Transcoder
JP2004320707A (en) Apparatus for simultaneously encoding multiple video information
US8971393B2 (en) Encoder
CN106612434A (en) A statistical multiplexing method based on video complexity

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN RONGCHUANG TIANXIA TECHNOLOGY DEVELOPMENT

Free format text: FORMER OWNER: SHENZHEN RONGHE VIDEO SCIENCE AND TECHNOLOGY CO., LTD.

Effective date: 20100414

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

Free format text: CORRECT: ADDRESS; FROM: 518040 G, BUILDING 4, JINRUN BUILDING, NO.6019, SHENNAN AVENUE, SHENZHEN CITY, GUANGDONG PROVINCE TO: 518057 C4/F, SAIBAINUO OFFICE BUILDING, JUNCTURE OF KEJI 1ST ROAD AND GAOXIN 1ST ROAD, MIDDLE AREA, SCIENCE PARK, NANSHAN DISTRICT, SHENZHEN CITY, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20100414

Address after: 518057, Nanshan District Shenzhen science and Technology Park, Guangdong science and technology zone in the middle of the road, and hi tech junction, C4 office building

Applicant after: Shenzhen Rongchuang Tianxia Technology Development Co., Ltd.

Address before: 4, G, building 6019, Jin run building, Shennan Road, 518040, Guangdong, Shenzhen

Applicant before: Shenzhen Ronghe Vision Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENZHEN RONGCHUANG TIANXIA TECHNOLOGY DEVELOPMENT CO., LTD.

CP03 Change of name, title or address

Address after: 518057, Shenzhen, Nanshan District science and technology twelve South Road, No. 18, Changhong science and technology building, 19 floor

Patentee after: Shenzhen Temobi Science & Tech Development Co.,Ltd.

Address before: 518057, Nanshan District Shenzhen science and Technology Park, Guangdong science and technology zone in the middle of the road, and hi tech junction, C4 office building

Patentee before: Shenzhen Rongchuang Tianxia Technology Development Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD.

CP03 Change of name, title or address

Address after: 518057 Guangdong, Shenzhen Province, science and technology, South Road, No. twelve Changhong science and technology building, building 19, unit 01-11, unit 18

Patentee after: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

Address before: 19, building 518057, Changhong technology building, 18 South twelve Road, Nanshan District science and technology, Guangdong, Shenzhen

Patentee before: Shenzhen Temobi Science & Tech Development Co.,Ltd.

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

Granted publication date: 20110105

Termination date: 20180331