MediaChef

MediaChef Trim video

Trim a video without losing quality

Drop the video into MediaChef, pick “Trim without re-encoding”, type the start and end as HH:MM:SS, then press start. The piece appears next to the original. Nothing is recalculated — the stream is copied as it is, so the picture is bit-for-bit what it was and the job finishes in hundredths of a second: in our measurements 0.03 seconds, whether the piece was five seconds or fifteen. The one catch is that cuts can only land on a keyframe, which is explained below.

What you need
MediaChef 0.8.5 — one download, FFmpeg is already inside
Works offline
Yes, completely — the network is never touched
Quality cost
None. Nothing is re-encoded; the stream is copied
Time format
HH:MM:SS. Leave the end empty to cut to the end of the file
Speed
About 0.03 s, and it does not grow with the length of the piece
Output
clip.trim.mp4, next to the source; the original is kept

Free and open source — read the code on GitHub All files and release notes

How to cut a piece out of a video

  1. Download MediaChef

    One file for macOS, Windows or Linux. FFmpeg ships inside the download — nothing to install separately, nothing to add to PATH.

  2. Drop the video on the board

    MediaChef reads the file with ffprobe and shows only the recipes that fit it. Any video gets the trim card, whatever the source format.

  3. Pick “Trim without re-encoding” and type the times

    Start and end as HH:MM:SS — 00:01:30 is one minute thirty. Leaving the end empty cuts from the start point to the end of the file.

  4. Press start and take the piece

    The result lands next to the original as clip.trim.mp4, and the original is untouched. It is fast enough that the job is finished before you have looked away.

MediaChef ready to convert: the board waits for a video file, the job queue is on the right.
The board a video goes onto. Recipes appear once MediaChef has read the file.

How fast it actually is

Because nothing is recalculated, the work is a file copy of the relevant bytes. The time does not depend on how long the piece is — measured on a 20-second 1080p source.

Piece cutResultTime taken
00:00:02 → 00:00:075.2 s0.03 s
00:00:00 → 00:00:1010.1 s0.03 s
00:00:05 → 00:00:2015.0 s0.04 s

Compare that with re-encoding the same source, which took 1.3 to 2.0 seconds — roughly fifty times longer, and with a quality loss on top. If all you need is a fragment, this is the recipe to reach for first.

Why the cut sometimes moves

This is the honest limitation, and knowing it turns a confusing result into an expected one. A video does not store every frame in full: most frames only describe the difference from the one before, and the cut can only begin at a full frame — a keyframe. Ask for a point between two, and the cut starts at the keyframe before it.

SourceKeyframes atAsked to start atActually started at
Sparse keyframes0 s, 8.33 s, 16.67 s5 s0 s — five seconds early
Sparse keyframes0 s, 8.33 s, 16.67 s9 s8.33 s — 0.67 s early
Dense keyframesevery 1 s5 s5 s — exactly
Dense keyframesevery 1 s9 s9 s — exactly

How far a cut can move is a property of the file, not of MediaChef: recordings from a phone and from screen-capture tools usually place keyframes about once a second, while files exported for streaming can go eight seconds or more between them. If your cut has to be frame-exact, use a video editor, which re-encodes to get there.

What changes and what stays as it was

Almost nothing changes, and that is the point of this recipe. The list is short because copying touches so little.

PropertyAfter trimmingNote
Picture qualityIdenticalThe same encoded frames are written out. No generation loss, ever.
Video codecUnchangedH.264 in, H.264 out. Whatever the source used is preserved.
ResolutionUnchangedUse the resize recipe if you need fewer pixels.
AudioCopied, not re-encodedThe soundtrack keeps its original codec and bitrate.
ContainerMP4The result is written as MP4 regardless of the source container.
The originalUntouchedA new file is written next to it; nothing is overwritten.

How to write the times

Both fields take hours, minutes and seconds separated by colons. The end field is the one people ask about most.

You wantStartEnd
The first thirty seconds00:00:0000:00:30
From 1:30 to the end of the file00:01:30leave empty
A minute in the middle of a long recording01:12:0001:13:00
The last part, from 2:05 onward00:02:05leave empty

The end is a position on the timeline, not a duration: to get ten seconds starting at one minute, write 00:01:00 and 00:01:10, not 00:00:10.

Why trim on your own computer

Nothing is uploaded. Trimming is usually the first thing you do to raw footage, which is exactly the footage you have not shown anyone. It stays on your disk.

No waiting at all. A web tool has to receive the whole file before it can cut ten seconds out of it. Here the work is over in hundredths of a second, on a file of any size.

No quality cost. Most online trimmers re-encode, so a cut costs you a generation of quality. Copying the stream costs nothing, and you can cut the same file as many times as you like.

No size limit. A two-hour recording is not a problem here, and it is exactly the size that web tools refuse.

Several at once. Drop a whole folder in; the queue works through them and tells you where each piece landed.

When this is the wrong recipe

Copying the stream is what makes this recipe fast and lossless, and it is also what limits it. These are the cases where something else fits better.

  1. The cut has to be on an exact frame.

    As measured above, the start snaps back to the nearest keyframe, which on some files is several seconds. A frame-exact cut requires re-encoding, which is what a video editor does.

  2. You want to remove a piece from the middle.

    This recipe takes one continuous piece out. Cutting a section out of the middle means producing two pieces and joining them, which is editing rather than trimming.

  3. You are going to compress it anyway.

    Then trim first and compress after — that order costs one re-encode instead of two, and the trim itself stays free.

  4. You need a different format at the end.

    The output is MP4 with the original streams inside. If you need WebM, a GIF or just the audio, use the recipe for that; those re-encode by nature.

Questions

Does trimming lose quality?

No, none at all. The encoded frames are copied across untouched, so the picture in the piece is bit-for-bit what it was in the original. This is the difference from most online trimmers, which re-encode and cost you a generation of quality on every cut.

Why did my cut start earlier than I asked?

Because a cut can only begin at a keyframe — a frame stored in full — and your file had none at the point you asked for. We measured this: on a file with keyframes every 8.33 seconds, asking to start at 5 seconds produced a piece starting at 0. On a file with keyframes every second, the same request landed exactly. It is a property of the file, not of the app.

How do I get a frame-exact cut?

You cannot, without re-encoding — the frame you want does not exist as a complete picture in the file. If exactness matters more than speed and quality, use a video editor, which decodes and re-encodes to give you any frame you point at.

How long does it take?

About 0.03 seconds in our measurements, and it does not grow with the length of the piece: five seconds and fifteen seconds both finished in the same time. Re-encoding the same source took 1.3 to 2.0 seconds, roughly fifty times longer.

How do I write the start and end?

As HH:MM:SS — hours, minutes, seconds. 00:01:30 is one minute thirty. The end is a position, not a duration: for ten seconds starting at one minute, write 00:01:00 and 00:01:10.

What if I leave the end empty?

The piece runs from your start point to the end of the file. That is the quickest way to drop a long tail — a recording that kept going after the meeting ended, for example.

Can I cut a piece out of the middle and keep the rest?

Not in one step. This recipe produces one continuous piece. Removing a middle section means making two pieces and joining them, which is a job for an editor rather than for a trim.

Is the original file changed?

No. The piece is written next to it as clip.trim.mp4, and the source is not modified, renamed or deleted. You can cut several different pieces out of the same file one after another.

What happens to the sound?

It is copied along with the picture, keeping its original codec and bitrate. Nothing is re-encoded on either track.

Is there a length or size limit?

No. MediaChef sets none, and because the work is a copy rather than a calculation, a two-hour file is no slower to trim than a two-minute one. The limit is free disk space, which the app checks before starting.

Which formats can I trim?

Anything FFmpeg reads: MP4, MKV, MOV, WebM, AVI, TS and the rest. The result is written as MP4 with the original video and audio streams inside it.

Can I trim several videos at once?

Yes, though each one gets the same start and end. Drop them all on the board, add the recipe, and the queue runs them one after another.

Does it work without internet?

Yes, completely. FFmpeg travels inside the download, so trimming never touches the network. Only transcription needs a one-time model download, and that is a different recipe.

Is there a watermark or a paid version?

No. MediaChef is open source under GPL-3.0, with no paid tier, and since nothing is re-encoded there is nowhere for a watermark to be added even in principle.

Does it run on Windows and Linux?

All three platforms. There is an installer for Windows, an AppImage and a .deb for Linux, and a DMG for macOS on Apple Silicon. The recipe behaves identically everywhere.

Cut that piece out

MediaChef 0.8.5 — free, open source, macOS · Windows · Linux.

Free and open source — read the code on GitHub All files and release notes

MediaChef is young: builds are not yet signed by Apple or Microsoft, so the first launch asks for confirmation — a plain-text how-to ships inside every download.

Something broken, or something missing? Write to us: hello@mediachef.app