Browser-based video tool · person segmentation → MP4, WebM or PNG frames

Video Background Remover

Cut the person out of a talking-head or webcam video and put a colour, a blurred copy of the room or a picture behind them, with no green screen. Smooth and feather the edge, then export with the original sound or as transparent frames.

Footage

A video of up to 10 minutes with one person in front of the camera.

Drop a video here or click to choose

.mp4, .webm, .mov, .m4v

Edge clean-up

The model gives each pixel a person probability. Feather sets how wide the soft edge is; choke moves its centre inwards (positive) or outwards (negative); smoothing blends each frame's mask with the last one, except where a pixel jumps, so moving hands leave no trail.

Background

Put behind the person

Preview

Choose a video to see the cut-out.

Output

Choose a video before rendering.

Keep this tab in front while rendering; a hidden tab pauses the recording.

Video with a new background

The result plays here once it is ready

Choose a video to start.

Video Background Remover

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

The shelf, the unmade bed or the colleague walking past behind you is part of every frame of a webcam recording, and without a green screen there is nothing to key out. A segmentation model solves the problem differently: it looks at each frame and gives every pixel a probability of being a person. This page runs one on every frame of your video, then puts a colour, a blurred copy of the room, a picture or nothing at all behind the person.

The edge is where most cut-outs fail, so it has three separate controls and a matte view that shows exactly what the model kept.

Key features

  • Person segmentation on every frame, with feather, choke and temporal smoothing to tune the edge
  • A solid colour, a blurred copy of the same frame, or a JPG, PNG or WebP picture behind the person
  • Transparent output as a ZIP of PNG frames, or as a VP9 WebM with alpha where the browser can encode it
  • A live preview over the frame you are on, and a matte view in black, white and grey
  • The footage's own sound kept in MP4 or WebM exports of up to 10 minutes

What the segmenter finds and how the edge is cleaned

Anything the browser can play is accepted, up to 10 minutes. MP4 and WebM exports are recorded in real time at 30 frames per second; the size menu keeps the original frame or shrinks its shorter side to 1080, 720 or 480 pixels, and the sound stays unless you switch it off. A background picture has its header read before it is decoded, is refused over 25 MB or 50 megapixels, and is scaled to cover the frame.

A transparent export has no sound. PNG frames are cut out one at a time at 6, 12, 15, 24 or 30 frames per second, at most 600 frames, which is 50 seconds at 12 fps or 20 seconds at 30 fps. The page counts whole frames, so a 3.98-second clip at 12 fps gives 47. A transparent WebM may be up to 2 minutes; the choice appears only after the page has asked the browser's video encoder whether it can keep alpha, and where it cannot, PNG frames are the transparent route.

The model is MediaPipe's selfie segmenter, released under Apache-2.0, which takes a 256 by 256 picture and returns a mask of the same size. Its 0.25 MB file and about 15 MB of WebAssembly runtime are served by this site. The runtime normally posts anonymous counters to Google, and that one call is answered locally, so the page requests nothing but those two files. It is trained on head-and-shoulders shots, and a person seen full length in a wide scene is cut out more raggedly.

How it works

Each frame is shrunk so its long side is 384 pixels and handed to the model, which answers with a person probability between 0 and 1 for each of its 256 by 256 pixels. The mask is then stretched to the output size, which is why the edge is soft rather than hair-fine.

Smoothing blends each pixel's probability with the previous frame's, except that a pixel that changes by more than half in one frame follows the new value at once, so a waving hand leaves no ghost trail. A pixel that moved by 0.4 keeps 8% of its old value at the default smoothing of 0.4; one that moved by 0.1 keeps 32%.

A smoothstep turns probability into transparency. The ramp is centred on the threshold plus 0.3 times the choke, and as wide as the feather. At the defaults, threshold 0.5, feather 0.25 and choke 0, it runs from 0.375 to 0.625, so a pixel at 0.45 is 22% opaque and one at 0.7 is fully opaque.

Common use cases

  • A 4-minute talking-head recording is rendered over a company colour at 720p with its sound, and takes about as long as the clip itself.
  • A teacher blurs the room behind a 12-minute lesson; the limit is 10 minutes, so the recording is cut into two clips first.
  • A designer exports 36 frames of a 3-second gesture at 12 fps as transparent PNG files to place over slides.

How to use this tool

  1. Drop a video; the model loads as soon as the first frame appears.
  2. Choose Colour, Blur, Picture or Transparent, and look at the matte view if the edge looks wrong.
  3. Adjust feather, choke and smoothing while the preview plays.
  4. Press Render video, or Export for a transparent result, and download it.

Example

A 4-second clip, Transparent, PNG frames at 12 fps; one edge pixel the model rates 0.45 as a person

Default edge settings: threshold 0.5, feather 0.25, choke 0, smoothing 0.4
Then choke raised to 0.5

What changes

48 PNG frames in a ZIP (4 s times 12 fps), no sound
At choke 0 the ramp runs 0.375 to 0.625 and the 0.45 pixel is 22% opaque
At choke 0.5 the ramp runs 0.525 to 0.775 and the same pixel is fully transparent, which removes a halo of the old background at the edge

Tips for best results

  • Raise the choke first when a light halo of the old background shows around the head; raise the feather only if the edge then looks cut out with scissors.
  • Turn the smoothing down to 0.1 for fast action such as juggling, where a half-weighted previous mask lags a moving hand.
  • A light subject against a light wall gives the model less to work with than a contrast; a lamp or a darker backdrop behind the person improves the mask more than any slider.

Common pitfalls

Only a person is recognised. A pet, a product held up to the camera or a guitar that is part of the performance is treated as background unless it overlaps the person.

The page assumes one person. Nothing in it picks a subject, so with two people the mask follows whatever the model scores as a person, and the result is not guaranteed.

The render is recorded while the clip plays, so a slow computer can drop frames; the length stays correct, but the motion may stutter.

A transparent WebM is video only, and a player or editor that ignores VP9 alpha shows black behind the person. Use the PNG frames there.

Common errors and how to fix them

This video is 12:40 long. The limit is 10 minutes because every frame is segmented while it plays; trim it first.
Cut the video into parts shorter than 10 minutes before choosing it here.
The segmentation model could not be started in this browser
Use a current Chrome, Edge, Firefox or Safari; the model needs WebAssembly, and it tries the GPU first and falls back to the CPU.
The segmentation model did not finish loading within 90 seconds. Check your connection, then try again.
Press Try loading the model again. The 15 MB runtime and model are cached once they arrive, so a retry after a slow first attempt is usually quick.
"backdrop.png" is 8000 × 6000 px, over 50 megapixels.
Resize the picture to the video's size or smaller; a 1920 by 1080 backdrop is enough for any output size the page offers.

Best practices

  • Check the matte view at the frame where the person moves most, not only at the first frame, before rendering.
  • Keep the picture backdrop at the same shape as the video. A square picture behind a 16:9 video is cropped to cover, not letterboxed.

Why a mask is not a key

A chroma key removes pixels near one colour and needs an evenly lit backdrop. A segmentation mask decides by shape and texture, so it works against a bookcase, but it has no idea what colour the old background was, which is why a halo of it can survive on hair. Choke moves the whole edge inwards to cut the halo, and feather decides how gradual the hand-over is.

What the preview costs

The preview runs the model on each frame it draws, at up to 480 pixels wide, so a slow computer may play it below full speed. Pausing redraws a single frame with the current settings, which is the quickest way to compare two choke values on the same pose.

Frequently asked questions

How is this different from the green screen page?

Green Screen Video removes one chosen colour from footage shot against a backdrop. This one needs no backdrop and finds a person by shape, at the cost of a softer edge.

Can it work on a photo?

Not here: it is built for video frames. For a single picture, AI Background Remover handles stills.

Why does a transparent WebM option sometimes not appear?

Alpha encoding is offered only when the browser's video encoder reports that it can keep an alpha channel for the chosen size and frame rate. That depends on the browser and the system, and the page shows the result of the check.

Why is my hair edge soft?

The model's mask is 256 by 256 pixels and is enlarged to the video size, so detail finer than about 1/256 of the frame is gone. Feather 0.1 or lower tightens it at the price of a harder edge.