# Cut out part of a video and keep the rest

> Markdown version of https://stella.sh/how/video/cut-out-part-of-video for agents and LLMs.
> Remove a section from the middle of a video and keep the rest as one clip, cut at the exact second, sound in sync: QuickTime, Clipchamp, ffmpeg or Stella (stella.sh).

Split the clip at the start and end of the bad part, delete the middle piece and save. QuickTime Player's Split Clip does it on a Mac and Clipchamp's split does it on Windows. Fast “lossless” cutters can snap to the nearest keyframe, seconds off, or leave the sound out of step after the join. Stella (stella.sh) cut 1:10 to 1:45 out of a football final at the exact second and joined the rest with the sound in sync.

- Checked: 14 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 14 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: The edited video in about 40 seconds. Checked afterwards against an answer key written before the run, using a time code drawn on every frame: 2:25 long (3:00 minus 35 seconds), not one frame from 1:10–1:45 left, everything else kept in order and cut at the exact second, the sound in step with the picture before and after the join, and the original unchanged. The football final is a drawn match with crowd and whistle sounds, made for this run with keyframes 10 seconds apart so a quick keyframe cut would land at 1:40 instead of 1:45. The work is sped up 3×.

Video (39 s): https://stella.sh/media/proofs/video/cut-out-part-of-video/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A 3-minute football final is in Videos.
- 0:01 The prompt: cut out 1:10 to 1:45 and keep the rest as one video.
- 0:08 Stella replies it's cutting that part and saving a new file, keeping the original.
- 0:14 Checking frames at the cut points and joining the two halves.
- 0:24 Done: 2:25 long, a plain cut from 1:09 into the action, picture and sound in step.

What Stella does:

1. Finds “Under-9s cup final” in Videos: 3 minutes, with keyframes only every 10 seconds
2. Looks at frames either side of 1:10 and 1:45 to confirm that's where the camera points at the grass
3. Cuts out 1:10 to 1:45 and joins the two halves, re-encoding at a very high quality so the cut lands on the exact frame, not the nearest keyframe
4. Checks frames at the join and the new length: 2:25, down from 3:00
5. Saves it as a new file next to the original and suggests a quick listen at the join

## The prompt to paste

```text
In the video of my son's football final in my Videos folder, the camera was pointing at the grass from 1:10 to 1:45. Cut that part out and keep the rest as one video.
```

## Cut it yourself

1. **Mac: QuickTime Player.** Open the video, choose View, Show Clips, move the playhead to 1:10 and choose Edit, Split Clip. Do the same at 1:45. Click the middle clip, press Delete, then File, Save (or Export As) to write the joined video.
2. **Windows: Clipchamp.** Drag the video onto the timeline, move the playhead to 1:10 and press S to split, then again at 1:45. Select the middle piece, press Delete, close the gap if one is left, and Export.
3. **ffmpeg, frame-exact.** `ffmpeg -i in.mp4 -filter_complex "[0:v]trim=0:70,setpts=PTS-STARTPTS[v0];[0:a]atrim=0:70,asetpts=PTS-STARTPTS[a0];[0:v]trim=start=105,setpts=PTS-STARTPTS[v1];[0:a]atrim=start=105,asetpts=PTS-STARTPTS[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" -crf 18 out.mp4`. Times are in seconds.
4. **Why quick cuts land in the wrong place.** Tools that cut without re-encoding (LosslessCut, `-c copy`) can only start a piece on a keyframe. If keyframes are 10 seconds apart, a cut at 1:45 starts at 1:40 instead. Fine for rough trims; re-encode when the second matters.
5. **Check the join.** Play a few seconds either side of the cut. The sound should match the picture, and nothing from the removed part should flash up.

## Where Stella stops

- An exact cut means re-encoding the video. Stella used a very high quality setting, so it looks the same, but the file is a fresh copy.
- Checked by measurement, not by ear. Stella said nobody had listened to the join and suggested checking it.
- File names, the video's details and a few frames around the cut went to the AI model you use in Stella. The video was cut on your computer.
- Recorded on Linux with ffmpeg already installed. On a Mac or Windows PC Stella would usually download ffmpeg first, which isn't shown.

## Questions

**How do I cut out the middle of a video?**
Split it at the start and end of the part you don't want, delete the middle piece and save. Every editor works this way; Stella does it from the times you give.

**Why is my sound out of sync after cutting?**
Usually a no-re-encode cut joined two pieces that don't start on clean boundaries, so the sound drifts. Re-encoding the join, as Stella did, keeps it in step.

**Can I cut out several parts at once?**
Yes. Give Stella all the time ranges; it removes each and joins what's left.

**What about cutting out pauses in a talk?**
That's a different job: see [cut silences from a video](https://stella.sh/how/video/cut-silences-from-video).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Apple: Split a movie into clips in QuickTime Player on Mac](https://support.apple.com/guide/quicktime-player/qtpa2d90df3d/mac), [Microsoft: How to split or cut videos and audio assets (Clipchamp)](https://support.microsoft.com/en-us/clipchamp/how-to-split-or-cut-videos-and-audio-assets), [FFmpeg filters: trim and concat](https://ffmpeg.org/ffmpeg-filters.html#trim).

## Related problems

- [Cut silences out of a video automatically](https://stella.sh/how/video/cut-silences-from-video.md)
- [Merge videos into one, in the order they were filmed](https://stella.sh/how/video/combine-videos-into-one.md)
- [Speed up a video without the chipmunk voice](https://stella.sh/how/video/speed-up-video.md)
- [Add burned-in subtitles to a video for TikTok](https://stella.sh/how/video/burn-subtitles-into-video-for-tiktok.md)
- [Compress a video for Discord](https://stella.sh/how/video/compress-video-for-discord.md)
- [Convert MKV to MP4 so your TV plays it](https://stella.sh/how/video/convert-mkv-to-mp4.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
