FFmpeg Cookbook
JA

Video Trim Tool

Cut a video down to the part you need. By default it copies without re-encoding, so it is fast and the quality does not change. Switch to re-encoding when you need a frame-exact cut.

Your file is not uploaded
Drag & drop a video, or tap to select
MP4 / MOV / AVI / MKV / WebM · Up to 500 MB
—
—
Trim range
0:00.00 — 0:00.00
Adjust start
Adjust end
Processing… 0%
Range
—
Length
—
Size
—
Download trimmed video

Equivalent FFmpeg command

CLI command for your current settings. Updates live as you change controls.

ffmpeg -i input.mp4 -t 10.000 -c copy -avoid_negative_ts make_zero -movflags +faststart output.mp4
Popular uses
Cut unwanted sectionsShorten clips before sharingPre-process for size limits

How to use

  1. Pick a videoMP4, MOV, MKV and so on, up to 500 MB.
  2. Set start / endWatch the preview and set the range with the sliders, buttons or time boxes.
  3. TrimFor an exact cut, turn on "Frame-accurate mode (re-encode)" first. When it finishes, a preview and a download button appear.

Recommended settings

SNS intro clip
Start 0, end ≤30s
Check the length limit in the destination's help pages.
Highlight reel chunk
+/- 1s buffer either side
Titles and sound effects are less likely to be cut off.

When it goes wrong

Cut starts in the wrong place

Cause: In lossless mode (the default), the start moves back to the previous keyframe.

Fix: Turn on "Frame-accurate mode (re-encode)" and trim again.

Audio missing

Cause: In lossless mode the audio keeps its original format. If the player does not support that format, there is no sound.

Fix: Turn on "Frame-accurate mode (re-encode)"; the audio then becomes AAC.

Questions

Can I copy-stream (no re-encode)?

Yes. The default lossless mode cuts without re-encoding (-c copy). It is fast and keeps the quality, but the start moves back to the previous keyframe. For an exact cut, turn on "Frame-accurate mode (re-encode)".

Can I cut multiple ranges?

One range per run. Cut each range separately, then join them with the Video Merger.

Long videos?

Input is limited to 500 MB. On phones, a memory warning appears above 200 MB.

More detail (settings, limits, FFmpeg commands)

What each setting means

Start
Where the part you keep begins. Type it as HH:MM:SS.ms (plain seconds also work).
End
Where the part you keep ends. It must be after the start.
Frame-accurate mode (re-encode)
Off (default) is lossless mode (-c copy): fast and no quality change, but the start moves back to the previous keyframe, so the clip can be a little longer. On re-encodes to H.264 (CRF 20) and AAC and cuts at the exact times.

Browsers and limits

  • MP4 output only (input up to 500 MB)
  • Single range per run

The same job with the FFmpeg command line

Cut 5s–25s exactly (frame-accurate mode)
ffmpeg -ss 5 -i input.mp4 -t 20 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 20 -preset fast -pix_fmt yuv420p -c:a aac -b:a 192k -movflags +faststart output.mp4
The same settings as the tool's frame-accurate mode. It re-encodes, so the clip starts at the time you set.
Stream-copy (lossless mode, fast)
ffmpeg -ss 5 -i input.mp4 -t 20 -c copy -avoid_negative_ts make_zero -movflags +faststart output.mp4
The same settings as the tool's default lossless mode. The clip starts at the previous keyframe, so it can be a little longer.