Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ffmpeg-ops

БесплатноЗапускает вложенные скриптыНе проверен

Comprehensive ffmpeg/ffprobe media processing: transcode, cut/trim/concat, color grading, loudness normalization, subtitles, GIFs, HLS packaging, hardware…

0xDarkMatterот 0xDarkMatter★ 86 звёзд на GitHub

Об этом скилле

ffmpeg Operations

Operational expertise for ffmpeg/ffprobe: the ~30 commands that cover most real work, the footguns that silently ruin output, EDL-driven editing (edit-as-code), and eight scripts that replace the logic an agent would otherwise re-derive every task.

Doctrine: probe first

Never transcode, cut, or filter blind. Every media task starts by probing the input — codec, duration, frame rate (constant or variable?), pixel format, rotation, stream layout. Half of all "ffmpeg did something weird" reports are a property of the input the command never checked.

python skills/ffmpeg-ops/scripts/probe-media.py input.mp4            # human summary
python skills/ffmpeg-ops/scripts/probe-media.py --doctor input.mp4   # TRIAGE: hazards + exact fixes
python skills/ffmpeg-ops/scripts/probe-media.py --json input.mp4 | jq '.data.streams'
python skills/ffmpeg-ops/scripts/probe-media.py --keyframes-near 92.5 input.mp4

--doctor makes the doctrine self-enforcing: VFR, HDR transfer, rotation metadata, interlacing, non-yuv420p delivery, and moov-at-EOF each come back as a finding with the exact fix command, and exit 10 means "fix before processing". The --keyframes-near form answers "can I stream-copy a cut at 92.5s?" — it reports the nearest keyframes so you know whether a copy cut will snap (see Footguns). When a command fails with a cryptic message, decode it: references/error-decoder.md.

Before recommending an encoder, verify the build has it. Installed ffmpeg builds vary wildly (especially hardware encoders — listed ≠ working):

bash skills/ffmpeg-ops/scripts/capability-scan.sh           # full: proof-encodes each hw encoder
bash skills/ffmpeg-ops/scripts/capability-scan.sh --quick   # list-only, no GPU touch

Cookbook

Copy-paste recipes, each with the trap it avoids in its comments: references/cookbook.md. Commands are bash-form (see Windows notes); always pass -y or -n so no agent-run command goes interactive.

Need Cookbook section
Web H.264, HEVC, AV1, remux, VFR normalize, FFV1 archive, fit-to-size Convert and compress
Copy vs frame-accurate trim, concat demuxer vs filter Cut and join
Scale, crop, 9:16 blurred pad, rotate, fps, speed, slow-mo, timelapse Resize, transform, retime
Watermark, drawtext timecode, burned vs soft subtitles Overlay, text, subtitles
Extract, replace, mix, loudness, trim silence Audio
16 kHz mono STT extraction, piping, silence chunking Speech-to-text prep
Thumbnails, contact sheets, GIFs, chapters, dataset frames, sprites Images, GIFs, frames
Corruption check, frame hashes, metadata strip, ffprobe one-liners Diagnostics and validation
Post-download yt-dlp patterns yt-dlp interop
Synthetic test fixtures Generative/test sources

Footguns

The table that pays this skill's rent. Each row is a class of silent failure.

Footgun The trap The rule
-ss + -c copy Cut starts seconds early or with frozen/black lead-in (snapped to prior keyframe) Copy cuts snap. Check probe-media.py --keyframes-near; re-encode when exact
Output-side -to after input-side -ss Timestamps reset at the seek point, so -to silently becomes a duration Keep -ss/-to on the same side of -i (both input-side is fast and absolute)
Missing -pix_fmt yuv420p Encode "works" but Safari/QuickTime/TVs show black or refuse to play (defaulted to yuv444p/yuv422p from a high-quality source) Always set it for delivery H.264/H.265
Missing -movflags +faststart Browser can't start playback until the whole file downloads (moov at EOF) Always set it for web-served MP4
Default stream selection ffmpeg picks ONE stream per type (highest-res video, most-channels audio) — extra audio tracks and all subs are silently dropped -map 0 to keep everything, explicit -map otherwise
-vf + -c:v copy together Hard error — filters require decoding Filtering implies re-encode; pick one
VFR source (phone/Zoom/Loom/screen-rec) Cut math drifts, concat desyncs, players stutter Normalize first: -fps_mode cfr -r 30 + re-encode (cookbook)
-vsync (deprecated) Old flag, removed direction Use -fps_mode (cfr/vfr/passthrough)
scale=W:-1 Odd height → encoder error with yuv420p Always -2
concat demuxer on mismatched inputs "Works" then glitches/desyncs at boundaries (codec/timebase mismatch) Demuxer = identical params only; else concat filter with re-encode
amix default Each input's volume halved (normalize defaults on) amix=...:normalize=0 + explicit volume=
One-pass loudnorm Dynamic mode pumps quiet passages; output silently 192 kHz Two-pass linear via loudnorm-scan.py; add -ar 48000
-shortest absent on audio-replace Output runs as long as the LONGEST input (silence or frozen frame tail)
Полный SKILL.md на GitHub

Установить ffmpeg-ops в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
Glob
Grep

Вложенные файлы

assets/edl-schema.jsonassets/encoding-presets.jsonassets/hls-ladder.jsonreferences/analysis-validation.mdreferences/audio.mdreferences/capture-devices.mdreferences/color-grading.mdreferences/color-hdr.mdreferences/cookbook.mdreferences/edit-as-code.mdreferences/encoding.mdreferences/error-decoder.mdreferences/filtergraph.mdreferences/hardware-accel.mdreferences/images-gif.mdreferences/look-recipes.mdreferences/quality-metrics.mdreferences/restoration.mdreferences/streaming-hls.mdreferences/stt-whisper.mdreferences/subtitles.mdreferences/trim-concat.mdreferences/visualization.mdscripts/capability-scan.shscripts/cut-from-edl.pyscripts/detect-segments.pyscripts/gen-luts.pyscripts/loudnorm-scan.pyscripts/make-chapters.pyscripts/make-sprites.pyscripts/probe-media.pyscripts/quality-compare.pyscripts/smart-compress.pyscripts/verify-commands.sh

FAQ

Что делает скилл ffmpeg-ops?

Comprehensive ffmpeg/ffprobe media processing: transcode, cut/trim/concat, color grading, loudness normalization, subtitles, GIFs, HLS packaging, hardware encoding, and quality gates (VMAF). Triggers on: ffmpeg, ffprobe, transcode, compress/convert video, extract audio, color grade, hls.

Как установить скилл ffmpeg-ops?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ffmpeg-ops запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ffmpeg-ops с