agent-routing
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
Audio and video processing with ffmpeg. Use when: user asks to convert, trim, merge, compress, or transcode video or audio files; extract audio from video; create GIFs or animated WebP from video; add subtitles or watermarks to video; change video resolution, framerate, or
$ npx -y skills add oaustegard/claude-skills --skill processing-video --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/processing-videoContext preview
The summary Claude sees to decide when to auto-load this skill.
Audio and video processing with ffmpeg. Use when: user asks to convert, trim, merge, compress, or transcode video or audio files; extract audio from video; create GIFs or animated WebP from video; add subtitles or watermarks to video; change video resolution, framerate, or
name: processing-video description: "Audio and video processing with ffmpeg. Use when: user asks to convert, trim, merge, compress, or transcode video or audio files; extract audio from video; create GIFs or animated WebP from video; add subtitles or watermarks to video; change video resolution, framerate, or codec; normalize audio loudness; extract frames from video; concatenate clips; create thumbnails from video; strip or add audio tracks; convert between audio formats (MP3, AAC, FLAC, Opus, WAV); adjust volume; apply video filters; stabilize shaky video; generate waveform or spectrum visualizations; probe media file metadata. Triggers on 'ffmpeg', 'video', 'audio', 'transcode', 'MP4', 'MKV', 'WebM', 'MP3', 'AAC', 'FLAC', 'Opus', 'WAV', 'GIF from video', 'extract audio', 'add subtitles', 'video to gif', 'compress video', 'trim video', 'merge videos', 'normalize audio', 'framerate', 'resolution', 'bitrate', 'codec', 'ffprobe', 'waveform', 'spectrogram'." metadata: version: 0.1.2
ffmpeg 6.1.1 is pre-installed with a full-featured build. Also available: **ffprobe** (media analysis) and **ffplay** (playback, limited use in container).
Before writing custom Python for media tasks, check whether ffmpeg handles it in a single command.
To *interpret* video content (summarize, describe, find scenes) rather than transform it, use the **parsing-video** skill — it samples frames into timestamped contact sheets that can be read as images.
**ffprobe** — always start here to understand what you're working with.
ffprobe -v quiet -print_format json -show_format -show_streams input.mp4 ffprobe -v quiet -show_entries format=duration,bit_rate -of csv=p=0 input.mp4 ffprobe -v quiet -select_streams v:0 -show_entries stream=width,height,r_frame_rate,codec_name -of csv=p=0 input.mp4
ffmpeg -i input.avi output.mp4 # container swap (re-encode) ffmpeg -i input.avi -c copy output.mp4 # container swap (no re-encode, fast) ffmpeg -i input.mp4 -c:v libx265 -crf 28 output.mp4 # H.265 ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 out.webm # VP9 WebM ffmpeg -i input.mp4 -c:v libsvtav1 -crf 35 output.mp4 # AV1 (SVT, fastest AV1 encoder) ffmpeg -i input.mp4 -c:v libjxl output.jxl # JPEG XL (single frame)
**Encoder selection guide:** | Goal | Encoder | Typical flags | |---|---|---| | Compatibility | libx264 | `-crf 23 -preset medium` | | Better compression | libx265 | `-crf 28 -preset medium` | | Web delivery | libvpx-vp9 | `-crf 30 -b:v 0` | | Best compression | libsvtav1 | `-crf 35 -preset 6` | | Lossless archival | libx264 | `-crf 0 -preset veryslow` |
Lower CRF = higher quality. x264 default 23, x265 default 28, SVT-AV1 default 35 are visually similar.
ffmpeg -i input.wav -c:a libmp3lame -q:a 2 output.mp3 # MP3 VBR ~190kbps ffmpeg -i input.wav -c:a libopus -b:a 128k output.opus # Opus (best quality/size) ffmpeg -i input.wav -c:a aac -b:a 192k output.m4a # AAC ffmpeg -i input.wav -c:a flac output.flac # FLAC lossless ffmpeg -i input.mp3 -ar 44100 -ac 2 output.wav # to WAV, set sample rate/channels
ffmpeg -i video.mp4 -vn -c:a copy audio.aac # extract without re-encoding ffmpeg -i video.mp4 -vn -c:a libmp3lame -q:a 2 audio.mp3 # extract as MP3 ffmpeg -i video.mp4 -vn -c:a libopus -b:a 128k audio.opus
ffmpeg -i input.mp4 -ss 00:01:30 -to 00:03:00 -c copy clip.mp4 # fast, keyframe-aligned ffmpeg -ss 00:01:30 -i input.mp4 -to 00:01:30 -c copy clip.mp4 # -ss before -i = faster seek ffmpeg -i input.mp4 -ss 00:01:30 -to 00:03:00 -c:v libx264 -c:a aac clip.mp4 # frame-accurate (re-encode)
`-ss` before `-i` seeks by keyframe (fast, may be imprecise). After `-i` decodes from start (slow, precise). For frame-accurate cuts, re-encode.
**Demuxer method** (same codec, no re-encode):
# Create file list printf "file '%s'\n" clip1.mp4 clip2.mp4 clip3.mp4 > list.txt ffmpeg -f concat -safe 0 -i list.txt -c copy merged.mp4
**Filter method** (different formats, re-encodes):
ffmpeg -i clip1.mp4 -i clip2.mp4 -filter_complex "[0:v][0:a][1:v][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" merged.mp4
ffmpeg -i input.mp4 -vf "scale=1280:720" output.mp4 # exact size ffmpeg -i input.mp4 -vf "scale=1280:-1" output.mp4 # width 1280, auto height ffmpeg -i input.mp4 -vf "scale=-1:720:flags=lanczos" output.mp4 # height 720, Lanczos ffmpeg -i input.mp4 -vf "scale=iw/2:ih/2" output.mp4 # half size ffmpeg -i input.mp4 -vf "pad=1920:1080:(ow-iw)/2:(oh-ih)/2" output.mp4 # letterbox to 1080p
ffmpeg -i input.mp4 -r 30 output.mp4 # simple (drops/dupes frames) ffmpeg -i input.mp4 -vf "fps=24" output.mp4 # filter-based ffmpeg -i input.mp4 -vf "minterpolate=fps=60" output.mp4 # motion interpolation (slow)
Use the two-pass palette method for quality:
ffmpeg -i input.mp4 -vf "fps=10,scale=480:-1:flags=lanczos,palettegen" palette.png ffmpeg -i input.mp4 -i palette.png -lavfi "fps=10,scale=480:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
Single-pass (simpler, lower quality):
ffmpeg -i input.mp4 -vf "fps=10,scale=480:-1" output.gif
ffmpeg -i input.mp4 -vf "fps=15,scale=480:-1" -c:v libwebp -lossless 0 -q:v 75 -loop 0 output.webp
ffmpeg -i input.mp4 -vf "fps=1" frame_%04d.png # 1 frame/second ffmpeg -i input.mp4 -vf "select='eq(pict_type,I)'" -vsync vfr keyframe_%04d.png # keyframes only ffmpeg -i input.mp4 -vf "thumbnail=300" -frames:v 1 thumb.png # best thumbnail from first 300 f
A collection of Claude skills distributed as a Claude Code plugin marketplace. Skills are primarily designed for the Claude.ai PaaS skill compute environment; mileage will vary if used as Claude Code Agent Skills.
Decide which model, effort level, and cascade shape each subagent gets, and how to keep improvement loops safe…
Cross-context adversarial review for deliverables before shipping. Use when producing blog posts, technical recommendations,…
Convenes expert panels for problem-solving. Use when user mentions panel, experts, multiple perspectives, MECE, DMAIC, RAPID, Six…
Routes, triages, flags and rates a piece of text with a probability for every option: which department or queue a ticket goes to,…
Delegates work to a subagent or spawned session by writing only the task, while a PreToolUse hook pages the parent transcript…
Chooses how to launch subagents from Claude Code (the Agent tool, a Workflow script, or headless claude -p children) and runs a…