Why Do This in Your Browser?
Auto-reframing has become a paid feature on every major editor — Premiere's Auto Reframe, Descript's Reframe, Vimeo's smart crop, Veed's reframe. They all do roughly the same thing: detect the most important content in each frame and pan the crop window to follow it. The detection logic is small; the friction is paying for it and uploading.
MediaPipe Face Detection returns a face bounding box for each frame it checks, which is enough to steer a crop window. Combined with FFmpeg.wasm for the final re-encode, the whole reframe runs in your browser. In our test a 6-second 1280×720 clip took about 20 seconds end to end, including the engine downloads.
How It Works
Drop a landscape video. The tool checks 10 frames per second with MediaPipe Face Detection and records where the largest face is. Gaps where no face was found are filled by drawing a straight line between the detections either side. The path is then smoothed with a moving average (the Crop Smoothing setting picks a window of about 1/3, 1 or 2 seconds), and FFmpeg.wasm re-encodes the video with the crop window panning along that path.
If several faces are in a frame, the tool follows the largest one, assumed to be the foreground subject; there is no way to pick a different face. If no face is found anywhere in the clip, or you choose Centre crop, the window stays in the middle.
Tip: The Video Resizer crops a fixed window you position, which suits any content where the subject stays put. This tool follows a face, so it suits talking-head clips. For the inverse workflow — reframing a clip without a face — use the Video Resizer. Combine with the Video Watermark tool to add captions to the reframed vertical clip.
Common Use Cases
What the crop keeps, and how it follows a face
The crop always keeps the full height of the video and cuts the width to the ratio you choose (for a ratio wider than the source, such as 21:9 from 16:9, it keeps the full width and cuts the height instead), and it never scales. These are the exact sizes the tool's formula produces:
| Target | From 1920 × 1080 | From 3840 × 2160 | Share of the frame kept |
|---|---|---|---|
| 9:16 (TikTok, Reels, Shorts) | 608 × 1080 | 1216 × 2160 | 31.7% |
| 4:5 (Instagram portrait) | 864 × 1080 | 1728 × 2160 | 45.0% |
| 1:1 (Instagram square) | 1080 × 1080 | 2160 × 2160 | 56.2% |
| 21:9 (cinematic) | 1920 × 822 | 3840 × 1646 | 76.1% |
A vertical 9:16 crop keeps less than a third of a landscape frame, so the window has only about two thirds of the frame width to travel in. That is enough to follow one person walking across a room; with two people far apart the tool follows the larger face (usually the one nearer the camera) and the other leaves the shot.
How the window moves. The tool looks for faces 10 times per second with MediaPipe's face detector, takes the centre of the largest face, fills short gaps with a straight line between the detections either side, and then averages the path over a window centred on each moment, so it reacts to a move as early as it lags behind it. The smoothing presets set that window: Light averages over 0.5 seconds, Balanced over 1.1 seconds and Heavy over 2.1 seconds. Heavy suits interviews and talking heads; Light suits fast movement, at the cost of a slightly busier pan. If no face is found anywhere in the clip, or with Centre crop chosen, the window stays in the middle.
Expect the detection pass to take longer than the encode on long clips: a 60-second video means 600 detections in your browser before FFmpeg starts.