Fast Full-frame Video Stabilization with Iterative Optimization

Weiyue Zhao, Xin Li, Zhan Peng, Xianrui Luo, Xinyi Ye, Hao Lu, Zhiguo Cao

Abstract

This paper presents a novel iterative optimization-based learning framework for high-quality, full-frame video stabilization. By conceptualizing a stable video as the fixed point of a nonlinear mapping, the proposed method achieves a processing speed of approximately 10 frames per second—significantly faster than existing state-of-the-art deep learning solutions. The framework utilizes a specialized camera pose regression network and a multi-frame fusion strategy to eliminate the need for aggressive cropping while maintaining high visual fidelity and temporal coherence.

Introduction

Video stabilization is a critical task in computer vision, aimed at removing unwanted camera jitter to produce smooth, professional-looking footage. Traditionally, this field has been defined by a difficult three-way trade-off between visual quality, computational speed, and the Field of View (FoV).

Traditional optimization methods are often fast but require aggressive cropping to hide "black borders" at the frame edges, leading to a loss of image content. Conversely, modern deep learning methods can "outpaint" these missing regions but are typically computationally expensive and slow, often taking seconds to process a single frame. This research bridges the gap by introducing a system that is fast enough for near real-time applications, provides full-frame (uncropped) output, and robustly handles complex scenes with moving objects.

Methodology

The framework is divided into two primary interacting submodules: Motion Trajectory Smoothing and Full-frame Outpainting.

The overall framework consisting of motion trajectory smoothing and full-frame outpainting modules.

Motion Trajectory Smoothing

The core innovation lies in treating stabilization as a fixed-point problem. The authors posit that if a stable video is passed through a stabilizer, it should remain unchanged. This perspective allows for an iterative optimization formulation that minimizes "jerkiness" in motion trajectories. To achieve high speeds, the system replaces traditional, slow feature matching (like SIFT) with a lightweight Camera Pose Regression Network. This CNN directly regresses affine transformation parameters (rotation, translation, scale) from optical flow, operating roughly 10x faster than conventional methods.

Full-frame Outpainting

To avoid the information loss associated with cropping, the model employs a U-Net architecture to extrapolate optical flow into the missing margin areas created by stabilization. A multi-frame fusion strategy then "borrows" pixels from neighboring frames to fill these gaps, ensuring that the final output is both spatially and temporally coherent.

Key Technical Insights

A major challenge in video stabilization is distinguishing between background motion (camera shake) and foreground motion (moving objects). The framework utilizes probabilistic flow fields (PDCNet) to generate confidence maps. These maps allow the system to ignore unreliable regions—such as moving pedestrians or low-texture areas—during pose estimation, preventing the stabilizer from incorrectly "tracking" moving subjects.

Visualization of source/target frames, flow fields, confidence maps, and masks used to handle dynamic objects.

Stabilization as Denoising

The authors argue that stabilization is essentially a denoising task where the "noise" is embedded in the motion trajectories rather than the pixels themselves. By proving that a stable video is a fixed point of their mapping, they provide a mathematical guarantee for the convergence of their iterative approach.

Experimental Results

The model was trained on a sophisticated synthetic dataset combining static backgrounds (from DPED and CityScapes) with dynamic objects (from COCO) and benchmarked against real-world datasets including NUS, DeepStab, and Selfie.

  • Speed: The pipeline processes a frame in just 97ms on an RTX 3090 Ti. This is a massive improvement over the recent state-of-the-art FuSta, which requires nearly 10 seconds per frame.
  • Full-Frame Output: The method achieves a Cropping Ratio of 1.00, meaning zero image content is lost.
  • Stability and Quality: On the NUS dataset, the method achieved a Distortion Value of 0.91, indicating superior resistance to warping artifacts compared to both traditional and learning-based competitors.
  • Robustness: Qualitative analysis shows the model handles "human-dense" scenes significantly better than previous methods, which often produce wobbly artifacts in crowded areas.

Conclusion and Future Work

This iterative optimization framework sets a new benchmark for efficient video stabilization. By combining the speed of regression networks with the mathematical rigor of fixed-point theory, it delivers full-frame, high-quality results at near real-time speeds. Future work will explore more sophisticated temporal modeling to further refine outpainting in highly dynamic environments and improve non-rigid motion handling in extremely crowded scenes.

Summary updated

BibTeX
@inproceedings{zhao2023fast,
  author = {Weiyue Zhao and Xin Li and Zhan Peng and Xianrui Luo and Xinyi Ye and Hao Lu and Zhiguo Cao},
  title = {{Fast Full-frame Video Stabilization with Iterative Optimization}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure