Consistent Quality Oriented Rate Control in HEVC via Balancing Intra and Inter Frame Coding

Wei Gao, Qiuping Jiang, Ronggang Wang, Siwei Ma, Ge Li, Sam Kwong · DOI

Introduction

Video compression often faces a challenging trade-off between maximizing quality for a given bitrate and maintaining consistent quality over time. In High Efficiency Video Coding (HEVC), quality fluctuations—often perceived as "flicker"—can significantly degrade the user experience. This paper introduces LIRC-QC, a machine-learning-driven rate control framework designed to minimize these fluctuations by optimizing the balance between intra and inter frame coding.

What Problem Does This Paper Address?

In HEVC, video sequences are organized into Groups of Pictures (GOPs) starting with an Intra frame (I-frame), followed by several Inter frames (P or B frames). Intra frames serve as spatial anchors; however, traditional rate control algorithms often prioritize local Rate-Distortion (R-D) optimization, ignoring the long-term impact of the initial Intra frame's quality.

Distortion propagation in HEVC video coding.

As shown in Figure 1, if an Intra frame is compressed too heavily (high QP), the resulting distortion propagates through all subsequent Inter frames that reference it. Conversely, allocating too many bits to the Intra frame "starves" the following frames, leading to a sharp drop in quality later in the sequence. This imbalance creates a "sawtooth" quality pattern that is visually jarring for human viewers.

Methods: The LIRC-QC Framework

The authors propose a learning-based approach to predict the Optimal Intra frame Quantization Parameter (OIQP). The framework operates in three distinct stages to ensure both consistency and bitrate accuracy:

The three-step LIRC-QC framework architecture.
  1. Ground Truth Refinement: To train the model, the researchers identified the "perfect" QP for various video sequences. They introduced a multiplicative penalty term to ensure the selected QPs not only provided smooth quality but also allowed the encoder to accurately meet its target bitrate.
  2. Feature Selection & Machine Learning: Three key features were identified as critical for predicting the intra-inter balance: Target Bits Per Pixel (TBPP), the average QP of previous frames (AvgQP), and the standard variance of previous QPs (SvarQP). These features are fed into an $ε$-Support Vector Regression (SVR) model with a Radial Basis Function (RBF) kernel.
  3. Adaptive QP Clipping: To ensure robustness against sudden scene changes or extreme bandwidth constraints, a clipping mechanism keeps the predicted QP within a safe operational range based on available bits.

Key Results

The LIRC-QC framework was evaluated against the HEVC reference software (HM-16.14) using 18 standard video sequences. The results demonstrate significant improvements in both quality consistency and coding efficiency:

  • Reduced Quality Fluctuation: Quality variance was reduced by 37.2% in terms of PSNR and 45.1% in terms of SSIM.
  • Improved Coding Efficiency: The method achieved an average 8.1% reduction in BD-BR, meaning the same visual quality was achieved using 8% fewer bits.
  • Bitrate Accuracy: The system maintained a high average bitrate accuracy of 99.5%, outperforming existing state-of-the-art models.
  • Buffer Stability: The approach resulted in smoother buffer occupancy, which is critical for preventing playback stalls in real-world streaming scenarios.

Conclusion

By shifting the focus from local frame-to-frame smoothing to global GOP-level optimization of "anchor" frames, LIRC-QC effectively addresses the root cause of quality flicker in HEVC. While the current model relies on pre-trained SVR, future work may explore deep reinforcement learning to enable real-time adaptation to increasingly diverse video content.

Summary updated

BibTeX
@article{gao2022consistent,
  author = {Wei Gao and Qiuping Jiang and Ronggang Wang and Siwei Ma and Ge Li and Sam Kwong},
  title = {{Consistent Quality Oriented Rate Control in HEVC via Balancing Intra and Inter Frame Coding}},
  journal = {IEEE Trans. Industrial Informatics},
  year = {2022},
  doi = {10.1109/tii.2021.3079231},
}
Figure