Skip to content
UniKit

Video speed filters

Re-order frames at 0.25–4× (dropping or repeating them) and really re-encode to WebM, reporting the real frame count and duration change.

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

Frames are re-ordered at the chosen speed and re-encoded locally in your browser.

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

  • Speed a video up or down (0.25–4×) by really re-ordering frames and exporting a playable WebM
  • Check the real numbers in the result: duration change, output frame count, source sampling step
  • Slow motion for detail, fast motion for previews; use the printed local ffmpeg atempo command to change the audio too

Example

Input

clip.mp4 (160×120, 1.05 s, 24,000 bytes) · 2× speed · output frame rate 30 fps

Output

Source video: 160×120 · duration 0:01 · 24.0 KB
Range: 0.000 → 1.050 s (1.050 s)
2x (faster: source frames are sampled at 2× intervals)
Source sampling: one source frame every 0.0667 s (= speed ÷ frame rate), one output frame every 0.0333 s
Output duration: 1.050 s → 0.525 s (shortened by 50%)
Output frame rate: 30 fps · frames: 15
Target bitrate: 150 kbps (quality medium) · estimated size 0.01 MB
Audio: canvas recording is video only — the sound is not sped up and is not carried over
Output file name: clip-2x.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

How do speeding up and slowing down actually work?

Speeding up drops frames: each output frame samples the source every speed ÷ frame-rate seconds, so both the duration and the frame count shrink (2× means half). Slowing down repeats frames: the same source frame is painted several times (0.5× paints each frame twice), so the motion looks stepped — there is no true frame interpolation in the browser, that needs optical flow or AI and is out of scope here.

Does the audio change speed too?

No. Recording uses canvas.captureStream + MediaRecorder, which is video only, and the source audio track is never carried over. To change the audio as well, use the local ffmpeg command the tool prints: setpts retimes the video, atempo resamples the audio, and speeds beyond 2× are split into a chain like atempo=2,atempo=2.

Why does the frame count differ from my calculation?

Output frames = ⌊output duration × output frame rate⌋ and output duration = range length ÷ speed. A single export is also capped at 900 frames (recording is throttled to real time); anything beyond that is truncated and stated in the result.

Why is WebM the only export?

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

Keywords:setptsvideo

Related tools