Speaker Cutout logo

Speaker Cutout

Community
imMamdouhaboammar
speaker-cutout

Isolate a talking-head presenter for backdrop replacement, picture-in-picture layouts, and depth-stacked motion graphics. Plans full and PiP geometry, validates timeline windows, and preserves a strict foreground hierarchy. Use when someone says "speaker cutout", "cut me out of the video", "put graphics behind me", "talking head PIP", "swap background", or "person layer".

Overview

PublisherimMamdouhaboammar
Repositorymotion-graphics-skills
Skill namespeaker-cutout
Stars
51
Forks
17
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by imMamdouhaboammar on GitHub. Read the source before you install it.

Installation

Install the Speaker Cutout AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/imMamdouhaboammar/motion-graphics-skills/tree/main/skills/speaker-cutout
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/imMamdouhaboammar/motion-graphics-skills.git /tmp/motion-graphics-skills
mkdir -p .claude/skills
cp -r /tmp/motion-graphics-skills/skills/speaker-cutout .claude/skills/speaker-cutout
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Speaker Cutout in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Speaker Cutout on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Speaker Cutout is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Speaker Cutout and Depth Stacking

The presenter is a visual layer, not a sticker pasted on top of graphics.

Use this skill to create deliberate foreground and background relationships while preserving body edges, eye line, captions, and scene continuity.

Decision gate

Use cutout compositing when the story needs information behind or beside the presenter.

Do not isolate the speaker simply because segmentation is available.

Keep the original full camera frame when:

  • the environment is meaningful
  • mask quality is unstable around hair or hands
  • the new background creates a lighting mismatch
  • graphics can fit cleanly without removing the room
  • segmentation adds complexity without improving communication

Layer hierarchy

Maintain this order:

  1. Backdrop
  2. BehindPresenter
  3. PresenterCutout
  4. ForegroundUI

Captions and critical UI belong above the presenter.

Graphics intended to feel embedded in the scene belong behind the presenter.

Workflow

Step 1: Inspect the source before segmentation

Check:

  • hair detail
  • motion blur
  • hand movement
  • clothing against the background
  • shadows
  • camera movement
  • whether a clean room plate exists

If the source is difficult to segment, plan a simpler composition instead of hiding bad edges with more effects.

Step 2: Produce or reuse the alpha source

Use the current project's subject extraction path first.

For a separate workflow, Apple Vision, rembg, or another segmentation system can create the alpha source.

Preserve enough edge detail for hair and hands.

Step 3: Resolve the speaker mode

For PiP:

bash
python3 scripts/speaker_layer.py --mode pip --scale 0.65 --anchor-x 0.85 --anchor-y 0.90

For full frame:

bash
python3 scripts/speaker_layer.py --mode full

Full mode always returns the entire frame at position 0,0.

PiP uses the supplied scale and anchors.

Step 4: Plan timeline windows explicitly

A presenter state must have a valid finite interval:

text
0 <= start < end <= total_duration

Reject invalid windows instead of emitting negative or out-of-range durations.

Use timeline windows to separate:

  • background change
  • presenter scale change
  • presenter movement
  • graphic reveal

Do not fire all four on one frame unless the creative direction specifically calls for a hard transformation.

Step 5: Composite depth layers

The bundled helper generates the basic depth stack.

A typical structure is:

text
background
  + behind-presenter graphics
  + alpha presenter
  + captions in the final composition

If a stable HyperFrames composition already exists, keep the cutout as a layer inside that runtime rather than creating a parallel render pipeline.

Transition logic

A reliable room-to-PiP transition is:

  1. establish the replacement backdrop
  2. hold long enough for visual continuity
  3. scale and move the presenter
  4. reveal the information that needed the freed space

This prevents the viewer from seeing a duplicate room or feeling that the speaker teleported.

Compositing craft

Check:

  • edge feather is subtle
  • no bright halo around hair
  • skin temperature belongs in the new environment
  • feet or torso are not cropped accidentally
  • eye line still points into usable composition space
  • graphics behind the speaker remain understandable even when partially occluded

Do not use a heavy glow to hide poor segmentation.

Creative QA

Hard-fail when:

  • the alpha edge chatters frame to frame
  • full mode is not actually full frame
  • the presenter blocks the information the layout was meant to reveal
  • captions drop behind the cutout
  • background and presenter lighting feel unrelated
  • transitions create a visible double speaker
  • PiP becomes so small that facial expression stops reading

What I learned the hard way

  • A technically clean mask can still feel fake if lighting and scale disagree.
  • Background change and presenter movement need sequencing.
  • Cutout layouts work best when the freed space has a clear information job.
  • Preserving the original frame is often better than forcing segmentation into every talking-head scene.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Speaker Cutout AI skill do?

Isolate a talking-head presenter for backdrop replacement, picture-in-picture layouts, and depth-stacked motion graphics. Plans full and PiP geometry, validates timeline windows, and preserves a strict foreground hierarchy. Use when someone says "speaker cutout", "cut me out of the video", "put graphics behind me", "talking head PIP", "swap background", or "person layer".

Why use Speaker Cutout on TypingMind?

Because you install it once and use it with any model. Speaker Cutout is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Speaker Cutout in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/imMamdouhaboammar/motion-graphics-skills/tree/main/skills/speaker-cutout. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Speaker Cutout?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Speaker Cutout?

As many as you like. As long as a model supports skills, you can use Speaker Cutout with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Speaker Cutout AI skill free?

It is published on GitHub by imMamdouhaboammar. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇