ffmpeg-stabilization-360
БесплатноБез исполняемых скриптовНе проверенComplete FFmpeg video stabilization and 360/VR video processing. PROACTIVELY activate for: (1) Video stabilization (deshake, vidstab), (2)…
от JosiahSiegel★ 67 звёзд на GitHubОб этом скилле
CRITICAL GUIDELINES
Windows File Path Requirements
MANDATORY: Always Use Backslashes on Windows for File Paths
When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).
Quick Reference
| Task | Filter | Command Pattern |
|---|---|---|
| Basic stabilization | deshake |
-vf deshake |
| VidStab (2-pass) | vidstab |
See two-pass workflow |
| OpenCL stabilization | deshake_opencl |
-vf deshake_opencl |
| 360 projection | v360 |
-vf v360=e:c3x2 |
| Ken Burns effect | zoompan |
-vf zoompan=z='...' |
| Lens correction | lenscorrection |
-vf lenscorrection=k1=... |
When to Use This Skill
Use for motion correction and VR workflows:
- Stabilizing shaky handheld footage
- Action camera (GoPro, DJI) processing
- Drone video smoothing
- 360/VR video format conversion
- Creating zoom/pan effects
- Correcting lens distortion
FFmpeg Stabilization & 360 Video (2025)
Comprehensive guide to video stabilization, VR processing, and motion effects.
Video Stabilization
deshake - Basic Stabilization
Built-in single-pass stabilization filter.
# Basic stabilization
ffmpeg -i shaky.mp4 -vf "deshake" stable.mp4
# With custom parameters
ffmpeg -i shaky.mp4 -vf "deshake=x=-1:y=-1:w=-1:h=-1:rx=16:ry=16" stable.mp4
# Strong stabilization
ffmpeg -i shaky.mp4 -vf "deshake=rx=64:ry=64:edge=mirror" stable.mp4
Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
x, y |
Motion search start | -1 (auto) | 0-width/height |
w, h |
Motion search size | -1 (auto) | 0-width/height |
rx, ry |
Maximum shift | 16 | 0-64 |
edge |
Edge handling | mirror | blank, original, clamp, mirror |
blocksize |
Block size for motion search | 8 | 4-128 |
contrast |
Contrast threshold | 125 | 1-255 |
search |
Search method | exhaustive | exhaustive, less |
Edge modes:
blank- Fill edges with blackoriginal- Keep original edge pixelsclamp- Clamp to edge valuesmirror- Mirror edge pixels (usually best)
deshake_opencl - GPU-Accelerated Stabilization
Faster stabilization using OpenCL.
# OpenCL stabilization
ffmpeg -i shaky.mp4 \
-vf "hwupload,deshake_opencl,hwdownload,format=yuv420p" \
stable.mp4
# With custom parameters
ffmpeg -i shaky.mp4 \
-vf "hwupload,deshake_opencl=tripod=0:smooth=9:adaptive_crop=1,hwdownload,format=yuv420p" \
stable.mp4
VidStab - Professional Two-Pass Stabilization
VidStab provides the highest quality stabilization using a two-pass approach.
Pass 1: Analyze motion
# Analyze video and save transform data
ffmpeg -i shaky.mp4 \
-vf "vidstabdetect=stepsize=6:shakiness=8:accuracy=9:result=transforms.trf" \
-f null -
Pass 2: Apply transforms
# Apply stabilization with transforms
ffmpeg -i shaky.mp4 \
-vf "vidstabtransform=input=transforms.trf:zoom=1:smoothing=30" \
stable.mp4
vidstabdetect Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
stepsize |
Step size for motion estimation | 6 | 1-32 |
shakiness |
Shakiness amount (higher = more analysis) | 5 | 1-10 |
accuracy |
Detection accuracy | 15 | 1-15 |
result |
Output transform file | transforms.trf | filename |
show |
Visualize detection | 0 | 0-2 |
vidstabtransform Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
input |
Transform file | transforms.trf | filename |
smoothing |
Smoothing frames (higher = smoother) | 10 | 0-100 |
zoom |
Zoom percentage | 0 | -100 to 100 |
optzoom |
Optimal zoom calculation | 1 | 0-2 |
zoomspeed |
Max zoom change per frame | 0.25 | 0-5 |
crop |
Cropping mode | keep | keep, black |
relative |
Transform type | 1 | 0-1 |
tripod |
Tripod mode (fixed position) | 0 | 0-1 |
Complete VidStab workflow:
#!/bin/bash
# Professional stabilization workflow
INPUT="$1"
OUTPUT="${1%.*}_stabilized.mp4"
echo "Pass 1: Analyzing motion..."
ffmpeg -i "$INPUT" \
-vf "vidstabdetect=stepsize=6:shakiness=8:accuracy=15:result=transforms.trf" \
-f null -
echo "Pass 2: Applying stabilization..."
ffmpeg -i "$INPUT" \
-vf "vidstabtransform=input=transforms.trf:smoothing=30:zoom=2:optzoom=1" \
-c:v libx264 -crf 18 -preset slow \
-c:a copy \
"$OUTPUT"
rm transforms.trf
echo "Stabilized: $OUTPUT"
Stabilization Comparison
| Method | Quality | Speed | GPU | Use Case |
|---|---|---|---|---|
deshake |
Good | Fast | No | Quick fixes |
deshake_opencl |
Good | Very Fast | Yes | Quick fixes with GPU |
vidstab (2-pass) |
Best | Slow | No | Professional work |
Установить ffmpeg-stabilization-360 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ffmpeg-stabilization-360?
Complete FFmpeg video stabilization and 360/VR video processing. PROACTIVELY activate for: (1) Video stabilization (deshake, vidstab), (2) Hardware-accelerated stabilization (deshake_opencl), (3) 360/VR video transforms (v360), (4) Perspective correction (perspective), (5) Ken Burns/zoom-pan effects (zoompan), (6) Lens distortion correction (lenscorrection, lensfun), (7) Action camera footage, (8) Drone video processing, (9) VR headset formats. Provides: Stabilization workflows, 360 projection conversions, motion effects, lens correction.
Как установить скилл ffmpeg-stabilization-360?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ffmpeg-stabilization-360 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub