subtitles
БесплатноЗапускает вложенные скриптыНе проверенBurn timed subtitles onto a finished video or configure Whisper-timed caption burning during faceless-video assembly. Takes video/audio generation jobs or a…
от openai★ 8 494 звезды на GitHubОб этом скилле
Subtitles Skill
Video in → the same video with burned-in captions out. Everything about caption timing, wording, sizing and look lives here, so workflows call this skill instead of re-implementing captions.
Work Mode routes
Choose the first applicable route:
- Faceless-channel assembly: when the caller still has completed per-block video
and narration result URLs, pass
--subs clean|paper|boldto${HF_WORKFLOWS}/faceless-channel-video/scripts/finish_video.shinsidesandbox_exec. It transcribes and burns while finishing the sandbox cut. - Finished sandbox video: use the preinstalled Whisper and burner pipeline below.
- Finished remote video: download it inside
sandbox_exec, then use route 2.
Do not call legacy AskUserQuestion. If the look is missing, apply the defaults in
“Picking the look”; ask in normal chat only when the caller explicitly wants a choice.
Inputs / outputs
Input (required): the finished video file.
Input (optional but recommended): the authored narration text — the exact
lines/phrases that were spoken (e.g. a script_manifest.json with
blocks[].vo_line or beats[].phrase, or a plain list). When present, Whisper is
used ONLY as the word clock and every transcribed token is replaced with the
authored wording, so brand names, numbers and foreign words are spelled the way
the script wrote them.
Input (optional): the look — paper | bold | clean (default clean).
Output: one video file with captions burned in (replaces the deliverable) plus
the generated .srt next to it.
The pipeline (three commands, in order)
- Timings — Whisper, always.
Word-level timestamps, grouped into short captions. Defaults already enforce the readable size: ≤3 words / ≤15 chars per caption (sandbox_exec({ command:"python3 ${HF_WORKFLOWS}/faceless-channel-video/scripts/subtitles/audio_to_captions.py <video-or-audio> --srt caps.srt --json words.json" })--max-words,--max-chars,--max-gapto tune). Backends: OpenAI STT when a key is in env (VOICE_TOOLS_OPENAI_KEY/OPENAI_API_KEY), otherwise localfaster-whisper.faster-whisperis preinstalled in the Higgsfield sandbox. If the Phase-0 preflight cannot import it, deliver the video UNSUBBED and say so plainly; never install packages or switch to a client-local runtime. - Authored wording (only when the script text was provided): replace the
transcribed words in
caps.srtwith the authored lines, keeping Whisper's timings. Never re-time from the script. - Burn — pick ONE look:
paper/bold(Pillow + numpy):python3 ${HF_WORKFLOWS}/faceless-channel-video/scripts/subtitles/subtitle_paper_burn.py --in video.mp4 --srt caps.srt \ --out final_subbed.mp4 --style paper|bold [--font-key caveat|patrick|marker|montserrat|anton]paper= torn cream paper scrap with deckled edges, fiber grain, soft shadow, dark handwritten text.bold= ALL-CAPS white with a thick black stroke, no plate, ONE fitted font size for the whole video, max 2 balanced lines, bottom-anchored inside platform safe zones (portrait follows the IG Reels spec: bottom 16.7% H, sides 11% W; landscape 17% / 7.5%). Both hold a caption until the next one appears while speech is continuous (--bridge), and let it die--tailseconds after its own speech across a real pause. Text auto-fits the label (--maxw-frac), shrinking the font rather than spilling.clean(ffmpeg + libass only — no Pillow, use when deps are thin):
Slim white CAPS + thin black outline (defaults outline 2 / shadow 1), tiny, bottom ~12%, no box, no plate. Uppercasing is Unicode-correct (python3).bash ${HF_WORKFLOWS}/faceless-channel-video/scripts/subtitles/burn_caps_clean.sh --in video.mp4 --srt caps.srt --out final_subbed.mp4
- Replace the deliverable:
mv final_subbed.mp4 <original name>— exactly ONE video remains. Keep the.srt.
Hard rules
- Timings come ONLY from Whisper on the final audio. Never estimate from the script, never time per phrase by generating. This holds even if the caller says "time them from the script" — the script may supply WORDS, never TIMES.
- Captions stay small and out of the way. ONE short line, ≤3 words / ≤15
chars, bottom of frame, never covering the subject, never a multi-line block
filling the picture.
cleankeeps a slim outline;paper/boldkeep their own tested geometry. - Styling requests map to FLAGS, within these bounds — size and margin
nudges, font choice, style swap. A request that breaks readability (giant
text, mid-frame captions,
--marginv≥ 90 onclean) is declined in one line with what can be done instead. No animations, no emoji, no karaoke. - Never block delivery on captions. Whisper unavailable after the allowed install attempt → hand
Установить subtitles в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл subtitles?
Burn timed subtitles onto a finished video or configure Whisper-timed caption burning during faceless-video assembly. Takes video/audio generation jobs or a local finished video, optionally with authored narration text, and returns a captioned video or the exact backend subtitle configuration. Timings always come from Whisper on the video's own audio — never estimated. THREE looks: `paper` (torn cream paper label, handwritten ink), `bold` (UGC ALL-CAPS, white with black stroke, platform safe zones), `clean` (slim white CAPS, no plate, tiny at the bottom — no Pillow needed). Use when: adding/burning subtitles or captions to an existing video, restyling captions, or when a production workflow needs its finished cut subtitled. NOT for: generating the video, translating speech, or live/soft subtitle tracks (this burns them into the picture).
Как установить скилл subtitles?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл subtitles запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub