A Codec Information Assisted Framework for Efficient Compressed Video Super-Resolution

Hengsheng Zhang, Xueyi Zou, Jiaming Guo, Youliang Yan, Rong Xie, Li Song

Abstract

Online processing of compressed videos to increase their resolutions attracts increasing and broad attention. Video Super-Resolution (VSR) using recurrent neural network architecture is a promising solution due to its efficient modeling of long-range temporal dependencies. However, state-of-the-art recurrent VSR models still require significant computation to obtain a good performance, mainly because of the complicated motion estimation for frame/feature alignment and the redundant processing of consecutive video frames. In this paper, considering the characteristics of compressed videos, we propose a Codec Information Assisted Framework (CIAF) to boost and accelerate recurrent VSR models for compressed videos. Firstly, the framework reuses the coded video information of Motion Vectors to model the temporal relationships between adjacent frames. Experiments demonstrate that the models with Motion Vector based alignment can significantly boost the performance with negligible additional computation, even comparable to those using more complex optical flow based alignment. Secondly, by further making use of the coded video information of Residuals, the framework can be informed to skip the computation on redundant pixels. Experiments demonstrate that the proposed framework can save up to 70% of the computation without performance drop on the REDS4 test videos encoded by H.264 when CRF is 23.

Introduction

Video Super-Resolution (VSR) is the process of restoring high-definition details from low-resolution video streams. While recurrent neural networks (RNNs) have shown promise in modeling temporal dependencies, they are often too computationally expensive for real-time use on consumer devices. This inefficiency stems from two primary bottlenecks: the high cost of calculating motion for frame alignment (e.g., via optical flow) and the redundant processing of static background pixels that remain unchanged between frames.

The Codec Information Assisted Framework (CIAF) addresses these issues by repurposing "free" metadata already present in compressed video streams, such as H.264. By leveraging Motion Vectors (MVs) and Residuals, CIAF achieves significant speedups without sacrificing visual quality.

The CIAF Architecture

The core innovation of CIAF is its ability to "hook into" the video decoder to extract syntax elements that guide the super-resolution process.

The overall architecture of the Codec Information Assisted Framework (CIAF), showing how Motion Vectors (MV) and Residuals (Res) are extracted from the compressed stream to guide the Recurrent Module.

Motion Vector (MV) based Alignment

Instead of deploying a separate, heavy neural network to estimate motion, CIAF extracts MVs directly from the video codec. These vectors describe how blocks of pixels have moved from the previous frame. While MVs are typically noisier than dedicated optical flow estimates, CIAF applies them in the feature space rather than the pixel space. This makes the alignment more robust to the blocky nature of codec-level motion data, providing effective alignment at nearly zero additional computational cost.

Residual Informed Sparse Processing

In video compression, a "Residual" represents the difference between a predicted frame and the actual frame. A zero residual indicates that a region was perfectly predicted from the previous frame and requires no new spatial information. CIAF uses these residuals as a mask to identify "important" pixels. The model performs heavy convolutions only on pixels with non-zero residuals, while simply reusing warped features from the previous frame for static areas. This naturally focuses the model's attention on complex textures and moving objects.

Training and Mask Generation

Training a network to be sparse is challenging because the discrete nature of residuals can hinder convergence. The authors employ a Simulated Annealing strategy during training. As shown in the training pipeline, a small CNN initially learns to predict a mask, which is gradually forced to become sparser over time. During inference (testing), this learned component is replaced by the actual residuals extracted from the video stream.

Comparison of the mask generation process during training (using a learned CNN with Simulated Annealing) and testing (using actual codec residuals).

Experimental Results

The framework was evaluated on standard benchmarks including the REDS and Vid4 datasets, encoded using H.264 at various Constant Rate Factors (CRF).

  • Computational Efficiency: On the REDS4 dataset (CRF 23), CIAF saved 70% of the computation (FLOPs) without a drop in visual quality.
  • Performance Gains: When integrated with the FRVSR model, CIAF reduced parameters from 2.59M to 0.84M and cut runtime from 24ms to 20ms, while actually improving the Peak Signal-to-Noise Ratio (PSNR).
  • Temporal Consistency: By avoiding unnecessary re-calculation of static areas, the sparse approach reduced "flickering" artifacts, leading to smoother video over time compared to standard dense models.

Conclusion and Future Work

CIAF demonstrates that codec metadata is a powerful, underutilized resource for efficient VSR. By reusing motion data and identifying spatial redundancy, the framework makes high-quality super-resolution viable for resource-constrained environments. Future research may extend this approach to more advanced codecs like HEVC (H.265) or AV1 and explore hardware-level optimizations for sparse convolutions to further realize these theoretical speedups.

Summary updated

BibTeX
@misc{zhang2022codec,
  author = {Hengsheng Zhang and Xueyi Zou and Jiaming Guo and Youliang Yan and Rong Xie and Li Song},
  title = {{A Codec Information Assisted Framework for Efficient Compressed Video Super-Resolution}},
  year = {2022},
  eprint = {2210.08229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.08229},
}
Figure