/major-ai-skills:ffmpegfrom major-ai-skills
Transcodes and compresses video with FFmpeg, inspects streams with ffprobe, builds filtergraphs and HLS outputs, and diagnoses codec or hardware-encoder failures.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
FFmpeg (pin 6.x / 7.x / 8.x — run ffmpeg -version in CI) is the standard CLI transcode graph: demux → decode → filter_complex → encode → mux. Claude acts as Principal Video Engineer: ffprobe-first, BT.709 tagging, HDR tone-map chains, ABR HLS, hardware encode with software fallback, deterministic frame counts for QA.
┌─────────────────────────────────────────────────────────────┐
│ ffprobe JSON → filtergraph → encode → verify tags │
│ SDR web: yuv420p + bt709 metadata + faststart │
│ HDR→SDR: zscale linear → tonemap → zscale bt709 (NOT colorspace alone) │
└─────────────────────────────────────────────────────────────┘
Use when: mezzanine → delivery transcodes, loudness normalize, HLS/DASH packaging, concat/remux, thumbnail/still extraction, batch folder processing.
Do not use when: NLE project semantics (use Resolve/Premiere skills); DRM packaging; proprietary camera RAW without documented decoder.
ffprobe -show_streams -show_format -print_format json — record color_transfer, color_primaries, pix_fmt, VFR (avg_frame_rate vs r_frame_rate).-pix_fmt yuv420p + -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv on output; -movflags +faststart for MP4 web.colorspace filter cannot tone-map PQ; use zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=...,zscale=t=bt709:m=bt709:r=tv,format=yuv420p. If tags unknown, prefix setparams=color_primaries=bt2020:color_trc=smpte2084:colorspace=bt2020nc.format=yuv420p or -pix_fmt yuv420p, NVENC may write wrong color_space (e.g. bt470bg) — always end filter chain with format=yuv420p (FFmpeg trac #11541).-frames:v N, fixed GOP (-g), -vsync cfr, -fflags +bitexact where applicable; avoid time-based -ss before -i vs after for frame-accurate tests.-vf fps=30 or -vsync cfr; audio aresample=async=1:first_pts=0.-progress pipe:1 for machine-parseable status; exit code = last ffmpeg in shell chain.ffmpeg -y -i input.mov \
-c:v libx264 -preset medium -crf 23 -pix_fmt yuv420p \
-color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range tv \
-c:a aac -b:a 160k -ar 48000 \
-movflags +faststart \
output.mp4
ffmpeg -y -i hdr.mkv \
-vf "zscale=t=linear:npl=100,format=gbrpf32le,zscale=p=bt709,tonemap=tonemap=hable:desat=0,zscale=t=bt709:m=bt709:r=tv,format=yuv420p" \
-c:v libx264 -crf 19 -pix_fmt yuv420p \
-color_primaries bt709 -color_trc bt709 -colorspace bt709 \
-c:a copy out_sdr.mp4
Verify: ffprobe -show_entries stream=color_space,color_transfer,color_primaries -of default=nw=1 out_sdr.mp4
Use -g 60 -keyint_min 60 -sc_threshold 0 at 30fps for 2s segments; -hls_flags independent_segments; map separate video renditions with -var_stream_map.
| Symptom | Cause | Fix |
|---|---|---|
| Washed SDR | No tonemap / wrong primaries | Full zscale+tonemap chain |
| Dark HDR on SDR display | Tags say bt709 but pixels HDR | Tone-map + retag |
| NVENC missing | Build without nvenc | ffmpeg -encoders | findstr nvenc |
| A/V drift | VFR source | fps filter + async audio |
| DTS warnings | Bad timestamps | -fflags +genpts, remux pass |
MANDATORY: ffprobe first; yuv420p + bt709 tags on SDR MP4; never use
colorspacealone for PQ/HLG; end NVENC graphs with explicit yuv420p; log full stderr on failure.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills3 plugins in 2 repositories ship this exact skill · first indexed Oct 7, 2026
412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.