agentleFS
ryanilanoryanilano/ilano-skills/skills/ffmpeg/SKILL.md

ffmpeg

Skill0 starsChanged 2 months agoMITView on GitHub

Edit video, audio and image sequences with ffmpeg through one JSON-returning helper (cut, merge, compress, GIF, subtitles, thumbnails, speed, watermark, stabilize, convert). Use for any media file manipulation, including a video.mp4 that yt-cc saved.

  • Installs packages

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use remotion-best-practices.

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.
  • VercelSkill

    remotion-best-practices

    Best practices for Remotion - Video creation in React

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every operation goes through scripts/fftools.py, which wraps ffmpeg and ffprobe and returns JSON.

    line 8

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

Every operation goes through scripts/fftools.py, which wraps ffmpeg and ffprobe and returns JSON. Run it with no arguments for the command list; references/commands.md has one worked example per command, the raw-ffmpeg recipes the helper does not cover, and the CRF and container tables.

python3 scripts/fftools.py info input.mp4

Steps

  1. Probe first. info on every input: duration, resolution, codecs, size. Output settings come from these numbers, not from guesses.
  2. Operate. One helper command per edit; chain edits by feeding one output into the next. Reach for raw ffmpeg only when no helper command fits (references/commands.md, "Raw ffmpeg").
  3. Verify. info on the output. Done when the JSON shows the expected duration, resolution and codecs, and no error key.
  4. Show. Load each image (thumbnail, frame) into your context and describe it; if you cannot view images, report its path and size. For video, report the path and size.

Rules

  • Stream copy when the codecs match, re-encode when they do not. merge defaults to copy; add --reencode when info shows different codecs across inputs.
  • CRF is the quality knob. 18 archival, 23 default, 28 sharing, 32 social. Each +6 roughly halves the file.
  • A timeout on a long video is not a failure. Re-run with --preset ultrafast, or cut first and process the piece.
  • Absolute paths in, absolute paths out. "No such file" is a path problem, not a codec problem.

With yt-cc

yt-cc "<url>" --video leaves video.mp4 beside the transcript in the store, and the transcript's **[MM:SS]** marks give you the timestamps: cut the quoted passage, thumbnail the moment, gif the demo.

Requirements

ffmpeg and ffprobe on PATH (brew install ffmpeg). stabilize needs the vidstab filter compiled in; ffmpeg -filters | grep vidstab says whether it is.

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.