ffmpeg-video-analysis
БесплатноБез исполняемых скриптовНе проверенComplete FFmpeg video analysis and quality control filters for automation and broadcast workflows. PROACTIVELY activate for: (1) Detecting black frames…
от 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 |
|---|---|---|
| Detect black frames | blackdetect |
-vf blackdetect=d=0.5:pic_th=0.98 |
| Detect frozen frames | freezedetect |
-vf freezedetect=n=0.003:d=2 |
| Detect blur | blurdetect |
-vf blurdetect=low=5:high=15 |
| Auto crop | cropdetect |
-vf cropdetect=24:16:0 |
| Scene changes | scdet |
-vf scdet=threshold=10 |
| Quality metrics | psnr, ssim |
-lavfi "[0:v][1:v]psnr" -f null - |
| Frame info | showinfo |
-vf showinfo |
When to Use This Skill
Use for quality control and automation workflows:
- Automated video analysis pipelines
- Detecting problematic frames (black, frozen, blurry)
- Finding optimal crop parameters
- Measuring quality after encoding
- Broadcast compliance checking
- Content-aware editing decisions
FFmpeg Video Analysis Filters (2025)
Comprehensive guide to video analysis filters for quality control, automation, and professional workflows.
Detection Filters
blackdetect - Detect Black Frames
Detects video sequences that are completely black, useful for finding commercial breaks, scene boundaries, or encoding issues.
# Basic black detection
ffmpeg -i input.mp4 -vf "blackdetect=d=0.5:pic_th=0.98:pix_th=0.10" -f null -
# More sensitive detection (darker threshold)
ffmpeg -i input.mp4 -vf "blackdetect=d=0.1:pic_th=0.90" -f null -
# Save detection results to log
ffmpeg -i input.mp4 -vf "blackdetect=d=0.5" -f null - 2>&1 | grep blackdetect
# Detect and extract black segments
ffmpeg -i input.mp4 -vf "blackdetect=d=2.0" -f null - 2>&1 | \
grep -oP 'black_start:\K[0-9.]+|black_end:\K[0-9.]+'
Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
d |
Minimum duration (seconds) | 2.0 | > 0 |
pic_th |
Picture black ratio threshold | 0.98 | 0-1 |
pix_th |
Pixel black threshold | 0.10 | 0-1 |
Output format:
[blackdetect @ 0x...] black_start:10.5 black_end:12.3 black_duration:1.8
blackframe - Detect Nearly Black Frames
Similar to blackdetect but reports individual frames and their blackness amount.
# Detect frames that are 98% black
ffmpeg -i input.mp4 -vf "blackframe=amount=98:threshold=32" -f null -
# Output includes frame number and percentage
ffmpeg -i input.mp4 -vf "blackframe=amount=90" -f null - 2>&1 | grep blackframe
Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
amount |
Percentage threshold | 98 | 0-100 |
threshold |
Pixel brightness threshold | 32 | 0-255 |
freezedetect - Detect Frozen Frames
Detects sequences where the video appears frozen (repeated frames).
# Basic freeze detection
ffmpeg -i input.mp4 -vf "freezedetect=n=0.003:d=2" -f null -
# More sensitive (detect shorter freezes)
ffmpeg -i input.mp4 -vf "freezedetect=n=0.001:d=0.5" -f null -
# Very strict (only perfectly identical frames)
ffmpeg -i input.mp4 -vf "freezedetect=n=0:d=1" -f null -
Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
n |
Noise tolerance (frame diff) | 0.001 | 0-1 |
d |
Minimum freeze duration | 2.0 | > 0 |
Output format:
[freezedetect @ 0x...] freeze_start: 45.2
[freezedetect @ 0x...] freeze_duration: 3.5
[freezedetect @ 0x...] freeze_end: 48.7
blurdetect - Detect Blurry Frames
Detects frames that are out of focus or motion blurred.
# Basic blur detection
ffmpeg -i input.mp4 -vf "blurdetect=low=5:high=15:radius=50" -f null -
# More sensitive detection
ffmpeg -i input.mp4 -vf "blurdetect=low=3:high=10" -f null -
# Output blur values per frame
ffmpeg -i input.mp4 -vf "blurdetect,metadata=print:file=blur.txt" -f null -
Parameters:
| Parameter | Description | Default | Range |
|---|---|---|---|
low |
Low edge threshold | 5 | 1-100 |
high |
High edge threshold | 15 | 1-100 |
radius |
Search radius | 50 | 1-100 |
block_pct |
Block percentage | 80 | 0-100 |
block_width |
Block width | - | > 0 |
block_height |
Block height | - | > 0 |
planes |
Planes to analyze | 1 | 0-15 |
Output metadata:
lavfi.blur- Blur value (lower = blurrier)
scdet - Scene Change Detection
Detects scene changes based on frame-to-frame differences.
# Basic scene detection
ffmpeg -i input.mp4 -vf "scdet=threshold=10:sc_pass=1" -f null -
# More sensitive (detect more scene changes)
ffmpeg -i input.mp4 -vf "scdet=threshold=5" -f null -
# Output scene changes with timestamps
ffmpeg -i input.mp4 -vf "scdet=t=10,metadata=print:file=scenes.txt" -f null -
# Combined with select
Установить ffmpeg-video-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ffmpeg-video-analysis?
Complete FFmpeg video analysis and quality control filters for automation and broadcast workflows. PROACTIVELY activate for: (1) Detecting black frames (blackdetect, blackframe), (2) Finding blurry/frozen frames (blurdetect, freezedetect), (3) Auto crop detection (cropdetect), (4) Scene change detection (scdet), (5) Interlace detection (idet), (6) Quality metrics (PSNR, SSIM, VMAF), (7) Signal analysis (signalstats), (8) Frame information logging (showinfo), (9) QC automation scripts, (10) Broadcast compliance checking. Provides: Detection filters, quality metrics, analysis commands, automation patterns.
Как установить скилл ffmpeg-video-analysis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ffmpeg-video-analysis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic