> ## Content Index
> Fetch the complete content index at: https://ffmpeguru.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Fast video trim with stream copy (cuts snap to keyframes)
- URL: https://ffmpeguru.com/fast-video-trim-with-stream-copy-cuts-snap-to-keyframes/
- Published: 2026-10-19T09:00:00.000Z
- Updated: 2026-10-19T09:00:00.000Z
- Author: FFmpeguru
- Tags: ffmpeg

Need a clip from a long video in seconds, not minutes? Stream-copy trimming asks the demuxer to start at one point and stop at another, copying the encoded packets between. There is no re-encode, so quality is preserved and the time is bounded by disk I/O rather than CPU.

## The command

```
ffmpeg -ss 00:01:30 -to 00:03:00 -i input.mp4 -c copy output.mp4
```

## What it does

FFmpeg skips the demuxer past `00:01:30`, then writes packets until `00:03:00`, copying audio and video streams without decoding them. The output is a valid MP4 with the same codecs as the source.

## When to use it

For rough cuts, social media clips, or any time you need a region of a file quickly. The trade-off is that the cut points snap to the nearest keyframe in the source: the actual cut may start or end a fraction of a second before or after the timestamp you asked for, depending on where the GOP boundaries fall.

## Video and audio requirements

Any container and codec FFmpeg can read and that the target container accepts. The source must have keyframes; nearly all modern encoders produce a keyframe every 1 to 10 seconds. A file with only one keyframe (rare) will not trim precisely with this method.

## Things to avoid

- Expecting frame-accurate cuts. For those, re-encode with the `-ss` after `-i`.
- Placing `-ss` after `-i` with `-c copy`. That combination is slow because FFmpeg decodes then re-encodes, and with `-c copy` the timing data often ends up wrong.
- Trimming a file that has no audio. FFmpeg will still produce a valid video-only output, but if you forgot the audio is missing you will be confused.
- Forgetting that the output has the same duration precision as the source. A 24-hour file trimmed to one minute still has timestamps that look like a 24-hour file, which can confuse some players.