Video Object Mask and Rotoscope Tool

Click an object, let the segmentation model follow it frame by frame, paint corrections, then blur, grey out, tint or remove what is inside or outside the mask.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Open the clip

    Choose a short video with the object clearly visible.

  2. 2
    Click the object

    Use + Point on it and − Point on anything that should be left out.

  3. 3
    Track

    Press Track forward, then Track backward if the object appears earlier.

  4. 4
    Fix flagged frames

    Jump to orange frames and correct them with points or the brush.

  5. 5
    Choose an effect

    Pick colour pop, blur, tint, remove or another effect and where it applies.

  6. 6
    Export

    Download MP4, transparent WebM, a matte or the mask PNGs.

About this tool

Rotoscoping means drawing a mask around something on every frame of a shot. Editors use it to make a colour pop effect where only a red car keeps its colour, to blur a background without a green screen, to brighten a product, or to lift a dancer onto a new background. Done by hand it can take an hour for a few seconds of footage. This tool does most of the work with SlimSAM, a compact version of Meta's Segment Anything model released under the Apache 2.0 licence and served from this site. You click once or twice on the object, the model outlines it, and Track forward follows it through the clip: the tool tracks your click points from frame to frame by block matching, adds the centre of the previous mask, and asks the model to segment again. Frames where the mask suddenly shrinks or grows are flagged in orange so you know where to look. The video never leaves your device; the model runs with ONNX Runtime in WebAssembly.

Selecting the object

Green points mark what belongs to the object and red points mark what does not, such as the floor under a shoe or a second person. Add points until the red overlay covers exactly what you want. The brush adds or erases mask areas by hand for thin parts the model misses, like a racket string or a strand of hair, and Undo mask steps back through point and brush edits.

Following it through the clip

Mask frames per second sets how often the model runs. Ten per second is a good balance; fifteen or thirty handle fast motion at the cost of time, because each mask frame needs one encoder pass of about one to three seconds on a laptop. Between mask frames the two nearest masks are blended, so the edge moves smoothly. Track backward works from the current frame towards the start, which helps when the object is clearest in the middle of the shot. Fix a flagged frame and track again from there; the later frames are replaced.

Effects

Colour pop turns everything outside the mask black and white. Blur and Pixelate hide a background or an object. Darken and Brighten shift attention. Colour tint recolours the selection by its brightness. Invert is a stylised look. Highlight glow paints a soft coloured aura on the object. Remove makes the selection transparent in WebM, or fills it with a colour in MP4. Edge feather softens the border by a few pixels.

Export

MP4 with effect keeps the original sound. Transparent WebM uses VP8 with an alpha channel because that encoder runs reliably in ffmpeg.wasm, and is limited to 1,800 frames. The matte MP4 is white where the object is and black elsewhere, ready for track mattes in desktop editors, and the mask PNG ZIP holds one image per mask frame.

Limits

The model sees one frame at a time, so hair, motion blur, smoke and transparent objects give rough edges. Objects that leave the frame, are hidden behind something or change shape completely need new points. Long clips at many mask frames per second take a long time on phones. This is not a frame-perfect replacement for professional rotoscoping software.

Worked example

A 12 second clip of a cyclist at 1920 by 1080 is masked at 10 mask frames per second, so 120 masks are needed. Two green clicks on the rider and one red click on the road select the rider. Track forward takes about four minutes on a laptop and flags 3 frames where a passing car touched the rider; a red point fixes each one. With Colour pop outside at 100 percent strength and 3 px feather, the MP4 shows a coloured rider on a grey street.

Quick facts

Frequently asked questions

Do I need a green screen?

No. The model separates objects in ordinary footage, though clear contrast with the background helps.

How large is the model?

About 14 MB, loaded once from this site and cached by your browser.

Why are some frames orange?

The mask area changed suddenly there compared with the frame before. Check those frames first.

Can I mask more than one object?

Yes, place green points on each object in the same frame; they are tracked together.

Why is the transparent export WebM and not MP4?

The MP4 format used here has no transparency. WebM with VP8 alpha does, and most editors and browsers read it.

Is my video uploaded?

No. Segmentation, effects and encoding all run in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages