agentleFS
fmnapolifmnapoli/video-editores/skills/texto-atras/SKILL.md

texto-atras

Skill4 starsChanged 5 days agoMITView on GitHub

Efeito "texto atrás da pessoa" — o texto aparece entre o fundo e a pessoa, que fica na frente. Usa segmentação local (rembg, MIT). Use para /texto-atras, "texto atrás de mim", "text behind subject".

  • Installs packages

The file

Files
SKILL.md

/texto-atras — texto entre o fundo e a pessoa

Siga ${CLAUDE_PLUGIN_ROOT}/docs/convencoes.md (pastas, nomes de saída, loudness, privacidade). Dependências: ${CLAUDE_PLUGIN_ROOT}/scripts/doctor.sh.

Script: ${CLAUDE_PLUGIN_ROOT}/scripts/text_behind.py.

Passos

  1. Levante: texto (curto, 1–3 palavras funciona melhor), intervalo (--start/--end, ideal 1–4s), fonte, cor, altura (--y, 0.35 = acima da cabeça/ombros).
  2. Verifique dependências: python3 -c "import rembg, PIL"; senão pip install "rembg[cpu]" pillow (com GPU NVIDIA: rembg[gpu]).
  3. Rode:
    uv run --with "rembg[cpu]" --with pillow python "${CLAUDE_PLUGIN_ROOT}/scripts/text_behind.py" IN.mp4 IN_texto_atras.mp4 --text "TEXTO" \
      --start 0 --end 3 --font /caminho/Montserrat-Black.ttf --size 0.22 --color "#FFFFFF" --y 0.35
  4. Avise do tempo: CPU processa ~2–6 frames/s (3s a 30fps ≈ 15–45s). Na primeira execução o rembg baixa o modelo (~170 MB).
  5. Gere /prova do trecho e mostre ao usuário. Se a borda da pessoa "tremer", sugira trecho com fundo mais limpo ou a variante abaixo.

Qualidade

  • Rascunho: padrão --model u2net_human_seg.
  • Final: --model birefnet-portrait (BiRefNet, MIT) — recorte de cabelo e bordas muito melhor; use com GPU (rembg[gpu]) ou em trechos curtos.

Variante de qualidade máxima (GPU)

Para recortes mais estáveis em cabelo e movimento rápido, use SAM 2 (Apache 2.0) ou RobustVideoMatting para gerar a máscara, e reaproveite a mesma composição (fundo → texto → pessoa).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.