agentleFS
RoentekRoentek/Claude_Code_Boilerplate_Framework/.claude/skills/ffmpeg/SKILL.md

ffmpeg

Skill4 starsChanged 6 months agoMITView on GitHub

Programmatic ffmpeg wrapper at tools/ffmpeg.js. Use for video/audio manipulation in workflows and automations. Requires: ffmpeg system binary (bash .claude/hooks/install/sys-ffmpeg.sh or winget install Gyan.FFmpeg) All commands output JSON to stdout. Errors go to stderr with exit code 1. Both HH:MM:SS and plain seconds work: - --start 00:01:30 = --start 90 - --end 00:02:00 = --end 120

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use awwwards-animations, explainer-video-guide and 4 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-progSkill

    awwwards-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-progSkill

    explainer-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

  • freshtechbroSkill

    animated-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

  • ncklrsSkill

    motion-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

  • OpenAISkill

    remotion-render

    Export a Remotion video

    Also in 3 projects that use this

  • VercelSkill

    remotion-best-practices

    Best practices for Remotion - Video creation in React

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All commands output JSON to stdout.

    line 31

“Common” is measured: kept by at least 6 in 10 of the 23 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/ffmpeg — Video & Audio Processing

Programmatic ffmpeg wrapper at tools/ffmpeg.js. Use for video/audio manipulation in workflows and automations.

Requires: ffmpeg system binary (bash .claude/hooks/install/sys-ffmpeg.sh or winget install Gyan.FFmpeg)


Commands

# Inspect metadata (duration, codec, resolution, fps, bitrate)
node tools/ffmpeg.js probe <input>

# Re-encode video (default: mp4, CRF 23)
node tools/ffmpeg.js transcode input.avi [output.mp4] [--format mp4|webm|mov] [--quality <crf>] [--resolution 1280x720] [--fps 30]

# Cut a segment (stream-copy — instant, no re-encode)
node tools/ffmpeg.js trim input.mp4 [output.mp4] [--start 00:00:30] [--end 00:01:00] [--duration 30]

# Extract a single frame as JPEG
node tools/ffmpeg.js thumbnail input.mp4 [output.jpg] [--at 00:00:10] [--width 640]

# Rip audio track
node tools/ffmpeg.js extract-audio input.mp4 [output.mp3] [--format mp3|wav|aac|flac] [--bitrate 192]

# Join multiple files (stream-copy — all inputs must share codec/resolution)
node tools/ffmpeg.js concat a.mp4 b.mp4 c.mp4 [--output merged.mp4]

All commands output JSON to stdout. Errors go to stderr with exit code 1.


When to Use

TaskTool
Understand / analyze video content/watch (claude-video)
Compress, trim, extract audio, generate thumbnailnode tools/ffmpeg.js
Download from YouTube / TikTokyt-dlp (used by claude-video)
Large-scale batch video scrapingApify (/apify-ultimate-scraper)

Common Patterns

# Compress for upload (reduce file size)
node tools/ffmpeg.js transcode big.mp4 small.mp4 --quality 28 --resolution 1280x720

# Thumbnail for a video at 5-second mark
node tools/ffmpeg.js thumbnail video.mp4 thumb.jpg --at 00:00:05 --width 1280

# Extract audio for transcription
node tools/ffmpeg.js extract-audio interview.mp4 interview.mp3 --bitrate 128

# Trim highlights reel
node tools/ffmpeg.js trim raw.mp4 highlight.mp4 --start 00:02:15 --end 00:04:30

# Probe before processing (check codec/resolution/duration)
node tools/ffmpeg.js probe input.mp4

In Trigger.dev Automations

import { execSync } from 'child_process';

const result = JSON.parse(
  execSync(`node tools/ffmpeg.js thumbnail ${inputPath} ${thumbPath} --at 00:00:05`).toString()
);
if (!result.success) throw new Error(result.error);

Time Format

Both HH:MM:SS and plain seconds work:

  • --start 00:01:30 = --start 90
  • --end 00:02:00 = --end 120

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.