ffmpeg
Skill18 starsChanged 2 days agoMITView on GitHub
FFmpeg command recipes and flag reference for when the deliverable is command text, not a media file - a one-liner to paste into a terminal, a CI/Makefile/shell script snippet, a review of an existing ffmpeg command, or an explanation of encoding flags (CRF, preset, faststart, hvc1, hardware acceleration). Covers conversion, trimming, resizing, audio mixing, subtitles/overlays, slideshows, thumbnails, encoding tuning. When an actual output file must be produced and the ffmpeg-skill skill is installed, use ffmpeg-skill instead: it probes the input, runs typed tools and verifies the result.
28 other projects use a version of this.
Adopted by
Most recently taken up by
- EdenGibson/claude-skillstheir own version, first seen Nov 29, 2026
- KiaroSama/Revayat-Subtitle-Skilltheir own version, first seen Nov 29, 2026
- digitalsamba/claude-code-video-toolkittheir own version, first seen Nov 27, 2026
- Vujavujavuja/Stillmotion-onbrandtheir own version, first seen Nov 16, 2026
- ilyi1116/reelmimictheir own version, first seen Nov 15, 2026
- calesthio/OpenMontagetheir own version, first seen Nov 9, 2026
Used with
Projects with it also use awwwards-animations, explainer-video-guide and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
wendymardigian-progSkillawwwards-animations
Professional React animation skill for creating Awwwards/FWA-level animations using GSAP (useGSAP), Motion (Framer Motion), Anime.js, and Lenis. Use when building premium scroll experiences, custom cursors, page transitions, text animations, parallax effects, micro-interactions, or any animation that needs to be 60fps and award-worthy. Triggers on requests for smooth scroll, ScrollTrigger, magnetic effects, reveal animations, horizontal scroll, pin sections, stagger effects, useScroll, useTransform, integration with Three.js/WebGL, algorithmic art, mathematical art, generative art, fractals, L-systems, flow fields, strange attractors, sacred geometry, geometric puzzles, Dudeney dissections, tangram, tessellations, Penrose tiles, kinetic typography, glitch effects, text explosion, morphing text, circular text, brutalist design, minimalist animation, neo-brutalism, or design philosophy mixing. React-first approach with proper cleanup and hooks.
Also in 3 projects that use this
wendymardigian-progSkillexplainer-video-guide
Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline
Also in 3 projects that use this
freshtechbroSkillanimated-component-libraries
Pre-built animated React component collections combining Magic UI (150+ TypeScript/Tailwind/Motion components) and React Bits (90+ minimal-dependency animated components). Use this skill when building landing pages, marketing sites, dashboards, or interactive UIs requiring pre-made animated components instead of hand-crafting animations. Triggers on tasks involving animated UI components, Magic UI, React Bits, shadcn/ui integration, Tailwind CSS components, or component library selection. Alternative to manually implementing animations with Framer Motion or GSAP.
Also in 3 projects that use this
JuanMarchettoSkillplaywright-recording
Record browser interactions as video using Playwright. Capture demo videos, app walkthroughs, and UI flows. Includes cursor highlighting, click ripple effects, cookie banner dismissal, and window scaling patterns. Use when: record demo, capture browser video, screen recording, walkthrough footage.
Also in 3 projects that use this
ncklrsSkillmotion-designer
Advanced motion designer with decades of After Effects and motion graphics experience, specialized in creating engaging video specifications for Remotion. Use when creating video specs, planning motion graphics, designing animations, or when asked to "create a video", "design motion graphics", "plan video content", or "spec out a video". Produces detailed scene-by-scene specifications with timing, audio, sound effects, and animation descriptions.
Also in 3 projects that use this
LangChainSkillmusic-to-video
Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.
Also in 3 projects that use this
Other versions28 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 28
- calesthio/OpenMontage★ 84ksame name
- OpenMontageInc/OpenMontage★ 84ksame name
- digitalsamba/claude-code-video-toolkit★ 2.8ksame name
- edenfunf/reelmimic★ 2ksame name
- rendi-api/ffmpeg-cheatsheet★ 1.7ksame name
- Hainrixz/editor-pro-max★ 279same name
- magnus919/agent-skills★ 197same name
- ilyi1116/reelmimic★ 18same name
- LinHao-city/StoryMind★ 10same name
- badgids/Story-Film-Skills★ 4same name
18 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 3 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 26 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Before returning the command, walk through references/glossary.md to validate stream selectors, -map, -c copy use, and seeking position.
- Very specific: line 20
If the user is running on macOS or Linux without a GPU, do not suggest *_nvenc, *_qsv, or VAAPI encoders.
- Distinctive: line 22
If doing partial work, load only the relevant reference files.
- Very specific: line 27
Always start commands with -y when overwriting is acceptable.
- Very specific: line 28
Prefer -c copy (stream copy / remux) when no filter, codec change, or precise trim is needed - it avoids re-encoding and is much faster.
- Very specific: line 29
Do not use -c copy when applying any video filter (scale, overlay, subtitles, trim, fade), mixing or modifying audio (amix, atempo, …
- Very specific: line 33
Treat CRF as the primary quality knob: lower = higher quality, +6 roughly halves bitrate.
- Very specific: line 34
When chaining filters, prefer -filter_complex once you need named streams ([v0], [a1]), multiple inputs, or both audio and video …
- Very specific: line 35
After trim / atrim, always reset timestamps with setpts=PTS-STARTPTS / asetpts=PTS-STARTPTS, otherwise concat and downstream filters break.
- Very specific: line 36
Use -shortest when mixing inputs of different durations and the output should follow the shortest stream.
- Very specific: line 39
When generating filenames programmatically, prefer extensions that match the codec (.mp4 for H.264/H.265, .webm for VP9/Opus, .mkv when …
- Very specific: line 40
If the user reports playback failures (black frames, audio drift, "file not supported"), check first for: missing -pix_fmt yuv420p, missing …
- Very specific: line 41
If the user already has a target file size, switch to two-pass ABR (-b:v <rate> with -pass 1 then -pass 2).
- Very specific: line 42
Verify metadata and stream layout with ffprobe -show_streams -i <file> before debugging filter graphs - mismatched stream indices are the …
- Distinctive: line 47
When the user asks for a command, return:
- Distinctive: line 55
When the user asks for a review of an existing command, organize findings as:
“Common” is measured: kept by at least 6 in 10 of the 26 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Scope: this skill writes and reviews ffmpeg command text. If the user wants a file rendered and ffmpeg-skill (scripts/*.py, probe -> edit -> check) is installed, hand off to it and stop here.
Build correct FFmpeg commands for media-processing tasks by composing recipes from the references instead of recalling commands from memory. FFmpeg syntax is highly position-sensitive and easy to get subtly wrong, so prefer adapting a known-good command from these references over inventing one.
Workflow:
- Identify the task category (simple edit, audio processing, advanced filtering, asset generation, encoding tune-up).
- Open the matching reference file and pick the closest recipe.
- Adapt input paths, time ranges, dimensions, codecs, and filter parameters to the user's request.
- Before returning the command, walk through
references/glossary.mdto validate stream selectors,-map,-c copyuse, and seeking position. - If the user is running on macOS or Linux without a GPU, do not suggest
*_nvenc,*_qsv, or VAAPI encoders.
If doing partial work, load only the relevant reference files.
Core Instructions
- Always start commands with
-ywhen overwriting is acceptable; otherwise omit it so FFmpeg prompts before clobbering output. - Prefer
-c copy(stream copy / remux) when no filter, codec change, or precise trim is needed - it avoids re-encoding and is much faster. - Do not use
-c copywhen applying any video filter (scale,overlay,subtitles,trim,fade), mixing or modifying audio (amix,atempo,volume), burning subtitles, transcoding between codecs, or compressing. - For frame-accurate trimming, use output seeking (
-ssafter-i) without-c:v copy. Input seeking (-ssbefore-i) is fast but only seeks to the nearest keyframe and can produce black frames or off-by-seconds cuts. - For H.264 output, default to
-c:v libx264 -crf 18 -preset veryslow -movflags +faststart -pix_fmt yuv420punless the user specifies otherwise.yuv420pis required for QuickTime and most consumer players. - For H.265 (HEVC) output destined for Apple devices, add
-vtag hvc1so AirDrop and QuickTime accept the file. - Treat CRF as the primary quality knob: lower = higher quality, +6 roughly halves bitrate. Sane libx264 range is 17-28; 18 is "visually lossless"; libvpx-vp9 uses 15-35 with
-b:v 0for constant quality. - When chaining filters, prefer
-filter_complexonce you need named streams ([v0],[a1]), multiple inputs, or both audio and video manipulation. Use-vf/-affor single-stream filtering. - After
trim/atrim, always reset timestamps withsetpts=PTS-STARTPTS/asetpts=PTS-STARTPTS, otherwiseconcatand downstream filters break. - Use
-shortestwhen mixing inputs of different durations and the output should follow the shortest stream. Pair withduration=shortestinsideamixwhen both behaviors are needed. - For
pad,setsar=1:1should follow the resize/pad chain to lock pixel aspect ratio to 1:1 - omitting it can make the output appear stretched even when dimensions look correct. - Quote
-vfand-filter_complexarguments in single quotes (or escape commas inside expressions with\,) to avoid the shell or FFmpeg's expression parser swallowing characters. - When generating filenames programmatically, prefer extensions that match the codec (
.mp4for H.264/H.265,.webmfor VP9/Opus,.mkvwhen multiple subtitle tracks are needed,.movfor ProRes / Apple-flavored workflows). - If the user reports playback failures (black frames, audio drift, "file not supported"), check first for: missing
-pix_fmt yuv420p, missing+faststart, input seeking with-c copy, or wrong-vtagfor HEVC on Apple. - If the user already has a target file size, switch to two-pass ABR (
-b:v <rate>with-pass 1then-pass 2); CRF cannot enforce a size cap. - Verify metadata and stream layout with
ffprobe -show_streams -i <file>before debugging filter graphs - mismatched stream indices are the most common silent failure.
Output Format
When the user asks for a command, return:
- The full one-line FFmpeg command in a
shcode block, ready to paste. - A short bullet list explaining each non-trivial flag and filter.
- Any caveats: player compatibility, expected runtime cost, lossy steps, or known FFmpeg quirks linked from the relevant reference file.
Skip the explanation block only if the user explicitly asks for "command only".
When the user asks for a review of an existing command, organize findings as:
- Correctness - flags or filter ordering that will fail or produce wrong output.
- Quality - CRF, preset, color space, faststart, audio bitrate.
- Performance - unnecessary re-encodes, slow filter chains, missing hardware acceleration.
- Portability - codec/container mismatches, Apple HEVC tag, yuv420p for consumer playback.
Example output for a request like "compress this MP4 for the web, keep visual quality":
ffmpeg -i input.mp4 -c:v libx264 -crf 20 -preset veryslow -pix_fmt yuv420p -movflags +faststart -c:a aac -b:a 128k output.mp4-crf 20keeps near-source quality while shrinking the file; drop to 18 for archival.-preset veryslowtrades encode time for ~20-30% smaller output at the same CRF.-pix_fmt yuv420pensures playback in Safari, QuickTime, and most browsers.+faststartmoves the moov atom to the front so the video starts playing before fully downloaded.-c:a aac -b:a 128kre-encodes audio at a transparent stereo bitrate.
End of example.
References
references/glossary.md- flag and filter syntax, stream selectors,-map,-c copyrules, input vs output seeking.references/simple-editing.md- format conversion (MP4/MKV/MOV/AVI), resize and pad, time-based trim.references/audio-processing.md- replace, extract, mix, crossfade, downsample, stereo-to-mono, format change.references/advanced-editing.md- playback speed, fps, jump cuts, social-media cropping, drawtext overlays, subtitles, watermarks, vstack, intro/outro assembly.references/asset-generation.md- image-to-video, slideshow with xfade, Ken Burns, GIFs, thumbnails, scene-change storyboards.references/encoding-and-tuning.md- daily-use template, libx264/libx265/libvpx-vp9, faststart, CRF guidance, seeking, GPU encoders, ffprobe.
Source
Recipes adapted from the Rendi FFmpeg cheatsheet. Sample URLs in the references point at storage.rendi.dev so commands can be run directly without local files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

