A safer approach to AI editing: keep media assets local, let the model output only instructions

Author’s note: When your footage is big, contains client material, and isn’t public yet — and you still want AI to help with the edit — the safest division of labor is to keep the cutting on your own machine and let the model handle only understanding the request, planning the steps, and reading the check results. This article uses the open-source project ffmpeg-skill to walk through that approach end to end.

Creators who make talking-head videos, short clips, and podcasts have almost all run into the same dilemma: a few gigs of raw footage contain unreleased client information, so uploading the whole thing to a cloud editing service doesn’t feel safe — but editing it by hand eats up too much time. This article describes a sturdier division of labor: the footage and FFmpeg stay on your own computer, while the Large Language Model only reads text, issues instructions, and reviews check reports.

This isn’t an argument that “local editing means you don’t need a model,” and it isn’t a promise of fully automatic output either. The model is still invoked through an API — it’s the one that understands what you say, breaks it into steps, and adjusts parameters based on the check results. What actually touches the video file is FFmpeg and a set of scripts running on your machine.

Core value: by the end of this article, you’ll know how to install ffmpeg-skill and make sense of its doctor self-check, how to get an agent to cut a 60-second vertical clip, how to leave revision notes through a local review page, and which model tier to pick — plus where the money actually goes.

ai-video-editing-local-footage-model-instructions-en-image-0


Core Points for a Reliable AI Editing Workflow

ffmpeg-skill is an open-source repository (MIT license, primary language Python). Its GitHub description calls it a local video editor for coding agents: it provides FFmpeg tools with machine-readable contracts plus an MCP server, aimed at Claude Code, Cursor, and Codex. According to the README and the official site, it ships 42 tools, and the latest release is v4.7.0, published on 2026-11-22, which added features like audio.py --track multi-track support. As of 2026-11-23, the GitHub API shows roughly 9,754 stars, 866 forks, and 47 open issues.

Point Description Value for Creators
Footage never leaves your machine Cutting, subtitles, reframing, loudness, and export all run through local FFmpeg Client footage and unreleased content never have to be uploaded in full
The model only issues instructions The agent reads the requirements and probe output, then works out the call order and parameters for the scripts Describe the finished cut you want in natural language
Tools have contracts contract --json lists each tool’s inputs, outputs, required components, and validation method The agent doesn’t have to guess parameters, and errors are easier to trace
Built-in checks Verifies duration, dimensions, frame rate, and codec against the target platform Catches hard errors before you deliver
Humans make the final call Whether the picture looks good and the audio sounds right — the tool marks these as unverified Unverified output is never treated as a finished product

Footage stays on your machine: what ffmpeg-skill is doing

The official tagline is pretty direct: give your coding agent a video editor, use local FFmpeg to edit your footage, then check its own output. The site also stresses that no cloud and no API key are needed—it relies only on the Python standard library. The “no API key needed” here means the editing tool itself doesn’t call any cloud service; the large language model you use to drive the agent still needs its own key.

According to the README, its 42 tools cover cutting and joining, silence removal, duration and aspect-ratio adaptation, subtitles and karaoke-style captions, overlays and motion graphics, HDR to SDR and LUTs, audio cleanup and dynamics, audio-video sync and drift correction, multicam, loudness, delivery checks, project rendering, and batch folders. Each tool’s input schema comes from the script’s own argparse, and CI checks whether the docs have drifted from the code.

The model only issues instructions: what it handles and what it can’t do

The official site summarizes the workflow in four steps: Probe first measures the real file, Edit stays as lossless as possible, Check compares against the target platform, and Verify looks at the result. Between each step, the model reads text output—for example, the duration, resolution, frame rate, and audio track info that probe reports—and then decides how to write the next command. It doesn’t need to “see” the raw video stream; it only needs to see structured check results.

It’s also important to be clear about what the model can’t do. The official FAQ states that ffmpeg-skill doesn’t accept raw ffmpeg arguments or filter_complex; each operation has its own argument parser, so the agent can’t bypass the tool and casually stitch together a complex filter. Verification only covers what can be measured at the file level—”does it look right, does it sound right” gets marked unverified and requires a human to review the contact sheet.

ai-video-editing-local-footage-model-instructions-en-image-1

Verification category What ffmpeg-skill can check automatically Needs human confirmation
File usability Whether it opens, encoding format —
Specification parameters Duration, dimensions, frame rate —
Tool promises The result each tool declares itself —
Visual appearance Listed as unverified Composition, whether cropping cuts into faces, subtitle placement
Sound quality Listed as unverified Whether cuts feel abrupt, whether dialogue is clear

Quick Start with the Local Environment for AI Editing

Here’s a walkthrough in terminal order. Every command runs on your own machine, and the official docs say the tool works offline.

Step 1: Confirm the local environment AI editing needs

Component Minimum version Purpose
FFmpeg (including ffprobe) 6.1+ Does the actual audio/video processing
Python 3.10+ Runs the 42 tool scripts
Node.js 16+ Only needed to run the npx installer
faster-whisper (optional) — Local subtitle transcription; skipping it doesn’t affect the other tools

Start by running ffmpeg -version, python3 --version, and node --version to see where you stand. If the versions are too old, upgrade with your system package manager first — otherwise doctor will report them as missing later.

Step 2: Install with a single command

The easiest route is running npx ffmpeg-skill setup. It installs the skill into the agents already on your machine in one go, fills in FFmpeg via your package manager if it’s missing, and runs doctor automatically at the end. If you only want to install for one specific agent, use npx ffmpeg-skill (Claude Code), npx ffmpeg-skill --cursor, npx ffmpeg-skill --codex, or --all to install everything.

Step 3: Self-check with doctor, and tell “ok” apart from “usable”

Run npx ffmpeg-skill doctor. It checks ffmpeg, ffprobe, and the components each tool needs. There’s one easy-to-misread point here: doctor’s overall ok status and a single tool’s usable status are not the same thing.

For example, an ffmpeg installed via Homebrew may lack the subtitles filter or libvidstab. A single missing filter flips the overall ok to false, but most tools still run fine. To find out whether a specific tool actually works, run npx ffmpeg-skill doctor --json and look at the tools field in the output. If the subtitle transcription engine isn’t installed, doctor marks it as missing optional, which only affects caption.py --transcribe.

ai-video-editing-local-footage-model-instructions-en-image-2

If you want the agent to understand each tool’s parameters first, have it run npx ffmpeg-skill contract --json. That contract lists each tool’s inputs, outputs, required FFmpeg components, and validation method.

Step 4: Connect the agent to a model API

The editing tools don’t need a key, but agents like Claude Code and Codex need to call a Large Language Model themselves. Taking Claude Code as an example, follow the APIYI docs’ onboarding method and set the environment variables ANTHROPIC_AUTH_TOKEN=sk-你的Key and ANTHROPIC_BASE_URL=https://api.apiyi.com. Note that Claude Code takes the root domain here — don’t add /v1. On first use, writing {"hasCompletedOnboarding": true} into ~/.claude.json skips the onboarding flow.

If you’re using a client that supports the OpenAI-compatible interface, or a script you wrote yourself, set base_url to https://api.apiyi.com/v1. The only difference between the two forms is the protocol: the Anthropic native protocol uses the root domain, while the OpenAI-compatible protocol includes /v1.

🚀 Quick start: the editing scripts run locally, and model calls go through the gateway. After registering at APIYI apiyi.com you get free trial credits, and a single key lets you switch between Claude, GPT, and Gemini. Run the whole pipeline on a small piece of footage first, then decide which model tier to use long-term.


Use AI to edit a 60-second vertical short

The official site and README include a complete example. You tell the agent: Take interview.mp4, keep 0:45–1:20 and 5:00–5:25, and make it a 60-second Reel. The two segments are 35 seconds and 25 seconds respectively, so together they add up to exactly 60 seconds. You can describe the same request in Chinese, too; what the agent needs to do is break that sentence down into tool calls.

Following the example, the agent will execute the following in order:

  1. probe.py: first measures the actual duration, resolution, frame rate, and audio track of interview.mp4. The model reads this output to confirm the time points are within range.
  2. cut.py --segments 0:45-1:20,5:00-5:25 --accurate: precisely cuts out the two segments and joins them.
  3. fit.py --aspect 9:16 --fit crop: crops the landscape interview into a 9:16 vertical frame.
  4. export.py --preset reels: exports using the Reels preset.
  5. check.py --platform reels: checks the final video against platform requirements.
  6. look.py: generates a visual result for a human to confirm the frames.

The final report in the example is: final.mp4: 60.00 s, 1080×1920, 30 fps, AAC stereo. This line is put together by the model from the check results; it falls under “things the file can measure.” Whether the face is still centered in the frame after cropping is something you need to check yourself by looking at the output from look.py.

When you need multi-platform distribution, render.py --template tiktok fills in the parameters according to the template. Built-in templates include tiktok, reels, shorts, youtube-shorts, youtube, x, linkedin, facebook, podcast, and audiogram. --template all outputs 7 video destinations at once and writes a <name>_pack.md summary. When you’re not sure what the agent will do, add --dry-run first to see only the plan, then render for real after confirming.

If you need captions, run pip install faster-whisper before running caption.py --transcribe. The first run downloads a speech model; after that, the audio never leaves your local machine. For spoken content that contains client information, this is more reassuring than cloud transcription.

How to use the AI editing review page

Once the agent finishes its run, the hardest part is usually “telling it what needs to change.” ffmpeg-skill provides a local review page: run npx ffmpeg-skill review project.json --result run.json, and it generates a local HTML file.

The page contains the assets, each operation step along with its check results, the final cut displayed inside a phone frame with platform safe zones, and the timeline. You can write revision notes by number — for example, “Clip 3’s subtitle is pushed outside the safe zone,” “Segment 2 left an extra half-second at the start” — then copy them into instructions for the agent with a single click. The page supports English, Japanese, Korean, and Chinese, and the official site states that nothing is uploaded.

That way, the feedback the model receives is structured text rather than vague descriptions like “it feels a bit off.” It’ll need fewer rounds of adjusting parameters, re-running, and re-checking — and the costs discussed in the next section become more controllable.


Model and cost choices for AI editing

A lot of people assume that since the video is processed locally, the model can’t cost much. In reality, an agent repeatedly reads probe output, reads tool contracts, tweaks parameters, runs checks, and reads check reports — and every round drags the previous context along with it. The editing itself doesn’t burn tokens; the back-and-forth reasoning does.

The prices below come from the APIYI model price master table (data updated 2026-11-22), in USD per 1M tokens.

Model Good fit for which editing stage Input Output Cache read Available platforms
Claude Opus 5.5 Breaking down complex requirements, multi-camera work, and diagnosing things like audio-video drift that need multiple rounds of reasoning $4 $20 $0.2 APIYI, official API
Claude Sonnet 5.5 The everyday workhorse: standard cuts, vertical reframing, multi-platform export $2 $10 $0.1 APIYI, official API
Claude Haiku 5.5 Batch template runs, reading check reports, small fixes based on review feedback $0.1 $0.5 $0.01 (up to the 100K input tier) APIYI, official API

ai-video-editing-local-footage-model-instructions-en-image-3

Price data in the chart comes from the APIYI model price master table.

A few practical cost-control tips:

  • Cache reads are far cheaper than input: fixed content like tool contracts and project notes shows up over and over, and once it hits the cache the per-token price drops noticeably.
  • MCP lists only 12 core tools by default (per the README and the official site): the full set of 42 only appears when you set FFMPEG_SKILL_MCP_FULL=1. Don’t turn on the full set unless you need it — otherwise the tool descriptions crowd out your context.
  • Switch models by stage: for a new type of video, use Sonnet first to figure out the workflow, then hand similar batch jobs to Haiku.
  • Dry-run before rendering: when the plan is wrong, editing text once is cheaper than re-running and re-reading the report.

When you connect Claude Code through APIYI at apiyi.com, the ClaudeCode group gets a default 5% discount, and that stacks with top-up bonuses. APIYI’s official docs also include a candid warning: long-context tasks like writing code or deep agent exploration burn through usage-based billing quickly, so a $5 top-up might not even cover one deep research run; if your usage is heavy and you can connect directly to the official site, a subscription works out cheaper. Also worth knowing: APIYI is a gateway, not a model host — upstream providers’ content policies, rate limits, and outages pass straight through to you.


Common Causes of AI Editing Failures

Symptom Common Cause What to Do
doctor shows ok as false A filter is missing, e.g. subtitles or libvidstab Check the tools field in doctor --json to confirm the tool you need is usable
Subtitle transcription reports a missing engine No local speech engine installed pip install faster-whisper and wait for it to download the model on first run
The agent wants a custom filter but gets rejected The tool doesn’t accept raw ffmpeg parameters or filter_complex Use the corresponding tool’s parameters instead, or split it into multiple tool steps
check passes but the final cut looks bad Aesthetics fall under unverified, so file-level checks can’t catch it Look at look.py and the review page, then write feedback by item number
Encoding is too slow Hardware encoding isn’t enabled On Apple Silicon add --hw or set FFMPEG_SKILL_HW=1; other GPU encoders aren’t called
Claude Code can’t connect to the model An extra /v1 was added to BASE_URL, or the Key is wrong For the Anthropic protocol, use the root domain and double-check the environment variables

Frequently Asked Questions (FAQ)

Q1: What exactly does “footage stays on your machine” mean for AI editing?

It means your video and audio files are processed only by FFmpeg running on your own computer — ffmpeg-skill doesn’t call any cloud service. What gets sent to the model is text: your requirements, the probe output, and inspection reports. If you use local faster-whisper for subtitle transcription, the audio never leaves your machine either.

Q2: The official site says “No API keys” — so why do I still need to configure a model key?

“No API key required” refers to the editing tool itself. The agents that drive it — Claude Code, Codex, and the like — need to call a Large Language Model to understand your requirements and plan the steps. You can use each vendor’s official key, or use one key from APIYI apiyi.com to call models from multiple vendors: for Claude Code, enter the root domain; for OpenAI-compatible clients, enter the address with `/v1`.

Q3: How does ffmpeg-skill relate to Remotion?

They complement each other. ffmpeg-skill edits existing footage — interviews, talking-head videos, clips shot on a phone. Remotion renders video from React components. If you have footage to cut, pick the former; if you want to generate animation-style video from code, pick the latter.

Q4: Can it produce a finished video fully automatically, with no human review?

I wouldn’t count on that. What the tool can verify is whether the file opens, its duration, codec, dimensions, frame rate, and whether it honors its own commitments. How it looks and sounds is explicitly marked as unverified. The safer rhythm is: the agent produces a first cut, a human watches it on the review page and writes a few notes, then the agent revises.

Q5: Which model tier should I use for a typical edit?

For routine cuts plus vertical-format adaptation, Sonnet 5.5 is enough. For multi-camera sync and drift troubleshooting — things that need several rounds of reasoning — you can temporarily switch to Opus 5.5. For batch-applying templates to similar videos, hand it to Haiku 5.5. On APIYI apiyi.com you just change the model name to switch, which makes it easy to compare actual consumption stage by stage.

Q6: Does it work on Windows and Linux? What about hardware acceleration?

As long as you meet FFmpeg 6.1+ and Python 3.10+, it works. The installer needs Node 16+. On the hardware encoding side, the official site only states that Apple Silicon can use VideoToolbox (`–hw` or `FFMPEG_SKILL_HW=1`); other GPU encoders aren’t invoked, and other platforms fall back to software encoding.

Q7: Do the demos on the official site represent what my footage will look like?

Be careful about that assumption. The official demo uses 12 clips total: 9 generated by Google Veo and 3 shot on a phone, and all before/after comparisons are rebuilt by demos/build.py. Real interviews have more complex lighting, audio, and framing, so it’s best to try a short, non-sensitive clip first.


Reliable AI Editing Workflow: Key Takeaways

  • Clear division of labor: FFmpeg runs on your machine and handles the files; the model only reads text, plans the steps, and reviews the check reports.
  • One command to install: npx ffmpeg-skill setup installs the skill and runs doctor automatically.
  • ok doesn’t mean usable: a missing filter doesn’t mean the whole toolkit is broken — check the tools field.
  • Six steps for a 60-second vertical video: probe, cut, fit, export, check, look, in that order.
  • A review page saves the back-and-forth: leave numbered comments in a local HTML page, copy them to the agent, and it edits directly.
  • Cost lives in inference rounds: switch between Opus, Sonnet, and Haiku depending on the stage, and call all three through APIYI’s unified endpoint.
  • Looks are a human call: any unverified item needs a human to look at the contact sheet before delivery.

Summary

A reliable AI editing workflow comes down to three things:

  1. Footage never leaves your machine: ffmpeg-skill lets the agent call the local FFmpeg tools (42 of them, per the README), so client work and unreleased material never has to be uploaded.
  2. The model handles the thinking: understanding the request, breaking down the steps, reading probe and check output, and adjusting parameters based on review comments — all of that is the model’s job, but it can’t bypass the tool contract.
  3. A human handles the final look: file-level checks belong to the tools; whether it looks good or sounds good is your call on the review page.

Start with a minute or two of non-sensitive footage and run the whole loop once — install, doctor, the 60-second vertical video, and the review page — before pointing it at a real project. On the model side, you can start with the free credits on APIYI at apiyi.com, compare how much each of the three model tiers costs in your own workflow, and then decide between pay-as-you-go and a direct subscription.


📚 References

  1. ffmpeg-skill GitHub repository: Source code, README, and release notes

    • Link: github.com/kajisho5/ffmpeg-skill
    • Details: Tool list, MCP configuration, and v4.7.0 update notes
  2. ffmpeg-skill official website: Workflows, installation methods, and FAQ

    • Link: kajisho5.github.io/ffmpeg-skill
    • Details: Environment requirements, doctor instructions, review page, and limitation terms
  3. APIYI Model Price List: Billing for Claude models across tiers

    • Link: docs.apiyi.com/models
    • Details: Input, output, and cache-read unit prices
  4. APIYI Claude Code Integration Docs: Environment variables and group instructions

    • Link: docs.apiyi.com/scenarios/programming/claude-code
    • Details: How to write BASE_URL, ClaudeCode group discounts, and usage reminders

Author: APIYI Technical Team
Technical contact: Feel free to reach us through the APIYI official website homepage. For more integration resources, visit the docs.apiyi.com documentation center.

Leave a Comment