Abstract
In this work, we propose a two-stage video coding framework as an extension of a previous one-stage model. The framework utilizes two distinct dictionaries: the first stage employs a self-adaptive dictionary of inter-prediction candidates solved via an improved orthogonal matching pursuit with embedded orthonormalization (eOMP). The second stage codes the residual using a DCT basis adaptively orthonormalized to the subspace spanned by the first-stage atoms. Transition between stages is determined by quantization stepsizes and a specific threshold. Simulation results demonstrate significant rate-distortion (RD) performance improvements over the one-stage coder, outperforming H.264 and remaining competitive with HEVC.
Introduction
Traditional video codecs, such as H.264 and HEVC, rely on a "hybrid" model that separates prediction from transform coding. This approach typically involves predicting a block of pixels and then applying a fixed mathematical transform, like the Discrete Cosine Transform (DCT), to the residual error. However, this model suffers from two primary inefficiencies:
- Rigidity: Codecs use a limited set of motion candidates and fixed interpolation filters.
- Redundancy: The fixed DCT in the second stage does not account for the information already captured during prediction, leading to potential bit wastage.
This research proposes a framework where prediction and transform stages are mathematically coupled to maximize compression efficiency.
Proposed Two-Stage Framework
The proposed pipeline consists of two integrated stages designed to minimize redundancy by ensuring the transform stage only addresses information not captured by the prediction stage.
Stage 1: Sparse Representation with eOMP
Instead of selecting a single "best" motion vector, the encoder utilizes a "dictionary" containing all possible motion candidates within a search range. It identifies a sparse linear combination of these "atoms" to represent the block. This is achieved using an improved Orthogonal Matching Pursuit (eOMP) algorithm, which recursively orthonormalizes chosen atoms to ensure the most sparse representation possible.
Stage 2: Adaptively Orthonormalized DCT
When Stage 1 reaches a point of diminishing returns, the system transitions to Stage 2. Rather than a standard DCT, the encoder uses a DCT basis adaptively orthonormalized against the atoms selected in Stage 1. This ensures that Stage 2 only codes the "null space"—the signal components that Stage 1 could not represent—thereby eliminating cross-stage redundancy.
Switching Logic and Entropy Coding
The transition is controlled by a threshold based on the residual norm reduction ratio. Additionally, a custom context-adaptive entropy coder, similar to HEVC’s CABAC, is used to efficiently pack atom locations, selection order, and coefficients into the final bitstream.
Performance Evaluation
The framework was evaluated using standard video sequences: "football" (704 × 576, high motion) and "city" (1280 × 720, fine detail). Comparisons were made against a previous one-stage coder, H.264 (x264), and the HEVC reference software (HM).
Key Results
- RD Performance: The two-stage framework achieved approximately a 1dB PSNR improvement over the previous one-stage version.
- Codec Comparisons: The proposed method significantly outperformed H.264 across all tested bitrates. In the "football" sequence at low rates, it outperformed HEVC by up to 0.5dB, remaining competitive at intermediate bitrates.
- High Bitrate Observations: HEVC maintains an advantage at very high bitrates, likely due to its variable block size support (down to 4x4), whereas the current framework uses a fixed 16x16 block size.
Insights and Future Work
The success of this framework highlights the value of mathematical coupling between prediction and transform stages. By making the DCT basis orthogonal to the first-stage atoms, the stages become perfectly complementary.
However, limitations remain. The use of a fixed 16x16 block size restricts performance on fine details at high bitrates. Furthermore, the current implementation lacks in-loop filters (like deblocking or SAO) and is limited to inter-prediction. Future work will explore adding intra-prediction candidates and addressing the computational complexity associated with solving L0-norm minimization via OMP.
Summary updated