ffmpeg-stabilize

Stabilizes video footage via vidstabdetect and vidstabtransform two-pass workflow.

15|4|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/damionrashford/media-os --skill ffmpeg-stabilize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ffmpeg-stabilize
Source: https://github.com/damionrashford/media-os/tree/main/skills/ffmpeg-stabilize
Command: npx skills add https://github.com/damionrashford/media-os --skill ffmpeg-stabilize

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Stabilize shaky video footage using a two-pass vid.stab workflow (vidstabdetect followed by vidstabtransform) with optional deshake and GPU-accelerated variants.

Core Features & Use Cases

  • Two-pass stabilization with vidstabdetect and vidstabtransform for high-quality results.
  • Optional deshake fallback and GPU-accelerated variants (deshake_opencl) for speed.
  • Handles rolling shutter effects and virtual tripod scenarios for steady shots.

Quick Start

Run two-pass stabilization on your footage with ffmpeg using vidstabdetect and vidstabtransform to produce a stabilized video.

Frequently Asked Questions about ffmpeg-stabilize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stabilize shaky GoPro or drone video footage using ffmpeg?

You can stabilize shaky video footage by running a two-pass ffmpeg workflow that uses vidstabdetect to analyze motion vectors, followed by vidstabtransform to apply the stabilization correction to handheld, GoPro, or drone footage.

What is the difference between vid.stab and deshake for video stabilization?

The vid.stab approach uses a two-pass detection and transformation workflow for high-quality results, while the deshake fallback provides a faster, single-pass stabilization path when quicker processing is needed.

Do I need a specific ffmpeg build to use vid.stab stabilization?

Yes, you need an ffmpeg build compiled with libvidstab support to use the high-quality two-pass stabilization workflow, though a deshake fallback path is available if your build lacks this specific dependency.

Can I use GPU acceleration for video deshake and stabilization?

Yes, you can use GPU-accelerated variants such as deshake_opencl to speed up the video stabilization process, offering a faster alternative to the standard CPU-based vid.stab transformation pass.

How do I fix rolling shutter effects when stabilizing video?

You can fix rolling shutter effects during the video stabilization process by configuring the vid.stab transform pass to account for rolling shutter corrections, ensuring steady shots even with high-motion camera sensors.

When should I use a virtual tripod mode for video stabilization?

You should use the virtual tripod scenario when you want to completely lock down the camera frame for a perfectly steady shot, removing all panning and motion rather than just smoothing handheld shake.