Slow Motion Video with Frame Interpolation
Operator: Abdulla Al Fahad. How tools are built and checked
Slowing a 30 fps clip to a quarter speed by repeating frames gives a stutter: each picture sits on screen four times. This page instead builds three new frames between every original pair, placed where the moving things would be, so a 5-second clip becomes 20 seconds that still look continuous. The new frames come from measured motion between the neighbouring frames, with no neural network and no model download, so it is honest about what it can and cannot handle: smooth pans and steady subjects are good, thin fast objects and transparency are not.
Key features
- Slow motion at 2x, 4x or 8x, at the source frame rate, or a frame-rate rise to 30, 48, 50, 59.94 or 60 fps at the original speed
- Hierarchical block matching with half-pixel accuracy and a symmetric search at each in-between time
- Occlusion handling per pixel, and hard cuts detected so frames are held instead of blended across them
- A one-second preview that gives a time estimate for your computer, with progress and cancel on the full render
How the in-between frames are made, and why the output is WebM
The page reads an MP4, WebM, MOV or M4V clip that the browser can play. Up to 20 seconds starting where you choose are rendered, scaled to fit 1280 by 720 pixels with even dimensions, and the output is limited to 4,800 frames.
The output is a WebM file: VP9 video where the browser's encoder allows it, VP8 otherwise, plus Opus audio when the browser has an audio encoder. The browser writes the video through WebCodecs, which current Chrome and Edge, Firefox 130 and later on a computer, and Safari 16.4 and later provide, and the file plays in browsers and most players; convert it to MP4 afterwards if your editor needs that. Slowed sound is made by time-stretching without changing pitch and is best at 2x.
How it works
The clip is read frame by frame with a hidden video element, one seek per frame at the middle of each frame period, at the frame rate you confirm (it is measured from the first presented frames, and you can correct it).
For each pair of frames, a copy at about 480 pixels wide is turned to luminance and shrunk twice. Eight-by-eight blocks are matched exhaustively within 8 pixels at the coarsest level, then refined by 2 pixels at each finer level and by half a pixel at the finest, once forwards and once backwards.
For each in-between time t, a second search lines frame 0 at x minus t times the motion up against frame 1 at x plus (1 minus t) times the motion, starting from the forward and backward motion found before. That puts the motion on the in-between frame itself, so there are no holes to fill.
Each output pixel is a blend of the two motion-compensated samples, weighted by t. Where the two disagree by more than 14 grey levels, the weight moves toward the nearer frame, fully at 44 levels, which is how newly uncovered areas are handled. A pair whose motion-matched difference stays above 22 grey levels per pixel is treated as a cut.
Frames are interpolated in a worker, then written one by one by the browser's video encoder, so the clip is never held in memory as a whole.
Common use cases
- A skater's trick filmed at 60 fps is slowed 4x and still plays at 60 fps, and the preview shows the board edge smearing at the fastest moment, so the editor trims that half second.
- A 24 fps wedding clip is converted to 60 fps for a screen that makes 24 fps judder, after a one-second preview with a slow pan.
- A product spin of 8 seconds is slowed 2x with its sound slowed to match.
- A clip with two jump cuts is slowed 4x, and the page reports 2 scene cuts and holds the frames across them rather than morphing between different shots.
How to use this tool
- Drop a clip, confirm the detected frame rate, and choose slow motion or a higher frame rate.
- Choose the start and length (up to 20 seconds) and whether to keep or slow the sound.
- Render the one-second preview, check it for smearing on your fastest-moving object, then render the clip.
Example
Settings for a 30 fps clip: start 0 s, length 1 s, slow down by 4
31 source frames (a 1-second clip includes both end frames), slow down by 4 at 30 fpsFrames planned and written
121 output frames, 90 of them new, 4.03 seconds long at 30 fps
A 24 fps clip of 25 frames raised to 60 fps becomes 61 frames, 48 of them new, 1.02 seconds long
Hard cuts are held: a clip with one cut reports 1 scene cut and shows the same frame through the gapTips for best results
- Start with 2x: it needs one new frame per pair, so it renders fastest and has the fewest places for an artefact to show.
- Choose the start of the clip at a moment of steady camera motion for the preview, because a handheld shake is hard for any motion estimate.
- Lower the length, not the slow-down, to cut render time: time grows with the number of new frames.
- Preview a fast-moving stretch rather than the opening second, because that is where any smearing shows first.
Common pitfalls
Thin fast objects such as a ball in front of busy grass, spinning propellers, water spray and smoke have no single motion, so the in-between frames show ghosts or smears.
A block of 8 by 8 analysis pixels, about 24 by 24 pixels in a 1280-wide frame, is the smallest thing whose motion is tracked, so small details that move differently from their surroundings can wobble.
Interlaced footage and clips with a variable frame rate are treated as a steady frame rate; the page reads each frame at the time you confirm.
A slowed clip's sound is time-stretched, which sounds processed past 2x; at 8x choose no sound.
A browser decodes a soundtrack whole, so a source longer than 10 minutes is saved without sound, and the page says why. Trim the video first if you need its audio.
Common errors and how to fix them
- This browser has no WebCodecs video encoder
- Use a current Chrome or Edge, Firefox 130 or later on a computer, or Safari 16.4 or later. An older browser cannot write the file.
- That would make more frames than the limit
- Shorten the length or choose a smaller slow-down; the limit is 4,800 output frames.
Best practices
- Work on the part of the clip that matters, not the whole file: render a 3-second range at 4x rather than 12 seconds at 2x if only the middle is dramatic.
- Keep the original frame rate selected for slow motion, so the result plays at the frame rate your timeline already uses.
What it handles and what it does not
On a textured image that moves by a known amount, the in-between frames land where the moving things belong: a box that moves 2 pixels per source step advances exactly 2 pixels at each interpolated step, and a hard cut between a red frame and a green one stays red and then green with no blended frame. Smooth texture and rigid motion are the method's best case. Real footage has noise, blur and non-rigid motion, and no score for real footage is claimed.
Frequently asked questions
Why is this not called AI slow motion?
It uses classical motion estimation, not a trained network. A neural interpolator handles occlusions and fast motion better, but it needs a model file the site does not ship, so the page does the best classical method and says so.
Why a WebM instead of an MP4?
The page writes video with the browser's own encoder and a small WebM writer. An MP4 writer is not included, so use a converter if you need MP4.