Browser-based video tool · face tracking → 9:16, 1:1 or 4:5

Auto Reframe Video to Vertical

Turn a landscape video into a vertical or square one with a crop window that follows the speaker. Face detection samples the footage, a damped camera path keeps the motion calm, and a scene cut moves the window instantly instead of panning across it.

Footage

A video of up to 10 minutes.

Drop a video here or click to choose

.mp4, .webm, .mov, .m4v

Subject tracking

With several faces, follow

The face detector (about 15 MB of runtime and model files, served by this site) runs on small copies of the frames. Nothing is analysed until you press the button; without it the window stays in the middle.

Crop window

Output shape

Preview

Choose a video to see the crop.

Output

The crop is recorded while the footage plays, so keep this tab in front.

Reframed video

The result plays here once it is ready

Choose a video to start.

Auto Reframe Video to Vertical

Operator: Abdulla Al Fahad. How tools are built and checked

A landscape interview cut straight to 9:16 keeps the middle 32% of every frame, and the speaker is rarely standing in the middle. A fixed crop cuts the face in half; a crop that chases the face every frame makes viewers seasick. This page finds the face a few times a second, moves the crop window with a damped spring that ignores small movements, and jumps instantly when the camera cuts.

Key features

  • Output shapes 9:16, 1:1 and 4:5 at 540, 720 or 1080 pixels wide, in MP4 or WebM with the original sound
  • Face detection on 2, 4 or 8 samples per second, up to 10 minutes of footage
  • A dead zone from 0% to 40% of the window and a camera smoothness from 0.1 to 2 seconds
  • Scene cuts found from the footage and used to snap the window instead of panning across the cut
  • With several faces, follow the largest or the most central, or click a person to add a keyframe and follow whoever is nearest
  • A live preview of the source with the crop outlined, next to the cropped result

How the crop window finds and follows a face

Footage is accepted up to 10 minutes. The window is the largest rectangle of the chosen shape that fits the frame, and it slides only along the long side: a 1920 by 1080 source gives a 608 by 1080 window for 9:16, a 1080 by 1080 window for 1:1 and an 864 by 1080 window for 4:5, and none of them ever moves up or down. The result is scaled to the width you choose, so a 608-pixel window at 1080 wide is enlarged 1.8 times.

The face detector is MediaPipe's BlazeFace short-range model, released under Apache-2.0, which is meant for faces within about two metres of the camera. About 15 MB of runtime and the 0.2 MB model are served by this site. Nothing is analysed until you press the button, and the runtime's own call to Google's usage-statistics endpoint is answered inside the page instead of being sent.

How it works

For every sample the video is moved to that time, the frame is drawn at up to 512 pixels on its long side, and the detector is run on it; it reports each face's centre, size and confidence. A face is accepted at a confidence of 0.5 or more.

Each sample also produces a 16 by 9 grey thumbnail. When the mean difference from the previous thumbnail exceeds 30 on the 0 to 255 scale, the sample is marked as a scene cut. A cut can only be placed at a sample, so at 4 samples per second it is found within a quarter of a second.

Among several faces, the largest one by area or the most central one is chosen, and the face followed a moment earlier gets a 1.6 times bonus so the window does not flip between two similar faces. A click adds a keyframe: from that time on, the window follows the face nearest the click, as long as it is within a quarter of the frame, and otherwise stays where you clicked.

The window centre is a critically damped spring with a rate of 2 divided by the smoothness, so 4 per second at the default 0.5 s. It moves only when the subject leaves the dead zone, which is 12% of the window width by default, and then aims at the edge of that zone rather than the subject itself.

When no face is found, the window holds its last place for 3 seconds, then eases back to the middle over 2 seconds. A scene cut sets the centre to the new target in the same frame with its speed reset to zero.

Common use cases

  • A two-person podcast in 16:9 is cut to 9:16, following the most central face, and the host is clicked at the points where the guest speaks.
  • A 3-minute conference talk is cropped to 1:1 for a social post, with the camera lazier (1.5 s) because the speaker paces.
  • A 90-second product video with a hand model and no visible face keeps the window in the middle, since no face is found.
  • A wedding clip at 4:5 is sampled 8 times per second so a face that is visible for only half a second still gets a detection.

How to use this tool

  1. Drop the video and choose the output shape and width.
  2. Press Find the speaker and wait for the sampling to finish.
  3. Scrub the preview, click a person wherever the window follows the wrong face, and adjust the dead zone and smoothness.

Example

A 1920 × 1080 interview, 9:16, 4 samples per second, largest face; the speaker stands at 30% of the width, then at 70% after a cut at 4.0 s

Source 1920 × 1080
Speaker at x = 576 px (30%) until 3.9 s, at x = 1344 px (70%) from 4.0 s
Samples at 4.0 s flagged as a scene cut

Window and path

The window is 608 × 1080 px, rendered at 1080 × 1920
Centre at 3.9 s: 576 px, so the window covers x = 272 to 880
Centre at 4.0 s: 1344 px, in the same frame as the cut, so it covers x = 1040 to 1648 with no pan across the cut

Common pitfalls

The window slides along one axis only: sideways for a landscape source, up and down for a portrait source made into 1:1. It never follows a face on both axes at once, so a subject that moves along the fixed axis can leave the frame.

A small face in a wide shot, further than two metres from the camera, is missed by the short-range detector, and the window then holds still or returns to the middle.

A fast pan or a flash can look like a scene cut, and the window then snaps instead of gliding. The stats line counts how many cuts were found; compare it with what you know.

  • A dead zone near 12% suits a speaker who sways; raise it to 25% for someone who gestures widely, so the window ignores the hands and head turns.
  • When the preview shows the window leaving the face for a moment, add a keyframe a second earlier rather than shortening the smoothness, which would make every other move twitchier.

Common errors and how to fix them

This video is 11:20 long; the limit is 10 minutes. Trim it first.
Cut the video to 10 minutes or less and choose it again.
The face detector could not be started in this browser
The detector needs WebAssembly, which every current browser has; the page tries the GPU first and then the CPU, so an old browser is the likely cause.

Best practices

  • Look at the stats line after finding the speaker: if a face was found in far fewer samples than there are, add keyframes instead of raising the sample rate.

Why the window is a spring and not a smoothed average

A moving average of the face position lags every start and overshoots every stop, and it still follows tiny movements. A critically damped spring with a dead zone does neither: it waits until the face has moved far enough to matter, glides in with no overshoot, and settles. The same settings that suit a talking head can be made lazier or tighter with two sliders.

Keyframes override detection

A keyframe is a click at a moment on the preview. From that time to the next keyframe, the page ignores its own choice and follows the face nearest the click. Up to 40 keyframes can be added, each is listed under the preview, and pressing one removes it.

What is recorded

The rendered file is recorded while the footage plays, at 30 frames per second, with the window position read from the finished path at each frame, so the render takes as long as the clip.

Frequently asked questions

How does this differ from cropping a video to a fixed shape?

Crop Video cuts one rectangle for the whole clip. This page moves the rectangle, following a face, so the speaker stays inside a narrow shape.

When should I use Social Video Resizer or Video Zoom and Pan Editor instead?

Social Video Resizer fits a whole frame into 9:16, 1:1 or 4:5 with padding or one fixed crop and finds nothing in the picture. Video Zoom and Pan Editor moves a window along keyframes you place yourself, which suits a screen recording where the action is not a face. This page chooses the window position from detected faces, and its keyframes only correct that choice.

Does it reframe to track objects or vehicles?

No, only faces are detected. For a clip without faces, set the shape and let the window sit in the middle, or use keyframes to steer it by hand.

Why does the output look soft at 1080 wide?

A 608-pixel window from a 1080p source is enlarged 1.8 times to reach 1080 pixels. Choose 720 wide to enlarge less, or start from 4K footage.