Skip to content
UniKit

Video cut

Really cut the clip between two times and re-encode it to WebM (frame accurate, video only); MP4 is a local ffmpeg command only.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

The video is decoded and re-encoded locally between the two times and never uploaded.

Pick a video file first.

Progress: Idle0 / 0 · 0%

Result

These are the real numbers from this run — play and download them right here.

Pick a video and set the options; the real result shows up here.

What this tool does

  • Cut a short slice out of a long video: the times are frame accurate (not keyframe snapped) and the export is a playable WebM
  • Check the frame table in the result: which source frame the start lands on, how many frames, how long the output is
  • Use the printed local ffmpeg command for MP4 — re-encode for accuracy, stream copy for speed

Example

Input

clip.mp4 (160×120, 1.05 s, 24,000 bytes) · cut 0.300 → 0.800 s · output frame rate 10 fps

Output

Source video: 160×120 · duration 0:01 · 24.0 KB
Cut range: 0.300 → 0.800 s (0.500 s)
Start alignment: at 10 fps the start is frame 3 of the source (browsers do not expose the real frame rate — this line is informational only)
Output frame rate: 10 fps · frames: 5 (output duration 0.50 s)
Target bitrate: 150 kbps (quality medium) · estimated size 0.01 MB
Output size: 160×120 (same as the source, rounded to even numbers)
Audio: canvas recording is video only, so the source audio is not carried over (use the local ffmpeg command below if you need the original sound)
Output file name: clip-cut.webm

These are the lines the pure logic computes for the input above (the first lines of the result panel). The panel then appends the real size, MIME type and elapsed time of this recording.

Frequently asked questions

Does the cut keep the audio?

No. Recording uses canvas.captureStream + MediaRecorder, which is video only, so the source audio track is not carried over. Use the local ffmpeg command the tool prints (it includes -c:a aac or -c copy) when you need sound.

Why not cut instantly with -c copy like ffmpeg?

Stream copy never decodes: it just moves compressed packets, so it is fast and lossless, but the start can only land on a keyframe (possibly earlier). Browsers have no demuxer, so the only option is decode + re-encode — exact times, at the cost of roughly the clip length in wall-clock time.

Why is WebM the only export?

The native MediaRecorder can only mux WebM (VP8/VP9). Picking MP4 does not pretend to produce an MP4 cut: the tool prints a local ffmpeg command and states that it is a command, not the result of this tool.

How are the endpoints handled?

The range is half-open: 0.3 → 0.8 s at 10 fps uses the frames at 0.3/0.4/0.5/0.6/0.7 — the frame at the end time is excluded so that adjacent cuts do not overlap by one frame. The frame count and output duration are printed in the result.

Keywords:cutvideo

Related tools