How to Cut a Video Without Re-encoding (Why Cuts Snap to Keyframes)

Learn how lossless video trimming works, why fast cuts start at the nearest keyframe, when to re-encode for a frame-exact cut, and the right ffmpeg commands.

Updated September 29, 2026 5 min read

Use the free Trim VideoCut the start and end off a video — instantly without re-encoding, or frame-exact

Trimming is the most common video edit there is: cut the fumbling seconds before a presentation starts, remove the end of a recording where you reach for the stop button, or keep only the thirty seconds that matter from a long meeting. You do not need an editing timeline for that, and you do not need to wait for a full export either.

But fast trimmers sometimes behave oddly: the clip starts a second before the point you chose, or the first moment shows a frozen frame. This guide explains why, using the idea of keyframes, and shows when to use a lossless cut and when a frame-exact re-encode is worth the wait.

Keyframes and why they matter

Modern codecs such as H.264, HEVC, VP9 and AV1 do not store every frame as a complete picture. They use three kinds of frames:

  • I-frames (keyframes) are complete images that can be decoded on their own.
  • P-frames store only the differences from earlier frames.
  • B-frames store differences from frames before and after them.

A run of frames from one keyframe to the next is a group of pictures (GOP). Phone cameras typically place a keyframe every second or two; screen recorders and streaming encoders may use longer intervals.

This is why decoding has to start at a keyframe. A P-frame in the middle of a GOP is meaningless without the frames it refers to.

Two ways to trim

Stream copy (lossless). The trimmer copies the compressed frames between your start and end points into a new file, unchanged. It is almost instant, and quality is identical to the original. The catch: the clip effectively has to begin at a keyframe, so the actual start snaps back to the keyframe at or before your chosen time, and you may see a few extra frames.

Re-encode (frame-exact). The trimmer decodes the video and encodes a new one starting exactly at your chosen frame. It is slower and introduces a small generation loss, but the cut is precise.

Stream copy Re-encode
Speed Seconds Proportional to clip length
Quality Identical Very slightly lower
Cut accuracy Nearest keyframe Exact frame
Output format Same as input MP4 (H.264/AAC)

Trim a video with our tool

The Trim Video tool offers both methods in the browser.

  1. Open Trim Video and drop your video. If your browser can play it, a player and a range scrubber appear.
  2. Drag the scrubber's handles, or play the video and press Set start here and Set end here at the right moments. You can also type exact times in the Start and End boxes.
  3. Press Preview selection to play just the chosen range and stop at the end.
  4. Under Cutting mode, choose Fast (no re-encode) for an instant, lossless cut that keeps the original container, or Exact (re-encode) for a frame-accurate MP4.
  5. Click Trim video, check the result, and download.

After a fast cut, the tool reminds you that the clip may start slightly before your start time. If that matters, run it again in Exact mode.

Exact mode encodes H.264 at high quality with AAC audio, but it runs as single-threaded WebAssembly, so a long selection from a 4K file will be slow compared with desktop software. Fast mode is quick even for big files, though very large files still have to fit in browser memory; above about 500 MB the tool warns you.

Other ways to trim a video

Windows

The Photos app (or the Clipchamp editor it links to, depending on your Windows version) offers a trim function with start and end handles. It re-encodes on save.

macOS and iPhone

In QuickTime Player, choose Edit → Trim, drag the yellow handles and save. On iPhone and iPad, open the video in Photos, tap Edit and drag the ends of the timeline. Both are convenient for quick jobs.

ffmpeg: lossless cut

ffmpeg -ss 00:01:05 -i input.mp4 -t 30 -c copy -avoid_negative_ts make_zero output.mp4

Putting -ss before -i makes ffmpeg seek quickly; -t 30 keeps 30 seconds; -c copy avoids re-encoding. Use -to instead of -t if you prefer an end timestamp, but be aware that when -ss precedes -i, the timestamps are reset, so -to is measured from the new start.

ffmpeg: exact cut

ffmpeg -ss 00:01:05 -i input.mp4 -t 30 -c:v libx264 -crf 20 -preset medium -c:a aac -b:a 160k output.mp4

LosslessCut

LosslessCut is a free desktop app built around stream-copy editing. It can show keyframes on the timeline and cut several segments at once, which is ideal for long recordings.

Tips and troubleshooting

The first second is frozen or grey

Some players show the frames before the first keyframe as frozen or garbled after a stream-copy cut. Moving the start point to a keyframe or using Exact mode solves it.

Audio and video are slightly out of step

Stream-copy cuts can leave audio starting a fraction earlier than video. The -avoid_negative_ts make_zero option in ffmpeg (which the tool also uses) normally handles this; if not, use a re-encode.

You need several cuts in one video

Trim each part you want to keep, then join them with Merge Videos. If the pieces came from the same source and you used Fast mode, they share codecs and size, so they can be joined losslessly too.

Changing more than length

For a vertical or square version, follow the trim with Crop Video. If the goal is a smaller file for sharing, Compress Video re-encodes with size control, and you can do it after a fast trim without adding an extra lossy step.

Making a GIF from the clip

A short trimmed segment is also the ideal source for an animation; see how to make a high-quality GIF from a video.

Frequently asked questions

Does trimming a video reduce its quality?

Not with a stream-copy cut, which copies the compressed frames unchanged. A re-encoded cut loses a small amount of quality in exchange for frame accuracy.

Why does my trimmed clip start earlier than I set?

A lossless cut must begin at a keyframe, so the start snaps back to the nearest keyframe before your chosen point. Use a re-encoding (exact) mode for a precise start.

What is a keyframe interval?

It is the distance between complete frames in a compressed video, often one to a few seconds. Longer intervals save space but make lossless cuts less precise.

Can I trim MKV or MOV files without converting them?

Yes. The fast mode keeps the original container, so an MKV stays MKV and a MOV stays MOV. Exact mode always outputs MP4.

Is there a length limit for trimming?

There is no fixed limit, but the file has to fit in your browser's memory. Very large files are more reliable in a desktop app such as LosslessCut or ffmpeg.

Try it now: Trim Video

Loading tool…