A Bitrate Control Method Based on VMAF Perceptual Distortion Measurement
By establishing the mapping relationship between VMAF score, encoder quantization step size, and image texture characteristics, a CTU-level bit allocation strategy is formulated, which solves the problem of inability to adapt the perceptual distortion measurement model in video encoding and improves video quality and bit rate control accuracy.
Patent Information
- Application Number
- CN202410042232.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-01-11
AI Technical Summary
The existing rate control method based on absolute error in video coding ignores the perceptual characteristics of the human visual system and cannot effectively integrate into the VMAF perceptual distortion measurement model based on machine learning, resulting in the inability to adapt to the encoder and affecting video quality.
By establishing the mapping relationship between the VMAF score, the encoder quantization step size, and the image texture characteristics, a CTU-level bit allocation strategy based on perceptual distortion is formulated, and the rate-distortion optimization theory is used to obtain the perceptual rate-distortion function to achieve target bit allocation.
It improves the subjective and objective quality of the video and the accuracy of bit rate control, solves the problem of the VMAF model being unable to adapt to the encoder, and significantly improves the encoded image quality and PSNR.
Smart Images

Figure CN117834885B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bit rate control in video encoding, and in particular to a bit rate control method based on VMAF perceptual distortion measurement. Background Art
[0002] From traditional high-speed broadband networks, modern mobile networks, to the gradually implemented 5G networks, the increase in channel bandwidth has enabled the video to shift from standard definition to high definition and ultra-high definition. However, no matter what type of video source, it faces the problem of bit rate limitation under limited bandwidth resources when encoding at the source end. In order to ensure the picture quality of the reconstructed video after encoding as much as possible under the constraint of limited bit rate, bit rate control has become an indispensable part of the encoder.
[0003] Rate control belongs to the category of rate-distortion optimization (RDO), which mainly includes two processes: building a rate control model and allocating bit rates. With the evolution of video coding standards and technologies, the research on rate control methods has undergone many iterations. Traditional rate control methods are mainly divided into three categories: Q domain, ρ domain, and λ domain. Although these methods significantly improve the objective compression performance and bit rate accuracy of the encoder, these traditional rate control methods are based on objective error statistics such as Sum of Absolute Difference (SAD), Mean Squared Error (MSE), and Mean Absolute Error (MAE) to measure distortion, while objective distortion measurement methods ignore the perceptual characteristics of the human visual system (HVS) and only consider the differences between pixels. Subjective experiments are recognized as the best method to measure the quality of human perception, but they are not widely used because their scoring process is too time-consuming and labor-intensive.
[0004] In recent years, with the development of machine learning technology, machine learning-based evaluation methods for improving performance have emerged one after another. As a leader among them, VMAF (Visual Multimethod Assessment Fusion, VMAF) regresses multi-distance features through support vector machine (SVM) to achieve single-frame image quality evaluation, and on this basis, uses the averaging method to obtain the overall video quality evaluation. Compared with other perceptual distortion measurement methods, such as structural similarity index (SSIM), gradient similarity (GMS) and visual information fidelity (VIF), VMAF can significantly improve the fitting accuracy of perceptual distortion. However, since VMAF is a learning-based measurement model, it cannot be adapted to existing encoding algorithms based on perceptual characteristics.
[0005] In summary, the rate control method based on VMAF perceptual distortion measurement still has the following two main problems: (1) how to construct a perceptual distortion measurement model based on VMAF; (2) how to integrate the constructed model into the rate control process in video encoding. Summary of the invention
[0006] The purpose of the present invention is to provide a rate control method based on VMAF perceptual distortion measurement to solve the technical problem that the VMAF model based on machine learning cannot be adapted to the encoder due to the lack of a specific analytical formula, and to integrate subjective visual perception into the rate control process. While ensuring the accuracy of rate control, the video rate distortion performance and the subjective and objective quality of the reconstructed video are improved.
[0007] The inventive idea of the present invention is: the present invention provides a bit rate control method based on VMAF perceptual distortion measure, firstly, a mapping relationship between the perceptual distortion measure guided by VMAF score and the encoder quantization step and image texture characteristics is established, then, when the target number of bits of the current image is known, a CTU-level bit allocation strategy based on perceptual distortion is formulated, and finally, based on the perceptual distortion measure mapping relationship and the CTU-level bit allocation strategy, according to the rate-distortion optimization theory, a perceptual rate-distortion function is obtained to achieve the target bit allocation.
[0008] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is specifically: a rate control method based on VMAF perceptual distortion measurement, comprising the following steps:
[0009] 1.1. Establish a mapping relationship between the perceptual distortion measure guided by VMAF score and the encoder quantization step size and image texture characteristics;
[0010] 1.2. Given the target bit number of the current image, formulate a CTU-level bit allocation strategy based on perceptual distortion;
[0011] 1.3. Based on the perceptual distortion measurement mapping relationship and the CTU-level bit allocation strategy, according to the rate-distortion optimization theory, the perceptual rate-distortion function is obtained to achieve the target bit allocation.
[0012] Furthermore, the step 1.1 specifically includes the following steps:
[0013] 2.1. Establish the perceptual distortion measurement mapping relationship f, whose formula is D VMAF =f(Q step ,T), where Q step is the quantization step size, which can be obtained by looking up the QP table, Q step The corresponding relationship with QP is Q step ≈2 (QP-4) / 6 , D VMAF is the perceptual distortion measure guided by VMAF score, T is the image texture characteristic;
[0014] 2.2. First use linear and exponential functions to fit D VMAF With Q step The mapping relationship is as follows: The coefficients a and c are related to the video content, and the coefficient b represents the minimum perceptual distortion D of the video. min ;
[0015] 2.3. Construction D VMAF The loss function is as follows: The optimal coefficient is iteratively determined using the gradient descent method, and its formula is: Where η is the learning rate;
[0016] 2.4. After getting D VMAF With Q step After the mapping relationship, based on f1, D is further fitted VMAF The functional relationship between D and T VMAF The analytical expression between the coefficients a, c and the texture complexity T is a=g(T) or c=g(T);
[0017] 2.5. Perform cross-sequence function fitting on sequences of different texture features in the data set, determine the function g through a large number of fitting experiments, and finally determine the mapping function f.
[0018] Furthermore, step 1.2 specifically includes the following steps:
[0019] 3.1. Given the target bit number R of the current image C In the case of , a CTU-level bit allocation strategy based on perceptual distortion is formulated, and its formula is: Where N is the number of CTUs contained in the image. is the perceptual distortion of the i-th CTU block in the image, R i is the actual number of coded bits of the i-th CTU block, Indicates the best bit allocation method for the current image;
[0020] 3.2. The Lagrangian optimization method is used to transform the CTU-level bit allocation strategy based on perceptual distortion into an extreme value problem under unconstrained conditions. The formula is: The optimal rate-distortion cost is In order to obtain the Lagrangian optimal solution, it is necessary to satisfy Right now
[0021] Furthermore, the step 1.3 specifically includes the following steps:
[0022] 4.1. When the distortion D is defined as the absolute error and SAD, its rate-distortion function is Among them, α reflects the content characteristics of the video;
[0023] 4.2. Use a linear function to establish Q step The relationship between and D is: D = m (Q step +n), where n is a constant and m is related to the image content characteristics;
[0024] 4.3. Based on Q in step S12 step With D VMAF The functional relationship f1 between them is established. VMAF The relationship between and D is: D = m(f1 -1 (D VMAF )+n);
[0025] 4.4. Based on step S31 and step S33, the perceptual rate distortion function is obtained, and its formula is: For the λ used for a single frame image, we can obtain the slope of the rate-distortion curve by Combined with the Lagrangian optimal solution of step S22, we can obtain where α i Dependent on the content of the image, λ is determined by the total target bit number R of the image. c Sure;
[0026] 4.5. Maximum Constraints for the CTU-Level Bit Allocation Strategy Based on Perceptual Distortion in Step S21 Achieve target bit allocation.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] (1) The present invention obtains a specific function analytical expression of the perceptual distortion measurement model by fitting a linear regression method based on machine learning, thereby enhancing the interpretability of the perceptual distortion measurement;
[0029] (2) The present invention applies the VMAF-based perceptual distortion measurement model to the field of rate control technology for video coding, thereby enhancing the describability of visual perception;
[0030] (3) The present invention solves the technical problem that the VMAF model based on machine learning cannot be adapted to the encoder due to the lack of a specific analytical formula;
[0031] (4) While ensuring the accuracy of bit rate control, the present invention improves the video rate distortion performance and the subjective and objective quality of the reconstructed video; specifically, the present invention is tested and verified on the HEVC test platform HM16.9. In terms of bit rate control accuracy, the overall bit rate fluctuation of the present invention is smaller than that of HM16.9; in terms of objective rate distortion performance, the PSNR of the present invention at the same bit rate point is significantly better than that of HM16.9; in terms of subjective visual quality, the subjective image quality after compression of the present invention is significantly improved compared with that of HM16.9 BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0033] Figure 1 A flowchart of a rate control method based on VMAF perceptual distortion measurement provided by the present invention.
[0034] Figure 2 This is a diagram showing the subjective quality comparison results of the BlowingBubbles video sequence in the present invention.
[0035] Figure 3 This is a diagram showing the subjective quality comparison results of the BasketballDrill video sequence in the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.
[0037] Example 1
[0038] See also Figure 1 The technical solution provided in this embodiment is a rate control method based on VMAF perceptual distortion measurement, comprising the following steps:
[0039] 1. Establish a mapping relationship between the perceptual distortion measure guided by the VMAF score and the encoder quantization step size and image texture characteristics;
[0040] 2. Given the target bit number of the current image, formulate a CTU-level bit allocation strategy based on perceptual distortion;
[0041] 3. Based on the perceptual distortion measurement mapping relationship and the CTU-level bit allocation strategy, according to the rate-distortion optimization theory, the perceptual rate-distortion function is obtained to achieve the target bit allocation.
[0042] Specifically, in step 1, a mapping relationship between a perceptual distortion measure guided by a VMAF score and an encoder quantization step size and image texture characteristics is established, including the following steps:
[0043] 1) Establish the perceptual distortion measurement mapping relationship f, whose formula is D VMAF =f(Q step ,T), where Q step is the quantization step size, which can be obtained by looking up the QP table, Q step The corresponding relationship with QP is Q step ≈2 (QP-4) / 6 , D VMAF is the perceptual distortion measure guided by VMAF score, T is the image texture characteristic;
[0044] 2) First use linear and exponential functions to fit D VMAF With Q step The mapping relationship is as follows: The coefficients a and c are related to the video content, and the coefficient b represents the minimum perceptual distortion D of the video. min ;
[0045] 3) Construction D VMAF The loss function is as follows: The optimal coefficient is iteratively determined using the gradient descent method, and its formula is: Where η is the learning rate;
[0046] 4) After getting D VMAF With Q step After the mapping relationship, based on f1, D is further fitted VMAF The functional relationship between D and T VMAF The analytical expression between the coefficients a, c and the texture complexity T is a=g(T) or c=g(T);
[0047] 5) Perform cross-sequence function fitting on sequences of different texture features in the data set, determine the function g through a large number of fitting experiments, and finally determine the mapping function f.
[0048] Specifically, in step 2, when the target bit number of the current image is known, a CTU-level bit allocation strategy based on perceptual distortion is formulated, including the following steps:
[0049] 1) Given the target bit number R of the current image C In the case of , a CTU-level bit allocation strategy based on perceptual distortion is formulated, and its formula is: Where N is the number of CTUs contained in the image. is the perceptual distortion of the i-th CTU block in the image, R i is the actual number of coded bits of the i-th CTU block, Indicates the best bit allocation method for the current image;
[0050] 2) The Lagrangian optimization method is used to transform the CTU-level bit allocation strategy based on perceptual distortion into an extreme value problem under unconstrained conditions. The formula is: The optimal rate-distortion cost is In order to obtain the Lagrangian optimal solution, it is necessary to satisfy Right now
[0051] Specifically, in step 3, based on the perceptual distortion measurement mapping relationship and the CTU-level bit allocation strategy, according to the rate-distortion optimization theory, a perceptual rate-distortion function is obtained to achieve target bit allocation, including the following steps:
[0052] 1) When the distortion D is defined as the absolute error and SAD, its rate-distortion function is Among them, α reflects the content characteristics of the video;
[0053] 2) Use a linear function to build Q step The relationship between and D is: D = m (Q step +n), where n is a constant and m is related to the image content characteristics;
[0054] 3) Based on Q in step S12 step With D VMAF The functional relationship f1 between them is established. VMAF The relationship between and D is: D = m(f1 -1 (D VMAF )+n);
[0055] 4) Based on step S31 and step S33, the perceptual rate distortion function is obtained, and its formula is: For the λ used for a single frame image, we can obtain the slope of the rate-distortion curve by Combined with the Lagrangian optimal solution of step S22, we can obtain where α i Dependent on the content of the image, λ is determined by the total target bit number R of the image. c Sure;
[0056] 5) Based on the maximum constraint of the CTU-level bit allocation strategy based on perceptual distortion in step S21 Achieve target bit allocation.
[0057] In order to verify the performance of the method proposed in this embodiment, the method of this embodiment was tested and verified on the HEVC test platform HM16.9, and the bit rate control accuracy, rate distortion performance and subjective visual quality after encoding were statistically analyzed.
[0058] The objective experimental results of this embodiment under the standard video sequence BlowingBubbles are shown in Tables 1 and 2, and the subjective visual quality comparison results are shown in Tables 1 and 2. Figure 2 . From the perspective of rate control accuracy, the rate control accuracy of the method of this embodiment is better than the rate control method integrated in HM16.9, and the overall rate fluctuation is small. From the perspective of objective rate-distortion performance, the PSNR of the method of this embodiment is significantly better than that of HM16.9 at the same rate point. From the perspective of subjective visual quality, taking the 200th frame of the BlowingBubbles video sequence as an example, under QP37, the subjective visual quality of the method of this embodiment retains more texture details than HM16.9, significantly improving the viewing experience.
[0059] Table 1: Comparison of bitrate control accuracy of BlowingBubbles video sequences
[0060]
[0061] Table 2: Objective rate-distortion performance comparison of BlowingBubbles video sequences
[0062]
[0063] Example 2
[0064] Based on Example 1, the objective experimental results of this example under the standard video sequence BasketballDrill are shown in Tables 3 and 4, and the subjective visual quality comparison results are shown in Tables 3 and 4. Figure 3 .
[0065] Table 3: Comparison of bitrate control accuracy for BasketballDrill video sequences
[0066]
[0067]
[0068] Table 4: Objective rate-distortion performance comparison of BasketballDrill video sequences
[0069]
[0070] From the perspective of rate control accuracy, the rate control accuracy of the method of this embodiment is better than the rate control method integrated in HM16.9, and the overall rate fluctuation is small. From the perspective of objective rate distortion performance, the PSNR of the method of this embodiment is significantly better than that of HM16.9 at the same rate point. From the perspective of subjective visual quality, taking the 200th frame of the BasketballDrill video sequence as an example, under QP37, the subjective visual quality of the method of this embodiment retains more texture details than HM16.9, significantly improving the viewing experience.
[0071] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A rate control method based on VMAF perceptual distortion measurement, It is characterized in that The following steps are involved: S1. Establish a mapping relationship between the perceptual distortion measure guided by VMAF score and the encoder quantization step size and image texture characteristics; VMAF refers to Visual Multimethod Assessment Fusion, which uses a support vector machine to regress multivariate features and use the mean method to obtain an overall video quality evaluation. The step S1 comprises the following steps: S11. Establish the perceptual distortion measurement mapping relationship f, whose formula is D VMAF =f(Q step ,T), where Q step is the quantization step size, which is obtained by looking up the QP table, Q step The corresponding relationship with QP is Q step ≈2 (QP-4) / 6 , D VMAF is the perceptual distortion measure guided by VMAF score, T is the image texture characteristic; The QP is a quantization parameter; S12, first use linear and exponential functions to fit D VMAF With Q step The mapping relationship is as follows: The coefficients a and c are related to the video content, and the coefficient b represents the minimum perceptual distortion D of the video. min ; S13, Structure D VMAF The loss function is as follows: The optimal coefficient is iteratively determined using the gradient descent method, and its formula is: Where η is the learning rate; S14, after getting D VMAF With Q step After the mapping relationship, in f 1 Based on this, we further fitted D VMAF The functional relationship between D and T VMAF The analytical expression between the coefficients a, c and the texture complexity T is a=g(T) or c=g(T); S15, performing cross-sequence function fitting on sequences of different texture features in the data set, determining the function g through multiple fitting experiments, and finally determining the mapping function f; S2, when the target bit number of the current image is known, formulate a CTU-level bit allocation strategy based on perceptual distortion; The CTU refers to a coding tree unit; The step S2 comprises the following steps: S21, when the target bit number R of the current image is known C In the case of , a CTU-level bit allocation strategy based on perceptual distortion is formulated, and its formula is: Where N is the number of CTUs contained in the image. is the perceptual distortion of the i-th CTU block in the image, R i is the actual number of coded bits of the i-th CTU block, Indicates the best bit allocation method for the current image; S22. The Lagrangian optimization method is used to transform the CTU-level bit allocation strategy based on perceptual distortion into an extreme value problem under unconstrained conditions. The formula is: The optimal rate-distortion cost is In order to obtain the Lagrangian optimal solution, it is necessary to satisfy Right now S3. Based on the perceptual distortion measurement mapping relationship and the CTU-level bit allocation strategy, according to the rate-distortion optimization theory, the perceptual rate-distortion function is obtained to achieve the target bit allocation; Step S3 includes the following steps: S31. When the distortion D is defined as the absolute error and SAD, its rate-distortion function is Among them, α reflects the content characteristics of the video; S32. Use a primary function to establish Q step The relationship between and D is: D = m (Q step +n), where n is a constant and m is related to the image content characteristics; S33, based on Q in step S12 step With D VMAF The functional relationship between 1 , establish D VMAF The relationship between and D is: S34: Based on step S31 and step S33, a perceptual rate distortion function is obtained, and its formula is: For the λ used for a single frame image, we can obtain the slope of the rate-distortion curve by Combined with the Lagrangian optimal solution of step S22, we can obtain where α i Dependent on the content of the image, λ is determined by the total target bit number R of the image. c Sure; S35, based on the maximum constraint condition of the CTU-level bit allocation strategy based on perceptual distortion in step S21 Achieve target bit allocation.
Citation Information
Patent Citations
Optimized coding method for improving video quality based on VMAF criterion
CN110324618A
VMAF-based perception video rate distortion coding optimization method and device
CN111970511A
Code rate control method for CTU-level video coding based on perception
CN112738518A
