Guide · AI + content
How to edit videos with Claude Code and Whisper
Editing video is now a conversation. With Claude Code and one skill you can clean the pauses and repeated takes out of a raw recording, build a YouTube video with b-roll and lower thirds, make motion graphics from scratch and turn a long video into vertical clips. I took a 14-minute video from my YouTube channel and got 9 clips ready to post, without opening an editor. Here is the whole process, for short and long videos, with the skill I use as a free download.
01How it works
Editing a talking video is mostly deciding what stays, what goes and what shows up on screen. And that decision is about text: which sentence opens, where the argument closes, which take was better, where the pauses are, on which word the screenshot of the site you mention comes in. That's why AI can do the job without "watching" the video:
- Whisper transcribes word by word, with the exact second each word starts and ends. It's OpenAI's free speech-to-text model, and it runs on your own computer.
- Claude Code reads the transcript and makes the editor's calls: which parts stay, which take to drop, what the title says, where a b-roll or a motion goes, what Whisper misheard.
- ffmpeg does the work: cuts at the chosen seconds, removes the pauses, builds the format (vertical, horizontal, square), draws the title and captions, places the layers and mixes voice, music and sound effects.
- Chrome draws the motion: an animation is an HTML page that the skill renders frame by frame into a video, with or without a transparent background.
- Claude checks the result by looking at frames of the finished video before handing it to you.
The video-editing skill bundles all of it: the scripts do the mechanical part and SKILL.md teaches the agent the process and the editing criteria. It covers four kinds of work, which you can combine:
| Job | You bring | You get |
|---|---|---|
| Clips | A long video (YouTube, podcast, live) | Several 30 to 80 second videos, each with a hook and a complete line of reasoning |
| Short video from scratch | The raw recording, pauses and repeated takes included | A finished Reel, TikTok or Short: dry cut, captions, title, b-roll, music |
| Long video | The raw recording of a YouTube video | A clean 16:9 video with punch-ins, screenshots, b-roll, lower thirds and chapters |
| Motion | A reference animation and your brand | An animation as a layer in a video or as a video of its own (intro, logo sting, card) |
02What you need
- Claude Code (Claude Pro or Max plan) or Codex (ChatGPT Plus or Pro). If you don't have one yet, step 2 of the ad accounts guide covers the install.
- ffmpeg and Python 3. On a Mac with Homebrew:
brew install ffmpeg python. On Windows, use WSL (Ubuntu) and follow the Linux commands:sudo apt install ffmpeg python3 python3-venv. - Node.js and Google Chrome (for motion):
brew install node. Without Chrome, the skill downloads Chromium on its own. - yt-dlp (optional), to download videos from YouTube, Instagram and TikTok:
brew install yt-dlp. - About 2 GB free for the Whisper model, which downloads itself on the first transcription.
mlx-whisper, which runs on the chip's GPU: a 14-minute video transcribes in a minute or two. On other computers it uses faster-whisper, which works the same way, just slower.03Install the skill
Download the .zip and, from the folder it was saved to, run:
cd ~/Downloads
mkdir -p ~/.claude/skills ~/.agents/skills
unzip -o video-editing.zip -d ~/.claude/skills
unzip -o video-editing.zip -d ~/.agents/skills
bash ~/.claude/skills/video-editing/scripts/setup.sh
setup.sh checks ffmpeg and creates a Python environment in ~/.video-editing with Whisper and Pillow (which draws the title and captions). With Node installed, it also sets up the motion renderer. You only do this once. If the agent was already open, restart it so it sees the skill.
Then create one folder per video. Media is heavy: if the folder is a Git repository, keep video and audio out of it.
mkdir -p ~/videos/2026-10-my-video/raw && cd ~/videos/2026-10-my-video
printf '*.mp4\n*.mov\n*.wav\n*.m4a\n' > .gitignore
04Start with a reference
What changes the quality of an edit the most isn't the render, it's the agent knowing where you want to end up. "Edit this video" leaves it guessing the style. A reference video shows the caption size, the pace of the cuts, how often b-roll shows up and what kind of motion is used, and all of that can be measured.
That's why the skill starts every job with a brief, in a single message, before touching any file:
- What we're making: clips, a short video, a long video, a motion or a mix.
- Where it will be posted, which sets the format: 9:16 for Reels, TikTok and Shorts; 16:9 for YouTube; 4:5 or 1:1 for feed and ads.
- The source (file or link), the language and anything that must stay or go.
- The goal and the call to action: what the viewer should feel or do at the end.
- 1 to 3 references, and what to take from each ("the captions of this one, the pace of that one"). For motion, the reference animation and your brand: logo, colors in hex and font.
- What you already have: music, b-roll, screenshots, sound effects.
No reference? The agent doesn't skip the step: it offers three ready-made styles (podcast clip, clean talking head, YouTube explainer) or asks for a creator you like so you can study one of their videos together.
With a reference in hand, it runs reference.py: downloads the video, builds a sheet of 12 frames, grabs a still from each of the first 5 seconds (the hook) and one right after every cut, and measures the rest. Run on one of my own 68-second clips:
{
"size": "1080x1920", "format": "9:16", "duration": 68.03,
"cuts": 0, "average_shot_seconds": 68.03,
"pauses_over_0.4s": 0, "loudness_lufs": -14.9
}
Zero pauses over 0.4 s means a dry cut. Zero detected cuts means the cuts stay on the same framing, with no punch-in or b-roll. With the frames open, it writes down in brief.md the caption position and size, where the title sits, the pace and what shows up on screen, and turns that into project.json numbers. It also tells you what it can't copy, like karaoke captions that light up word by word.
Before rendering, it shows you the plan (segments, titles, cuts, layers and music) and waits for your OK. With several videos, one pilot comes first, and the rest only after you approve the style.
Use the video-editing skill. I want a Reel from raw/take.mov.
References: https://www.instagram.com/reel/XXXX (I want these captions)
and https://www.tiktok.com/@creator/video/YYYY (I want this pace).
05Clips from a long video
This is the highest-leverage use: a long video you already recorded becomes a week of Reels. Open Claude Code in the video's folder and ask:
Use the video-editing skill. Download https://www.youtube.com/watch?v=YOUR_VIDEO
and make 30 to 80 second clips of the moments where I say something important
and finish a full line of reasoning. Layout: horizontal video in the middle,
black above and below, a catchy title above and captions below.
Here's what happens, in order:
- Download with yt-dlp into
raw/source.mp4. If YouTube answers with a 403 error, the agent uses your browser's cookies (--cookies-from-browser chrome), which fixes it. - Transcription of the whole video, once, into
data/words.json(every word with start, end and confidence) anddata/transcript.txt(readable, with timestamps). - Picking the moments. Claude reads the transcript end to end and returns a list: time range, title and why that part works on its own. You approve, drop or ask for others.
- Framing. It grabs a frame, looks at where your face is and adjusts the crop to center it.
- Dry cut + layout (
video.py cut): removes every pause longer than 0.4 s, builds the video in the format and normalizes the audio to −14 LUFS, the loudness Instagram, TikTok and YouTube expect. - Caption proofreading and render (
video.py render): title and captions burned into the video, delivered toout/with a contact sheet for checking.
A good clip, and this is what SKILL.md teaches the agent:
- Opens on a hook that works without context: a claim, a number, a question. It never starts on "and", "so", "because".
- Closes a full argument: claim, explanation or example, conclusion. If the payoff comes 20 seconds later, the clip stretches to it or gets dropped.
- Starts and ends on a word boundary, never mid-syllable.
words.jsongives the exact time. - Has a title that is the hook in writing: concrete, in the video's language, up to two lines, and the clip delivers what it promises.
My 14-minute video gave 9 clips, from 37 to 75 seconds. Together they lost 35 seconds of pauses alone. A few titles: "There are only 2 ways your brain builds beliefs", "Trauma is just a bad belief", "Your life is your fault. That's good news." Rendering takes under a minute per clip.
Every decision lives in one file, project.json. To change a title or extend a clip, you ask in plain English and the agent edits it there and renders again:
{
"source": "raw/source.mp4",
"format": "9:16",
"layout": "letterbox",
"crop_x": 136,
"clips": [
{"id": "05-trust-yourself", "start": 560.40, "end": 633.20,
"title": "Why you don't trust yourself (and how to fix it)",
"why": "Problem, solution and result in the same stretch."}
]
}
06A short video from scratch
You recorded yourself talking to the camera, with pauses, "ums", repeated sentences and bad takes, and you want the finished Reel:
Use the video-editing skill on raw/take.mov. Dry cut: remove pauses, filler
words and repeated takes (keep the last complete one). Punch-in on every cut,
captions, the title "I raised my prices and lost zero clients" for the first
3 seconds, the screenshot broll/invoice.png when I mention the price, and
raw/music.m4a quietly underneath.
- Repeated takes: the agent reads the transcript looking for the same sentence said twice, sentences abandoned halfway and "wait, let me say that again". The last complete take stays, unless an earlier one is clearly better.
- Filler words: Whisper usually cleans "um" and "uh" on its own. The ones that show up are cut from the whole video. Only list words that never carry meaning.
- Pauses: removed the same way as in clips, by volume.
- Punch-in: on every cut, the framing alternates between normal and 12% tighter. It's the classic trick that keeps a jump cut from looking like a jump.
- Layers: when you mention something concrete (an app, a number, a site), a screenshot, b-roll or motion comes in on that word. A sound effect can land with it.
- Music loops under the voice and dips on its own while you talk (ducking). Everything comes out at −14 LUFS.
{
"source": "raw/take.mov",
"format": "9:16",
"layout": "fill",
"punch_in": 1.12,
"title_seconds": 3,
"fillers": ["um", "uh"],
"music": "raw/music.m4a",
"music_db": -22,
"clips": [
{"id": "reel-pricing", "start": 1.2, "end": 94.0,
"title": "I raised my prices and lost zero clients",
"remove": [[12.4, 18.9], [40.0, 43.2]],
"overlays": [{"file": "broll/invoice.png", "at": 22.5, "dur": 3, "w": 860, "y": 380}],
"sounds": [{"file": "sfx/pop.wav", "at": 22.5, "db": -8}]}
]
}
Times are always those of the original recording, the same as the transcript. If you ask for a more aggressive pause cut, the screenshot still lands on the same word. Recorded one long take covering several topics? Each topic becomes an item in clips, and you get one video per item.
07A long video for YouTube
The same process works for a 10 or 20-minute video. The format and the kind of layers change:
Use the video-editing skill on raw/recording.mov. It's a YouTube video, 16:9.
Dry cut, no repeated takes, light punch-in, no burned-in captions.
A lower third for each new rule, a screenshot when I mention a site
and chapters for the description. Reference: https://youtu.be/XXXX
- 16:9 format, the whole recording as one item, with bad takes and tangents in
remove. - No burned-in captions, unless your references use them: YouTube makes its own subtitles.
- Something changes on screen every 10 to 20 seconds: a screenshot when you mention something concrete, a b-roll, a lower third when a new part starts, a full-frame motion for a list or a number.
- Pilot first: the agent renders 1 or 2 minutes for you to approve the style before the full video. Cutting and rendering take one to two times the video's length on a recent laptop.
- Chapters come from the transcript already on the edited timeline, ready to paste into the description:
00:00 Intro,02:14 Rule 1...
08Motion
Motion here is an animated HTML page that the skill turns into a video. Claude is very good at writing HTML and CSS, so it designs the animation, then motion.mjs opens the page in a windowless Chrome, moves every animation to the exact time of each frame and records the video. It isn't real time: a heavy frame never stutters or skips.
The recipe for a good-looking result is reference + brand. The reference can be a video, a screenshot or a page from an animation library like Prompt Motion. The brand is your logo, colors in hex and font. Without them, the agent asks before inventing anything.
Use the video-editing skill. Make an animated lower third that says "Rule 2:
keep small promises", in the style of this reference: https://...
Brand: logo at brand/logo.svg, colors #111111 and #FFFFFF, font SF Pro.
It comes in when I say "rule 2" and stays for 3 seconds.
- It writes the animation in
motion/: one HTML file with CSS, sized in proportion to the screen, so the same file works in 9:16 and 16:9. - It renders a preview and looks at frames from the start, middle and end before using it.
- As a layer in a video, the motion goes into
project.jsonwith the second of the word it appears on. It's rendered with a transparent background, on top of the video and under the captions (which can hide while it's on screen). - As a video of its own (intro, logo sting, number card, animated quote), it goes straight to
out/, with a background.
.card { animation: enter .45s cubic-bezier(.2,.9,.3,1.2) both,
leave .35s ease-in 2.6s forwards; }
@keyframes enter { from { transform: translateX(-12vw); opacity: 0; } }
@keyframes leave { to { transform: translateY(4vh); opacity: 0; } }
JavaScript animation (GSAP, canvas, particles) works too: the page only has to say how to jump to any given second, and SKILL.md teaches the agent how.
09Format, title and captions
Four formats: 9:16 (1080×1920, Reels, TikTok and Shorts), 16:9 (1920×1080, YouTube), 4:5 (1080×1350) and 1:1 (1080×1080), for feed and ads. And two layouts:
- Fill: the video takes the whole screen, cropped around your face. The default for videos from scratch and for YouTube.
- Letterbox: the horizontal video in a band in the middle, title above and captions below. It's the standard on many podcast and self-improvement pages, and what I use for clips. I measured the positions on a reference Reel and locked them into the skill:
- Title: the system font (SF Pro on a Mac), semibold, white, split into two lines of similar width. If it doesn't fit, the font shrinks on its own. It can stay the whole video or only the first few seconds.
- Captions: 2 to 3 words at a time, white, no effects. They break on punctuation and pauses, so the end of one sentence never shares the screen with the start of the next.
- No second transcription: when the script removes the pauses, it recomputes every word's timing on the cut video. Cuts land exactly on the source's frames, so captions don't drift even with 50 cuts.
Size, position, outline and font (any .ttf) are fields in project.json, and that's where the numbers measured on your reference go. Like a change? Say "make it the default".
10Proofread the transcript
Whisper gets almost everything right, and the danger is exactly the mistake that sounds right. With an accent, "can't" becomes "can" and the sentence now says the opposite. SKILL.md tells the agent to read every caption for meaning, not only the low-confidence words, and to list everything it fixed by inference.
Fixes live in project.json as "wrong → right" pairs, so they apply to every later render:
"fix": [["Claude Coat", "Claude Code"], ["6 .30", "6:30"]]
- Names and brands come out phonetic. Pass the main ones to the transcription with
--prompt "Claude Code, Whisper, Shopify"and Whisper gets far fewer wrong. - Numbers break into pieces ("6.30" becomes "6" and ".30").
fixhandles it. - A stray word at the start: if a segment begins right after an "and" or "because", remove it from the captions or start the clip a little later.
11Check before posting
Every render writes, next to the video, a sheet with 6 frames spread across it (12 for videos over 2 minutes). The agent opens that image and checks that the title is whole, the face is centered, the captions don't cover anything important and the layers came in where planned. At the entrance of every screenshot or motion, it grabs that exact frame and looks. Then it compares the sheet with your reference's.
- Safe area: on 9:16, Instagram and TikTok cover roughly the top 220 px, the bottom 380 px and a column of buttons on the right. On 16:9, YouTube's progress bar covers about the bottom 10%. The skill's layout already stays clear of them.
- Versions: nothing is overwritten. Each round of notes becomes
-v2,-v3, and you compare. - Specific questions: on delivery, the agent asks 2 or 3 concrete things (is the title right? bigger captions? faster?) instead of "what do you think?".
- Posting is up to you. The skill delivers the files to
out/and stops there. I AirDrop them to my phone and post from the app.
12What to ask next
With the skill installed, a few requests that work well:
Give me 5 more clips from this same video, only from moments we haven't used yet.
Redo clip 03 starting one sentence earlier and with a shorter title.
Add a screenshot of every site I mention in the video, coming in on the exact word.
Make a 3-second logo sting to open the videos on my channel.
Turn this YouTube video into 9:16 and 4:5 versions for ads.
Transcribe this podcast and tell me which parts are most likely to go viral, and why.
13FAQ
Can I edit videos with AI for free?
Yes. Whisper, ffmpeg and the video-editing skill are free and run on your computer, with no watermark and no minute limits. The only cost is the agent subscription: Claude Pro or Max (Claude Code) or ChatGPT Plus or Pro (Codex).
Can Claude edit videos?
Yes, without watching the whole video. Whisper transcribes word by word with the exact timing of each word, Claude Code reads the transcript and makes the editor's decisions (segments, takes, title, where each layer goes), ffmpeg cuts and assembles, and Claude checks frames of the finished video before handing it over.
Does it work for long videos, or only for clips?
Both. The same skill edits short vertical videos (Reels, TikTok, Shorts), long horizontal videos for YouTube, 4:5 and 1:1 versions for feed and ads, and turns long videos into clips.
Can Claude make motion graphics?
Yes. Claude writes the animation in HTML and CSS and the skill renders it frame by frame in Chrome, with or without a transparent background. A motion goes into a video as a layer (lower third, card, animated title) or comes out as a video of its own (intro, logo sting). With a reference and your brand colors, the result gets much better.
Why does the skill ask for reference videos?
Because "edit this video" leaves the style to guesswork. With a reference, the agent measures the format, the caption position and size, the pace of the cuts and how often layers show up, and copies that as numbers. If you don't have one, it offers three ready-made styles.
Does it work with YouTube videos?
Yes. The skill downloads the video with yt-dlp. If YouTube returns a 403 error, the agent uses your browser cookies (--cookies-from-browser chrome). The same goes for downloading references from Instagram and TikTok.
Does it work in languages other than English?
Yes. Whisper transcribes dozens of languages, Portuguese included. For names and brands, pass the main ones with --prompt and Whisper gets them wrong far less often.
Do I need a Mac?
No. On Apple silicon Macs (M1 and later) the skill uses mlx-whisper, which transcribes a 14-minute video in one or two minutes. On Windows (through WSL) and Linux it uses faster-whisper, which works the same, just slower.
What is the ideal clip length for Reels and TikTok?
30 to 80 seconds. A clip opens on a hook that works without context and closes a full line of reasoning. Shorter rarely completes an idea; longer loses people halfway.
If you get stuck on any step, reach me on Instagram or X. The videos that come out of this process go to my Instagram, @moiseszip.