Media-Editor-MCP: Skill for Claude Code

.claude/skills/pp-erase-text/SKILL.md

pp-erase-text is a skill for Claude Code from nguyenph88/Media-Editor-MCP. It costs 99 tokens per session (1,055 once invoked), scanned A, original, MIT.

A video-cleanup tool that removes fixed captions or subtitles burned into the picture and saves a clean copy.

In plain words
What is it for?
Use it to erase static captions from rendered videos. Preview the detected text mask, adjust it if needed, then process the full video.
Why use it?
It removes text that is part of the video image and cannot be turned off like a normal subtitle track. The audio stays unchanged, and Premiere is not required.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is nguyenph88/Media-Editor-MCP's own configuration. It tells Claude Code how to work on Media-Editor-MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Media-Editor-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nguyenph88/Media-Editor-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nguyenph88/Media-Editor-MCP/main/.claude/skills/pp-erase-text/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nguyenph88/Media-Editor-MCP

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pp-erase-text

README.md
[![agentmods](https://agentmods.dev/badge/skills/nguyenph88/media-editor-mcp/pp-erase-text/github.svg)](https://agentmods.dev/skills/nguyenph88/media-editor-mcp/pp-erase-text)
Your own site
<a href="https://agentmods.dev/skills/nguyenph88/media-editor-mcp/pp-erase-text"><img src="https://agentmods.dev/badge/skills/nguyenph88/media-editor-mcp/pp-erase-text/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pp-erase-text

Your own site · 80×15
<a href="https://agentmods.dev/skills/nguyenph88/media-editor-mcp/pp-erase-text"><img src="https://agentmods.dev/badge/skills/nguyenph88/media-editor-mcp/pp-erase-text.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,055 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.01055
Opus 5.5 $0.00040 $0.00422
Sonnet 5.5 $0.00020 $0.00211
Haiku 4.5 $0.00010 $0.00105

Measured 2mo ago against content hash 2e55e3ae207b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pp-erase-text scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/pp-erase-text/SKILL.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Erase burned-in captions from a video

Remove static burned-in text (captions/subtitles) from a rendered video and write a clean copy. Pure OpenCV + ffmpeg — no Premiere, no MCP plugin. Audio is copied untouched.

Wraps the standalone script packages/media-analysis/erase_text.py.

How it works (so you tune the right knob)

A caption is a static overlay that persists across a whole shot while the background moves. The script:

  1. splits the video into shots (PySceneDetect),
  2. per shot, marks pixels that are white-ish AND persist across ≥--persist fraction of the shot's frames → one stable mask,
  3. inpaints every frame of that shot with that single mask.

This catches the full caption (even faint/fading frames), rejects moving bright background (whitewater, sky, buildings) via persistence + a glyph-shape filter, and avoids flicker because the mask is constant per shot.

How to run

From packages/media-analysis/ using its venv python: ./.venv/Scripts/python.exe erase_text.py "<path>" [flags]

Key flags:

  • --preview SEC — write a before | mask-overlay | result PNG for the shot at SEC, no video. Always do this first.
  • --out FILE — default <input>_clean.mp4.
  • --band TOP BOT — vertical search region as height fractions (default 0.55 0.88). Move it if captions sit elsewhere.
  • --persist F — fraction of a shot's frames a pixel must be white to count as text (default 0.5). Lower if a caption shows only briefly within a longer shot.
  • --v-min / --s-max — brightness/saturation thresholds for "white" text (defaults 190 / 60).
  • --dilate / --radius — mask growth + inpaint radius (defaults 5 / 5). Bump if residue/edges remain; lower if smudge over busy backgrounds.
  • --max-h / --max-area — drop persistent blobs too tall/large to be text (defaults 0.06 / 0.006).
  • --method telea|ns — inpaint algorithm (default telea).

Workflow

  1. Find a captioned moment and run --preview SEC. Read the PNG: the red mask overlay should hug the text and NOT cover background (water/sky/buildings). The right panel shows the inpaint result.
    • For confidence, also generate a full-res crop of the text band (original above erased) — thumbnails hide residue.
  2. Tune until the mask is clean across a few representative shots (busy + smooth backgrounds): adjust --band, --persist, --v-min/--s-max, --dilate. Cheap — preview is one frame.
  3. Full pass — run without --preview. It logs per-shot mask coverage (and flags shots where no caption was found → passed through untouched). Then encodes.
  4. Validate before telling the user it's openable: the output is MP4 with +faststart, so a partial/in-progress file is unplayable (DirectShow "MEDIATYPE_Stream / Unknown" error). Wait for the DONE log, then decode-check with ffmpeg -v error -i OUT -f null - and extract a captioned frame to confirm text is gone.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 51 lines · 99 tokens per session scan A 2e55e3ae207b

Subscribe to this mod's changes

pp-erase-text is a skill published in the GitHub repository nguyenph88/Media-Editor-MCP (1 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 1,055 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pp-erase-text compared with skills from other repositories

pp-erase-text next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pp-erase-textnguyenph88/Media-Editor-MCPSkill15mo agoMITA99Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill80ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill136ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill196ktodayMITA53Claude Code, Codex