NEW · FFmpeg.wasm · 100% Browser-Based

Video Stabilizer

Steady shaky handheld and action-cam footage. Motion tracking and re-rendering run entirely in your browser: no upload, no signup, no watermark.

🎬
Drop a video file
MP4 · MOV · WebM · MKV · AVI · GIF
Files stay on your device · Never uploaded

Related Tools on UDT

Video Trimmer →
Trim videos with frame-accurate precision in your browser.
Video Resizer →
Resize to 9:16 vertical, 1:1 square, or any aspect ratio with positioned crop, letterbox or blur fill.
Video Color Grader →
Adjust exposure, contrast, saturation, hue with live preview.
All Video Tools →
Browse the full Video Suite: 18 tools, all in-browser.

Why Do This in Your Browser?

Most stabilizers live inside a desktop editor or a cloud service that wants your file. This one runs on your own device: the video is read, tracked and re-encoded inside the browser tab and never uploaded. The two engines it uses download once and your browser usually caches them.

The trade-off is speed. Your device does all the work, and the final H.264 encode is the slow part. On our deliberately weak test machine (one CPU core), a 10-second 720p clip took 77 seconds in total, of which tracking the motion took about 6 seconds. A modern laptop or phone with more cores finishes the encode faster.

How It Works

1. Track the camera. FFmpeg.wasm turns the clip into small greyscale frames (320 px wide). OpenCV.js finds up to 200 well-defined corners in each frame, follows them into the next frame with pyramidal Lucas–Kanade optical flow, throws out points that move differently from the rest (RANSAC, so a person walking through the shot does not drag the estimate) and fits the rotation and shift the camera made between the two frames.

2. Smooth the path. Adding those steps up gives the path the camera actually took. Each point on the path is averaged with the frames on either side (the Smoothness setting, 15 frames each side by default), which keeps slow, deliberate moves and removes the jitter on top of them. The difference between the smooth path and the real one is the correction each frame needs.

3. Re-render. FFmpeg rotates and shifts every frame by its correction, using per-frame commands timed to that frame, then encodes an H.264 MP4. With Auto-crop it zooms in just far enough to hide the moving edges (never more than the Maximum zoom you pick; if a clip needs more, every correction is scaled down to fit). With No crop the frame keeps its full size and the moving edges show as black.

It corrects rotation and sideways or vertical movement. It does not fix rolling-shutter wobble (the jelly look of fast pans on phone sensors), motion blur already baked into a frame, or zoom changes.

Common Use Cases

Handheld Phone Footage
Walk-and-talk clips, vlogs and unboxings shot without a gimbal.
Action Cam Clips
Footage where the camera's own electronic stabilization was off or not enough.
Drone Wobble
Small shakes from wind on a slow, steady drone move.
B-Roll and Inserts
Short handheld shots you want to cut in next to tripod footage.
Property Walk-Throughs
Walking tours where every step shows up as a bump.
Older Phone Video
Clips from phones without optical stabilization.

How Well It Works

We tested it on a 10-second 1280×720 clip with a known, added shake (about 15 px and 0.5° of jitter on top of a slow pan), measured the leftover frame-to-frame shake with a separate feature matcher, and ran the same clip through desktop FFmpeg's vidstab filter for comparison:

Version of the clipShake left (shift)Shake left (rotation)
Input clip (no correction)16.5 px0.52°
Desktop FFmpeg vidstab (smoothing 15)3.4 px0.09°
This tool (default settings)2.4 px0.06°

"Shake left" is the jitter that remains once slow camera movement is set aside (root mean square). Real footage varies: clips with little detail (fog, a blank wall, night shots) or a large subject moving across most of the frame give the tracker less to hold on to, and the result note under the video tells you if any frames could not be tracked. If you need rolling-shutter correction or stabilization on very long clips, a desktop editor such as DaVinci Resolve or Adobe Premiere Pro (Warp Stabilizer) is the better tool.

Frequently Asked Questions

Is this video stabilizer really free?+
Yes. No watermark, no signup, no time limit. Everything runs on your own device, so there is no server cost to pass on.
How does the stabilization algorithm work?+
OpenCV.js tracks up to 200 corner points from each frame to the next (pyramidal Lucas-Kanade optical flow), rejects points that disagree with the camera's motion (RANSAC) and fits the rotation and shift between frames. Adding the steps up gives the camera's path; averaging it over neighbouring frames gives a smooth path. FFmpeg then rotates and shifts each frame by the difference and encodes the result.
Are my videos uploaded anywhere?+
No. Your video is processed inside this browser tab and never leaves your device. The page downloads two engines the first time you stabilize: FFmpeg.wasm (about 32 MB) and OpenCV.js (about 10 MB), both from the jsDelivr CDN, and your browser usually caches them.
What does the Smoothness setting do?+
It sets how many frames on each side of every frame are averaged to make the smooth camera path (2 to 60, default 15). Low values remove only fast jitter and follow your camera moves closely; high values make the shot steadier but turn quick, deliberate pans into slow drifts and need more zoom to hide the edges.
Why does the output look zoomed in, or have black edges?+
Moving a frame to cancel shake uncovers its edges. Auto-crop zooms in just enough to keep them out of view, up to the Maximum zoom you choose (10%, 20% or 30%); if a clip needs more than that, every correction is scaled down to fit, so the result is less steady rather than showing edges. No crop keeps the full frame and shows black where the picture has moved.
How long a clip can it handle?+
There is no fixed limit, but the whole file and the tracking frames sit in your device's memory, and the H.264 encode runs on your CPU. On our one-core test machine a 10-second 720p clip took 77 seconds. Short clips are quickest and most reliable, especially on phones: trim to the part you need first with the Video Trimmer.
What format is the output?+
An H.264 MP4 (CRF 20) at the source's size and average frame rate; variable-frame-rate phone clips come out at a constant rate. AAC, MP3, ALAC and AC-3 audio is copied unchanged; other audio (Opus or Vorbis from WebM, for example) is converted to 192 kbps AAC. Portrait phone videos stay portrait.
What's the underlying engine and license?+
Motion tracking uses OpenCV.js 4.10.0 (Apache-2.0). Decoding and encoding use FFmpeg.wasm with @ffmpeg/core 0.12.6 (FFmpeg 5.1.4); that core build includes x264, which makes it GPL, and the wasm wrapper is MIT. Both are loaded unmodified from jsDelivr at pinned versions. Neither uses FFmpeg's vidstab filter, which this build does not include.