Design and Social Media

How to Mask and Rotoscope an Object in a Video in Your Browser

Select an object in a video with a few clicks, track the mask through the clip, fix edges with a brush and apply colour pop, blur or a transparent cut-out.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Mask and Rotoscope an Object in a Video in Your Browser

How to Mask and Rotoscope an Object in a Video in Your Browser

Rotoscoping is the craft of tracing a shape on every frame of a shot so that an effect can be applied to just that shape. It is behind the colour pop look where one object stays in colour, behind blurred backgrounds without a green screen, and behind many cut-out titles. The Video Object Mask and Rotoscope Tool uses an image segmentation model to do the tracing, so you only guide it and correct it.

How the model helps

Segment Anything models take a picture and a few clicks and return the outline of the object you clicked. The compact SlimSAM version used here is about 14 MB, released under the Apache 2.0 licence, and is served from this site. It runs on your processor through ONNX Runtime in the browser, so the video stays on your device.

A model that understands single pictures still needs help to follow an object through time. The tool tracks your click points from one mask frame to the next by comparing small patches of the picture, adds the centre of the previous mask as an extra hint, and asks the model again. When the new mask is much smaller or larger than the previous one, the frame is flagged.

Step 1: choose a suitable clip

Short shots of a few seconds to half a minute work best. The object should be clearly visible and separate from the background in colour or brightness. Fast motion blur, smoke, glass and fine hair are hard for any automatic method.

Step 2: select the object

Find a frame where the object is complete and press on it with the add point tool. A red overlay shows the mask. If the mask spills onto something else, add a remove point on that area. Two or three points are usually enough. For thin parts the model misses, use the brush to paint the mask on or off.

Step 3: track through the clip

Choose how many mask frames per second to compute. Ten is a balanced default. Press Track forward and watch the timeline strip fill with green. Orange marks show flagged frames. If the object appears before your chosen frame, press Track backward too.

Step 4: fix problem frames

Tap an orange time to jump to it. Usually one extra point fixes it. Then track forward again from that frame, which replaces the later masks with ones based on the corrected selection. Repeat until no important frames are flagged.

Step 5: apply an effect

Effects can apply inside or outside the mask. Colour pop outside makes everything except the object black and white. Blur outside imitates a shallow depth of field. Darken outside draws attention to a product. Pixelate inside hides a logo or a face. Highlight glow adds a coloured aura to the object. Remove makes the selection transparent in a WebM export or fills it with a colour in MP4. Edge feather softens the transition.

Step 6: export

The MP4 keeps the sound and is encoded on your device. Transparent WebM uses VP8 with an alpha channel and can be layered over other footage in editors that read WebM transparency. The matte MP4 is a black and white version for track mattes, and the PNG ZIP holds every mask frame as an image.

Getting cleaner results

Use more mask frames per second for fast motion. Keep the camera steady while filming if you plan to rotoscope. Add a remove point on any background area that has the same colour as the object. Feather of two or three pixels hides small edge errors. Preview the result with Play result before exporting.

Limits

Each mask frame takes one to three seconds on a laptop and longer on a phone, so a 30 second clip at 15 mask frames per second can take a while. Objects that leave the frame or are hidden need new points when they reappear. The edges are good enough for social video and quick projects, but frame-perfect hair detail still needs manual work in professional compositing software.

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