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 $0.00049 $0.00528
Sonnet 5 $0.00020 $0.00211
Haiku 4.5 $0.00010 $0.00105

Measured 10d ago against content hash 2e55e3ae207b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 10d 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. 10d 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 (0 stars, last pushed 3mo ago), licensed MIT. It adds 99 tokens to every session and 1,055 once invoked, about $0.0005 per session on Opus 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

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens