TikTok Video Editor SDK

Green screen overlays for vertical videos in your app

Your users lay a clip shot or rendered on green over their vertical video, and the CE.SDK Green Screen effect turns that green transparent. The footage underneath shows through and keeps its own greens.

Available for
Web
Mobile
Server

Trusted by 100+
industry leaders

Digitas
Omneky
The Print Bar
Brandwatch
Planoly
HP
Shopify
Reuters
Hootsuite
Semrush
Shutterfly
one.com
Sprout Social
Constant Contact
Spread Group

A key matched to the green the clip was shot on

The overlay here is a 6-second clip of a white card on a green backdrop, laid over 8 seconds of a windowsill full of plants. Green Screen starts from pure green, #00FF00, and users set its Source Color to the green of their own backdrop. Matched to this backdrop’s #01B140, the key leaves the plants in their own colors and the card with a clean edge.

The overlay clip on its own: a white card reading Part 2: repotting day on a flat green backdrop that hides the footage below
Overlay without the effect
The same frame with Green Screen at its starting color: the windowsill plants show through under a dark green cast, and a blocky green halo surrounds the card
Green Screen at #00FF00
The same frame with the Source Color set to the backdrop green: the plants, pots and wooden shelf show in their own colors and the white card sits cleanly on top
Green Screen at #01B140

Move the cursor over any image: all panels magnify the same spot at 3× so letterforms and fine detail compare directly.

Three sliders for the edge of the cutout

Below the Source Color, which takes a hex value or a color picked from the screen, sit three sliders that each run from 0 to 100.

Color Match sets how close counts

Color Match decides how far a pixel may sit from the source color and still be removed. At its starting value of 40, the soft shadow under the card goes with the backdrop, and at 10 the shadow stays, with a green tint.

Smoothness feathers the cut

Smoothness, which starts at 8, softens the line between the pixels that stay and the ones that go, so the cutout does not end in a hard, jagged edge.

Spill takes green off the edges

Spill reduces the backdrop color that bleeds onto the subject, such as the thin green rim left around the card. It starts at 0, and the code below sets it to 50.

Every overlay keyed by your platform

When your platform places overlay clips for users, for example from a library of clips shot on green, it can key all of them in one pass. Your developers give the effect the backdrop’s measured green, here #01B140, and the code below adds it to every overlay clip on the page. The 8-second vertical video here is what CE.SDK exported after that pass.

Key the green backdrop of every overlay clip
// Overlays sit on the page above the main track
const scenePage = engine.scene.getCurrentPage();
const overlays = engine.block
  .getChildren(scenePage)
  .filter((child) => engine.block.getKind(child) === 'video');
for (const clip of overlays) {
  const key = engine.block.createEffect('green_screen');
  // The backdrop green measured in the clip: #01B140
  engine.block.setColor(key, 'effect/green_screen/fromColor', {
    r: 1 / 255,
    g: 177 / 255,
    b: 64 / 255,
    a: 1,
  });
  // Take the green tint off the edge of the card
  engine.block.setFloat(key, 'effect/green_screen/spill', 0.5);
  engine.block.appendEffect(clip, key);
}
Get in touch

Let users clear the green from overlay clips

Tell us what your users shoot on green and what they lay it over, and we’ll get back to you with a custom quote for your use case.

TikTok video editor FAQs

Reframing the same video for a feed post is covered on the Instagram video editor page. For cutting the footage itself, start with the video editing overview.

It is CE.SDK, added to your app as the place where your users make vertical videos. They cut their clips on the timeline, add overlays and text and export an MP4, and the Green Screen effect clears the backdrop of an overlay clip.

No. The effect applies only to the clip it is added to, so the overlay loses its green while the footage below keeps all of its own, down to the leaves on the windowsill in the frames above.

Yes. Source Color accepts any color, and the effect removes the pixels close enough to it, so a blue backdrop is keyed the same way. Your developers will find the settings in the Replace Individual Colors guide.

Yes. The key renders into the export the same way it shows on the canvas, so the overlay reaches the MP4 without its green, as the exported vertical video above shows.

Yes. Chroma keying is available on iOS, Android, the web and servers, and the iOS, Android and Node.js guides set the same four properties: source color, color match, smoothness and spill. On the web, Green Screen and those four settings sit in the Effect panel, as the screenshots show.