# Remove silences from a video with code.

> Cut the pauses from a talking clip: find each gap over 0.5 seconds in the word times, keep each span of speech, and render it. Steps and rows included.

Canonical: https://vawe.dev/how-to/remove-silences-from-video
Last updated: 2026-11-17

An agent reads the word times in your clip’s transcript, finds each gap longer than 0.5 seconds and keeps only the spans that hold speech. Each span becomes one trimmed clip in a page that vawe renders to MP4.

## Copy this prompt into your agent

```
Use vawe (https://github.com/vawe-hq/vawe), the open-source video-from-code tool, to remove the silences and dead pauses from my video.

My clip: <path to your clip or folder>.

Find the gaps in speech from the transcript, keep each spoken span as one cut, and leave a short breath at each cut so it does not sound clipped. List the cuts you made with their times.

If vawe is not installed here, install it first:
npm install @vawe/cli
(it needs Node 22 or newer and ffmpeg; npx vawe new prints the install line for anything missing).
Then follow each command’s next: line.

Start with npx vawe new <name> --footage <my clip>, which logs the clip with a transcript.

Show me the draft video and wait for my OK before the final render.
```

## The steps.

1. **Log the clip. **`bin/vawe new talk --footage ~/clips/talk.mov` writes `footage/talk.words.json`: every word with a start and an end in seconds.
2. **Find the gaps. **The gap between two words is the start of the next one minus the end of the first. Over 0.5 seconds is a silence.
3. **Group the words between two silences. **A span starts at its first word’s start and ends at its last word’s end. Cutting on word ends keeps each word whole.
4. **Write one row per span. **The Cut list in `brief.md` takes the clip, the in and out seconds, the speed and the reason.
5. **Write one video per row. **`data-trim` is the in second, `data-trim-end` the out second, and each `data-at` is the sum of the lengths before it.
6. **Render and check the cuts. **`bin/vawe dev films/talk/page.html`, then `bin/vawe frame films/talk/page.html --cuts` writes a frame at each cut.

Each span of speech is a Cut list row:

```
| world | clip | in   | out  | rate | why |
| ---   | ---  | ---  | ---  | ---  | --- |
| s2    | talk | 0.42 | 2.62 | 1    | “so today I show this” |
| s4    | talk | 4.10 | 5.50 | 1    | “it takes a minute”, gap was 1.48 s |
```

Source: prompts/edit-from-clips.md · blog: cut silences with an agent

## What can go wrong.

1. **Fillers stay. **vawe has no filler-word detector. The agent can read an “um” in the transcript and cut it on its word times, but the choice is the agent’s and yours.
2. **A bad take stays. **Nothing scores a take.
3. **A cut feels wrong although the numbers are right. **Look at the frames from `--cuts`. To keep a breath at the start of a span, move `data-trim` earlier by a few hundredths of a second.
4. **A span flashes. **A clip held under 1.2 seconds reads as a flash. The agent can join two close spans and keep the short gap inside.

## Read next.

1. [Cut the silences with an agent](https://vawe.dev/blog/cut-silences-with-an-agent): the same method with the example word times worked out.
2. [How an agent reads footage it cannot watch](https://vawe.dev/blog/how-an-agent-reads-footage): what footage.md holds.
3. [Agentic video editing](https://vawe.dev/agentic-video-editing): the scope of an edit.

## Start from your clip.

`bin/vawe new <name> --footage <file>` logs it and starts the page.

## Related

- [Get vawe on GitHub](https://github.com/vawe-hq/vawe)
- [All how-to guides](https://vawe.dev/how-to)
- [Add captions to a video](https://vawe.dev/how-to/add-captions-to-video)
- [Remove silences from a video](https://vawe.dev/how-to/remove-silences-from-video)
- [Trim and join clips](https://vawe.dev/how-to/trim-and-join-video-clips)
- [Agentic video editing](https://vawe.dev/agentic-video-editing)
- [Edit video with Claude Code](https://vawe.dev/edit-video-with-claude-code)
