Communitygithub.com

editor-de-legendas-ia

Gere e estilize legendas sincronizadas com as palavras (telugu, hindi, inglês, código misto) à medida que as legendas do HyperFrames passam sobre a imagem Remotion de cada formato, corrija o texto das legendas, escureça legendas sob o texto na tela e verifique o conteúdo das legendas em cada junção de corte. Use ao criar, reestilizar, corrigir ou reposicionar legendas em qualquer edição.

O que é editor-de-legendas-ia?

Esta skill automatiza a geração e estilização de legendas sincronizadas com a fala para vídeos editados com Remotion, suportando telugu, hindi, inglês e mistura de código. Ela lê um arquivo de palavras já segmentadas no timeline limpo (`work/cleancut.words.json`) e produz um arquivo HTML de legendas (`captions.html`) para cada formato de vídeo (como 16:9 e 9:16), com estilos visuais que incluem pop (para conteúdo energético), clean (educacional) e karaoke (calmo/musical). A skill também gerencia correções de texto, evitando edições manuais no HTML gerado, e permite escurecer legendas quando o texto já está visível na tela (por exemplo, em cartões com respostas). Ela oferece verificações de qualidade, garantindo que cada legenda corresponda a um fragmento real de uma única frase, sem sobreposições ou misturas de tomadas diferentes. É útil para editores e desenvolvedores que criam conteúdo multilíngue e desejam legendas precisas, estilizadas e sem colisões com outros elementos visuais.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SrigadaAkshayKumar/ai-video-editor/tree/HEAD/.claude/skills/captions

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

legendas

npm run captions -- <p> [--format 9:16] [--style pop|clean|karaoke] [--max-words N] [--position bottom|middle] [--accent "#hex"] [--uppercase]

Escreve edit-<fmt>/compositions/captions.html para cada formato (ou apenas --format) a partir de work/cleancut.words.json (já na timeline limpa). style, accent e uppercase são compartilhados por todos os formatos (um visual de marca único); max-words e position são por formato — passe-os com --format. Tudo é lembrado em project.json → captions, então reexecutar sem flags mantém as configurações. O scaffold já monta as legendas (<div id="captions" … data-track-index="4">).

Padrões: faixa inferior em ambos os formatos — 16:9 5 palavras, 64px · 9:16 3 palavras, 76px em y≈1348, dentro da zona segura do Instagram. Os gráficos Remotion mantêm-se exatamente fora dessa faixa (CAPTION_SAFE_Y em remotion/src/doc/theme.ts), então legendas e gráficos nunca colidem por construção.

npm run scaffold -- <p> constrói a passagem de legendas sobre work/visuals-<fmt>.mp4 e gera as legendas; execute npm run captions novamente para reestilizar.

Escolhendo um estilo

ConteúdoEstiloPalavras/grupo
Shorts / reels, energéticos, ganchospop (branco, contorno grosso, palavra ativa no acento, salto da palavra)2–3
Educacional / entrevista / formato longoclean (pílula escura, acento na palavra ativa)4–6
História / calmo / guiado por músicakaraoke (escuro → preenchimento branco conforme as palavras são faladas)3–5

Acento = a cor da marca do briefing, senão #FFD400. Use --uppercase apenas para vídeos somente em inglês (sem efeito em scripts índicos).

Correções de texto

Nunca edite manualmente o HTML gerado. Corrija palavras na fonte:

  • Adicione "textFixes": { "<id da palavra bruta>": "Correto" } a work/edl.json e execute novamente npm run cut e depois npm run scaffold (atualizar) — os ids brutos são o campo src em work/cleancut.words.json.
  • Correções comuns: nomes de marcas/pessoas, palavras em inglês que o ASR escreveu em escrita telugu/devanágari quando o usuário deseja em latim (ou vice-versa), capitalização no início de uma frase após um corte, números (ఇరవై → 20 quando lê melhor).

Scripts e fontes

Fontes Telugu (Noto Sans Telugu), Devanagari (Noto Sans Devanagari) e Latina (Poppins) são fornecidas como woff2 em cada edit-<fmt>/assets/fonts/ e são declaradas tanto em index.html quanto no template de legendas — o renderizador não tem fontes do sistema. Se você adicionar uma nova fonte em qualquer lugar, ela precisa de seu próprio @font-face com um woff2 local, ou a verificação falha com font_family_without_font_face.

Palavras índicas são longas: em 9:16 mantenha --max-words ≤ 3; o gerador também limita caracteres por grupo.

Escurecimentos

Quando um cartão já mostra as palavras (sample_answer, uma citação em tela cheia sendo lida), adicione "caption_blackouts": [{ "start", "end" }] a work/visual-plan.json e execute novamente npm run captions. As palavras dentro do intervalo são descartadas e qualquer lacuna encerra um grupo de legendas, de modo que nenhuma linha abrange o cartão (evitando a linha de lixo "palavra antes da lacuna + palavra depois dela" do template).

Verifique as junções

npm run verify -- <p> captura um quadro imediatamente após cada corte. Leia a planilha: cada legenda deve ser um fragmento real de uma frase. Uma mistura de duas tomadas diferentes em uma linha é um bug de conteúdo que nenhum linter detecta. Um grupo de legendas é visível por vez; grupos se mantêm através de pausas curtas e nunca se sobrepõem.

npm run captions marca o estágio como concluído.

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

SrigadaAkshayKumar/ai-video-editor

Turn a finished AI-edits video (projects/<p>, or several parts of one long video) into YouTube Shorts. Reuses the edit's word timestamps, reads the whole transcript, picks self-contained dialog moments, adds text hooks + comment prompts, renders 9:16 clips with Remotion. Use when the user asks to clip/make shorts from an edited project or a long video.

SrigadaAkshayKumar/ai-video-editor

Choose, fetch and place background music for an edit — Openverse search (commercial-use CC, or CC0-only), music_cues in work/audio-plan.json with fades, offsets and a deliberate silence gap; tools/mix.mjs conditions every bed, sets it to one measured house level under the voice and sidechain-ducks it. Use when adding, swapping or re-levelling music.

SrigadaAkshayKumar/ai-video-editor

Editorial rules for turning a raw talking video or voiceover into a clean cut — removing retakes, repetitions, false starts, stutters, fillers, mispronounced words, contradictions/inconsistencies, off-script chatter and dead air — by writing work/edl.json for tools/cut.mjs. Telugu, Hindi, English and code-mixed speech. Use for stage 2 of edit-video or whenever the user asks to tighten/re-cut a video.

SrigadaAkshayKumar/ai-video-editor

Turns a bare voiceover (no presenter on camera) into a finished faceless documentary/explainer for YouTube 16:9 and Instagram 9:16 — clean-cuts the narration, DIRECTS it (story spine, tension curve, hooks, involvement beats), researches the claims and screenshots the real sources, plans a scene track (stock b-roll, stills, news screenshots, pure-graphic beats) with motion graphics, designs music + SFX, renders, captions and credits it. Use when the user gives a voiceover/narration file (or says "faceless video", "make a video from this VO", "documentary").

SrigadaAkshayKumar/ai-video-editor

End-to-end editor for TALKING-HEAD videos (a person on camera) in this repo. Use when the user hands over a raw video with a speaker and wants a finished edit, or asks to continue/resume/redo any stage of an existing talking-head project — clean cut, motion graphics, b-roll, SFX, music, captions, final render, thumbnail. Delivers YouTube 16:9 and Instagram 9:16. Telugu, Hindi, English and code-mixed speech. For a voiceover with no presenter use edit-video-faceless.

SrigadaAkshayKumar/ai-video-editor

Plan the picture of an edit in work/visual-plan.json — motion graphics (28 component types across six stage layouts that dock/shrink/dim the video), b-roll cutaways from Pexels/Pixabay, camera moves, a-roll framing for 9:16 — validate it, QA it with stills in both formats, and render it with Remotion. Use for any titles, charts, stats, lower thirds, diagrams, b-roll or zooms in a talking-head or faceless edit.

SrigadaAkshayKumar/ai-video-editor

Design the sound effects of an edit in work/audio-plan.json sfx_events — which effect, where, how often — using the measured SFX library (repo assets/sfx, HyperFrames' bundled set, CC0 fetches from Openverse) and the spectral rule that sub-band cues carry structure while vocal-band cues are rationed. Mixed and levelled by tools/mix.mjs. Use when adding or adjusting SFX in any edit.

SrigadaAkshayKumar/ai-video-editor

Write the upload package for a video this repo edited — YouTube title options, description with chapters, tags, pinned comment, thumbnail text, and the Instagram Reels caption + hashtags for the 9:16 cut — optimised for whichever channel/client the user says it is for (config/brands/ profiles, only when named). Use when the user asks what to title a video, for a description, tags, chapters, "the YouTube metadata", an Instagram caption, or SEO/CTR advice on a finished render.

SrigadaAkshayKumar/ai-video-editor

Design and build a high-CTR thumbnail for a video this repo edited — hook selection, the real face frame pulled from the footage, background cut-out, type set with real fonts (Telugu/Devanagari included), the YouTube 1280x720 thumbnail and the Instagram 1080x1920 cover, an optional image-generation prompt for the background layer, and a feed-size legibility check. Use when the user asks for a thumbnail, thumbnail ideas, a cover image, or how to make the thumbnail more clickable.

Habilidades Relacionadas