Abstract
This paper introduces a sub-frame layer Rate Distortion Optimization (RDO) algorithm for High Efficiency Video Coding (HEVC) designed to address varying motion within video frames. By segmenting frames into high-motion (HC) and low-motion (LC) sub-frames and modeling their distinct distortion propagation paths, the method dynamically assigns optimal Quantization Parameters (QPs). Experimental results demonstrate significant bit-rate reductions—up to 13.3% using the SSIM metric—with only a marginal increase in encoding complexity.
Introduction
In video compression standards like HEVC, Rate Distortion Optimization (RDO) is critical for balancing video quality (distortion) and file size (rate). HEVC's hierarchical prediction structures mean that compression errors in one frame propagate to subsequent frames. Current RDO methods typically assign a single Quantization Parameter (QP) to an entire frame, failing to account for the different impact high-motion and low-motion areas have on future frames. While Coding Tree Unit (CTU) level optimization exists, it often suffers from mathematical instability due to the small amount of information per unit. This research proposes a sub-frame layer approach to bridge this gap by accurately optimizing inter-frame dependency while respecting intra-frame content differences.
Proposed Methodology
The core of the proposed algorithm is the "sub-frame layer" RDO, which operates at a granularity between the frame and CTU levels. The process begins with Content Segmentation, where each frame is divided into High Motion Content (HC) and Low Motion Content (LC) sub-frames based on pixel difference energy between sequential frames.
Following segmentation, the encoder performs a Pre-analysis on a small window of frames (e.g., 23 frames) to gather actual statistics on distortion propagation. An Inter-frame Dependency Model is then constructed to quantify how distortion in a reference frame affects current and future frames. This model utilizes a Laplace distribution for direct impact and a propagation chain for indirect impact. Finally, Lagrange Optimization is used to solve for the optimal $\lambda$ and QP for each sub-frame. Additionally, the algorithm dynamically inserts new high-quality "Layer 0" (L0) frames when it detects background quality degradation.
Distortion Propagation Analysis
The research highlights that distortion propagation is highly predictable and varies significantly between motion types. As shown in the analysis of Mean Squared Error (MSE), there is a strong linear relationship between the distortion of a reference frame and the resulting distortion in the frames that depend on it. This relationship allows the algorithm to accurately estimate the "ripple effect" of compression decisions.
Experimental Results
The algorithm was evaluated using the HEVC Common Test Database (Classes A through F). The proposed method achieved an average bit-rate reduction of 7.0% for both lowdelay_P_main (LDP) and lowdelay_main (LDB) configurations using Peak Signal-to-Noise Ratio (PSNR). When optimized for Structural Similarity (SSIM)—a metric closer to human visual perception—the reduction improved to 13.3% (LDP) and 13.1% (LDB).
Compared to recent frame-level and CTU-level RDO algorithms, this method provides an additional 3.4% to 5.5% bit-rate savings. The computational overhead remains manageable, with an average encoding time increase of only ~5% (1.05x runtime) for most video classes.
Conclusion and Future Work
Sub-frame layer RDO provides a "Goldilocks" granularity for video compression, offering enough differentiation to handle intra-frame motion variation while remaining mathematically traceable. While the method shows slight performance degradation in sequences with uniform motion (where HC and LC dependencies are identical), its ability to adaptively refresh foundational anchor frames significantly improves quality in most scenarios. Future work will focus on incorporating the impact of distortion on motion vectors into the dependency model to further refine optimization accuracy.
Summary updated