# Cut silences from a talking video

> Tested by AI Setups That Work. Small business · Intermediate · Content. Updated 2026-11-05.
> Receipt: Ran on Claude in a Claude Code session, Nov 5, 2026: a 60-second made-up talking clip with 5 written-in pauses was checked with silencedetect, the 5 pauses were listed and approved, and one FFmpeg command cut 11.8 seconds with the video and sound streams matching to 0.001 s. Nothing was posted.

Canonical page: https://www.aisetupsthatwork.com/setups/cut-silences-from-a-talking-video-with-claude-code/

## What it does
Find the long pauses in a talking video, check each cut point before anything is cut, then remove the dead air with the sound kept in sync.

## Who it's for
Anyone who records talking videos, tutorials or updates and spends time trimming the gaps by hand. You need Claude Code and FFmpeg on a computer. Nothing else to install.

## Tools
- Claude Code (in the terminal or the desktop app)
- FFmpeg, the free video tool Claude Code runs for you
- A talking video you own or have the rights to edit
- Optional: auto-editor, a free tool that does the cut in one command

## Steps
1. Make a folder with a copy of your video in it. Cutting changes every time after the first cut, so cut pauses before you add captions.
2. Decide how long a pause has to be before it goes, and how much quiet to keep on each side of a cut. The prompt starts at 1 second and 0.2 seconds.
3. Open Claude Code in that folder and paste the prompt below. It lists every pause it found, with times, and waits.
4. Read the list. Keep a pause that is there on purpose, like a beat before a punchline, by telling it which one to leave in.
5. Say OK. It cuts the pauses and checks that the video and the sound are still the same length.
6. Listen to the first few cuts it points you to. If a word sounds clipped, ask for more quiet around the cuts and run it again. The new file is re-encoded, so a long video takes a few minutes to write.

## Copy-paste prompt
Adapt bracketed fields to your situation.
```text
You are cutting the pauses out of a talking video with FFmpeg in this folder. Do not post or upload anything. Never change or delete my original file.

Video: [FILE NAME]
Cut pauses longer than: [1] second
Keep this much quiet on each side of a cut: [0.2] seconds

1. Check FFmpeg is installed. Tell me the video's length, frame rate and whether it has sound.
2. Find the pauses with FFmpeg's silencedetect filter, starting at noise=-30dB. List each pause with its start, end and length, and the total time that would come out. If it finds none, or pauses inside sentences, adjust the noise level and tell me why. Wait for my OK.
3. Cut the pauses, keeping the quiet on each side so no word is clipped. Take the video and the sound from the same time ranges in one FFmpeg command so they stay in sync. Write a new MP4 (H.264, AAC, fast start).
4. Check the result: the length before and after, the video and sound stream lengths (they should match), and where each cut lands in the new file. Save a still frame just after the first 3 cuts and look at them.
5. Tell me which cuts to listen to, for example any that land close to a word.
```

## Guardrails
- What it touches: Chat input you provide (Claude Code (in the terminal or the desktop app); FFmpeg, the free video tool Claude Code runs for you).
- Needs your OK: Send, pay, publish, and account changes stay with you. Treat agent output as drafts first.
- Safety level: Drafts for you
- You see the cuts first: The prompt makes Claude Code list every pause with its times and stop. Nothing is cut until you say OK, and your original file is never changed.
- Jump cuts are normal: Taking out pauses makes the picture jump at each cut on a talking video. That is expected; the margin of quiet keeps the words whole.
- Claude Code may refuse its own command when it uses a shell variable. It rewrites it with full file paths; no action needed.

## Tips
- Cut pauses first, then make captions. Captions made before the cut no longer line up.
- If you want one command instead of a prompt, auto-editor your-video.mp4 --margin 0.2sec --no-open does the same cut. It re-encodes the whole file, and in the test it took about 6 times longer than the FFmpeg route.
- A noisy room raises the floor. If it finds no pauses, ask it to try a noise level closer to zero, like -25dB.

## Estimates (labeled, not measured)
- Time saved: Not stated in sources.
- Money saved: Not stated in sources.
- Tool cost: Claude Code comes with Claude's paid plans, from Pro at $20 a month or $17 a month billed yearly (Anthropic pricing page, Nov 5, 2026), or an Anthropic Console account. FFmpeg is free. auto-editor, the optional one-command tool, is free and public domain.

## Sources
Summaries use the public sources below, not independent verification.
- FFmpeg: https://ffmpeg.org/ffmpeg-filters.html#silencedetect (The silencedetect filter reports where the sound stays below a noise level for at least a set duration (options noise and duration; defaults checked with ffmpeg -h filter=silencedetect in FFmpeg 6.1.1).)
- auto-editor: https://github.com/WyattBlue/auto-editor (auto-editor cuts silent parts of a video automatically, can export a timeline for editing apps, and is released under the Unlicense (public domain).)
- Anthropic: https://code.claude.com/docs/en/overview (Claude Code docs: it reads files, edits files and runs commands. Most surfaces need a Claude subscription or Anthropic Console account.)

## Get the free starter pack
Five beginner copy-paste AI setups, free by email: https://www.aisetupsthatwork.com/starter-pack/?utm_source=ai-agent&utm_medium=markdown&utm_campaign=setup-cut-silences-from-a-talking-video-with-claude-code

Related:
- [Add captions from speech with Claude](https://www.aisetupsthatwork.com/setups/add-captions-from-speech-with-claude-code/index.md)
- [Edit a video for social with Claude](https://www.aisetupsthatwork.com/setups/edit-a-video-for-social-with-claude-code/index.md)
- [Make feed versions and a thumbnail](https://www.aisetupsthatwork.com/setups/make-feed-versions-and-a-thumbnail-with-claude-code/index.md)
