---
title: "How to Edit Your First Video with Claude Code"
author: "Ecem Karaman"
source: "https://aiwithecem.com/guides/edit-videos-with-claude-code"
published: 2026-11-21
tools: ["Claude"]
topics: ["Creative","Workflows"]
---

# How to Edit Your First Video with Claude Code

This guide takes one 60 to 90-second talking-head recording and turns it into a vertical Reel: tight cuts, word-synced captions, one animated title, clean audio. Claude runs every tool. You make three decisions along the way: approve the cut list, approve the preview, approve the export.

Not sure which tools to use? [Part 1](/guides/video-editing-claude-code-tools) maps them. This guide uses the core stack: FFmpeg, Auto-Editor, WhisperX and one animation engine.

**Commands checked against the FFmpeg, Auto-Editor, WhisperX, HyperFrames and Remotion docs on November 21, 2026.**

> **In this guide**
>
> 1. [Set up the project](#set-up-the-project)
> 2. [The workflow at a glance](#the-workflow-at-a-glance)
> 3. [Edit the video](#edit-the-video)
> 4. [Add a title: HyperFrames or Remotion](#add-a-title-hyperframes-or-remotion)
> 5. [When something goes wrong](#when-something-goes-wrong)
> 6. [Final export checklist](#final-export-checklist)
> 7. [Reuse it for the next video](#reuse-it-for-the-next-video)

## Set up the project

One folder per video. The raw recording is never edited; everything Claude makes goes in `work/` or `out/`.

```text
my-reel/
├── raw/         your original recording
├── work/        transcripts, cut lists, intermediate files
├── assets/      logo, fonts, music
├── out/         previews and the final MP4
└── CLAUDE.md    the rules for this project
```

Install the tools, in a terminal:

```bash
brew install ffmpeg auto-editor
cd my-reel
python3 -m venv .venv
source .venv/bin/activate
pip install whisperx
```

**Why the virtual environment:** check `which python3` first. If it points into Anaconda or another shared Python, `pip install whisperx` pulls PyTorch and dozens of packages into it and can break other projects. A `.venv` keeps all of it inside this folder, and deleting the folder undoes it.

Put these rules in `CLAUDE.md` so you don't repeat them:

```markdown
# Video project rules
- Never modify files in raw/. Work on copies in work/.
- Show me the cut list before cutting anything.
- Previews: 540x960. Finals: 1080x1920, H.264, AAC 48 kHz, 30 fps.
- Keep text out of the top 270 px, bottom 670 px and 65 px from each side.
- Ask before installing anything or calling a paid API.
```

Then open Claude Code in the folder (`claude`) and check the setup:

```text
Check that ffmpeg, ffprobe, auto-editor and whisperx run from this folder
(with .venv active). Report each version. Don't install anything.
```

## The workflow at a glance

```animation-video-edit-1
```

## Edit the video

### Step 1: Inspect the footage

Claude needs the facts before it cuts: resolution, frame rate, codec, audio.

```bash
ffprobe -v error -show_entries format=duration:stream=codec_type,codec_name,width,height,r_frame_rate,avg_frame_rate,sample_rate -of compact raw/take.mp4
```

Phone footage is often HEVC and variable frame rate (`r_frame_rate` and `avg_frame_rate` differ). Both cause trouble later, which is why the final export re-encodes to H.264 at a fixed 30 fps.

### Step 2: Transcribe with word timings

```bash
whisperx raw/take.mp4 --model small --language en --device cpu --compute_type int8 --output_format json --output_dir work
```

The JSON has a start and end time for every word. That's what lets Claude cut between words instead of through them. Tell Claude any names, brands or jargon so it can correct them in the transcript before anything else uses it.

### Step 3: Find what to cut

```text
Read work/take.json. List every filler word, every pause over 0.6 s and every
sentence I said twice, with timestamps. Recommend which take of each repeated
sentence to keep and why. Don't cut anything yet.
```

### Step 4: Approve the cut list

```text
Write the segments to keep as work/cuts.json: start, end and the words in each.
Keep 0.1 s of padding at each edge.
```

Read it against the transcript. This is your first checkpoint: a wrong cut here is cheap to fix and expensive to find later. For silence alone, `auto-editor raw/take.mp4 --margin 0.2sec --preview` prints how much it would cut without touching the file.

### Step 5: Make the rough cut

```text
Cut raw/take.mp4 to the segments in work/cuts.json with FFmpeg. Add a 30 ms
audio fade at each cut so there are no clicks. Save work/rough.mp4.
```

Only removing silence? `auto-editor raw/take.mp4 --margin 0.2sec -o work/rough.mp4` does it in one command.

### Step 6: Transcribe the rough cut again

Captions have to match the video they sit on. Every cut shifts the timing of everything after it, so transcribe `work/rough.mp4` (same command as Step 2) and caption from that, not from the raw take.

### Step 7: Frame it and fix the audio

```text
Find where my face is in the frame, then crop work/rough.mp4 to 9:16 around it
and scale to 1080x1920. Normalize the audio to about -14 LUFS with loudnorm.
Save work/vertical.mp4.
```

A plain center crop works when you're centered in the shot and cuts you off when you're not, which is why the prompt asks Claude to look first:

```bash
ffmpeg -i work/rough.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920" work/center.mp4
```

### Step 8: Captions and graphics

Homebrew's standard `ffmpeg` doesn't include the `subtitles` or `drawtext` filters, so it can't burn in text. Do captions in your animation engine instead, where they're styled and editable:

```text
Using the word timings in work/rough.json, add captions: two to four words at a
time, the current word highlighted, centered at about 60% of the frame height,
over work/vertical.mp4. Render to out/reel.mp4.
```

Keep graphics restrained: one title, one or two key terms. The [next section](#add-a-title-hyperframes-or-remotion) shows the title in both engines. (Prefer plain burned-in subtitles? `brew install ffmpeg-full` has the filters; it isn't added to your PATH, so call it by its full path.)

### Step 9: Render a cheap preview

```bash
ffmpeg -i out/reel.mp4 -vf scale=540:960 -c:v libx264 -preset veryfast -crf 30 -c:a aac -b:a 96k out/preview.mp4
```

Watch it on your phone, with sound. This is your second checkpoint. Note problems with timestamps ("0:12, the caption covers my hand") instead of general feelings.

### Step 10: Check and export

```text
Make a contact sheet of out/reel.mp4 (one frame every 5 seconds), check it for text
in the unsafe zones or clipped captions, measure loudness and true peak, and
check for black or frozen frames. Then export the final: H.264, yuv420p,
30 fps, AAC 48 kHz, +faststart, to out/final.mp4.
```

The contact sheet is one FFmpeg command: `ffmpeg -i out/reel.mp4 -vf "fps=1/5,scale=216:-1,tile=6x3" -frames:v 1 work/sheet.png`. Third checkpoint: you watch `out/final.mp4` once before it goes anywhere.

## Add a title: HyperFrames or Remotion

Pick one. Both render code into video; Part 1 compares them. Give either the same brief:

```text
Make a 3-second animated title over the first 3 seconds of work/vertical.mp4:
"[your title]", [font], [color]. It slides up, holds, fades out. Keep it inside
the safe zones in CLAUDE.md. Put the footage inside the composition so the
render includes it. Render a draft for me to check.
```

**HyperFrames** (plugin installed as in Part 1, Node.js 22+): start the brief with `/hyperframes:hyperframes`. Claude writes an HTML project in your folder. Review and render, in a terminal:

```bash
npx hyperframes preview
npx hyperframes render --quality draft --output out/title-draft.mp4
```

**Remotion:** create the project, then give Claude the brief with `/remotion-create`:

```bash
npx create-video@latest --yes --blank --skills title
cd title
npx remotion studio
npx remotion render <composition-id> out/title.mp4
```

With `--yes`, `create-video` refuses to run inside an existing Git repository, so create it outside one.

| Look at | HyperFrames | Remotion |
| ------- | ----------- | -------- |
| Setup | A plugin, no project dependencies | A React project with its own `node_modules` |
| What you edit | One HTML file | React components |
| Change one word | Edit the text in the HTML or the browser editor | Edit the component or its props |
| Reuse next time | Copy the HTML | Reuse the component with new props |

## When something goes wrong

| Problem | Usual cause | Fix |
| ------- | ----------- | --- |
| Wrong names or words in captions | The model guessed jargon | Give Claude the correct terms; fix the transcript JSON before captioning |
| Captions drift late | Captioned from the raw take | Transcribe the rough cut (Step 6) |
| Cuts feel abrupt | Too little padding or a cut mid-breath | Add 0.1 to 0.2 s padding; ask for cuts at word boundaries |
| Clicks at cuts | No audio fade | 30 ms fades at every cut |
| Audio too quiet or clipping | Not normalized | `loudnorm` to about -14 LUFS, true peak at -1.5 dBTP |
| `Unknown filter 'subtitles'` | Homebrew's standard FFmpeg | Captions in your animation engine, or `ffmpeg-full` |
| Odd sync or stutter | Variable frame rate or HEVC source | Re-encode to H.264 at 30 fps first |
| Head cut off after cropping | Blind center crop | Have Claude find the face first (Step 7) |
| Renders take forever | Rendering finals while iterating | Draft quality and 540x960 previews until the last pass |
| Install errors, broken packages | Shared Python environment | A fresh `.venv` per project |
| Text hidden by Instagram's buttons | Too close to the edges | Safe margins in `CLAUDE.md`; check in Instagram's preview before posting |

Keep text inside those margins, then check the post in Instagram's own preview before you publish.

## Final export checklist

- [ ] 1080 × 1920, H.264, yuv420p, 30 fps, AAC 48 kHz, `+faststart`
- [ ] Captions match the audio from the first word to the last
- [ ] No text in the top 270 px, bottom 670 px or 65 px from the sides
- [ ] Loudness about -14 LUFS, true peak no higher than -1.5 dBTP
- [ ] No black or frozen frames, no clicks at cuts
- [ ] Watched once on a phone, with sound

## Reuse it for the next video

Keep `CLAUDE.md`, `work/cuts.json` and your prompts. For the next recording, copy the folder, drop the new take in `raw/` and run the same steps. Most of the setup is already done, and your rules come with it.

**Go deeper:** [FFmpeg filters](https://ffmpeg.org/ffmpeg-filters.html) · [Auto-Editor docs](https://auto-editor.com/) · [WhisperX](https://github.com/m-bain/whisperX) · [HyperFrames rendering](https://hyperframes.heygen.com/guides/rendering) · [Remotion CLI](https://www.remotion.dev/docs/cli)
