Communitygithub.com

motion-captions

Remotionを使用してInstagram Reels、TikTok、YouTube Shorts向けのアニメーションキャプション/字幕を生成します。BoldPop、カラオケ、エディトリアルミックスなど6つのトレンディなスタイルを提供します。

motion-captions とは?

motion-captionsは、Remotionフレームワーク上で動作するアニメーションキャプション生成スキルです。Instagram Reels、TikTok、YouTube Shorts向けに最適化された6種類のスタイル(BoldPop、カラオケ、エディトリアルミックス、SerifMix、BoxLine、Minimal)を提供し、各スタイルは異なる動画コンテンツや雰囲気に合わせて設計されています。特徴的なスタイルとして、BoldPopはHormoziスタイルの大文字・ストローク・キーワードカラー・単語ポップを採用し、カラオケスタイルではアクティブワードが拡大するエフェクトを実現します。タイミング処理ではWhisperの単語タイムスタンプを活用し、低リソース言語(例:ウズベク語)ではffmpegのsilencedetectを用いた無音検出による推定をサポート。ページネーション機能では1行あたり24文字・4単語の制限を設け、0.6秒以上の表示時間を確保します。また、安全ゾーン(y 285–1248、x 80–910)の設定、キーワードカラーのコントラスト比4.5:1以上、既存の画面上ヘッドラインとの重複を避けるルールなど、プロフェッショナルな品質管理を徹底しています。

対応✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/bahodirbuxorov/claude-motion-skills/tree/HEAD/skills/motion-captions

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Captions — 6 animated subtitle styles (Remotion)

Code: starter/src/captions/Captions.tsx (components + wordsFromPhrase, paginatePhrases, paginate) and CaptionsDemo.tsx in claude-motion-skills. Pick ONE caption style per video and keep it for the whole reel.

Pick a style

StyleLooks likeBest onUse for
BoldPopUPPERCASE heavy sans, 6 px dark stroke + drop shadow, keyword in accent, each word pops (spring d11 s260, scale 0.7→1)talking head, busy videoenergetic tips, sales, hooks
Karaokewhole page small; spoken word 104 px in accent, past words white, future words 55 %anyfast speech, retention
Editorialsmall sans words inline + keyword as a giant serif-italic quote on its own linedark / photostorytelling, statements
SerifMixcalm grotesk; keyword switches to serif italic; words fade from 25 %dark / cinematicpremium, emotional
BoxLinewhite rounded plate, active word and keyword on accent platelight groundsproduct, education (most readable)
Minimallowercase medium, one line, soft fadeaesthetic footagevlogs, calm content

Timing (the part that makes or breaks captions)

  1. Word timestamps from ASR: Whisper with word_timestamps=True (or @remotion/openai-whisper / @remotion/install-whisper-cpp). Check them — ±0.15 s max drift.
  2. Low-resource languages (where ASR words are unreliable, e.g. Uzbek): measure phrase start/end with ffmpeg -af silencedetect=noise=-34dB:d=0.15, then wordsFromPhrase("text with *keyword*", start, end) spreads words by character length. Mark the keyword with *word*.
  3. Pages: prefer paginatePhrases(phrases, 24, 4) — pages never mix two sentences and each fits one plate line (≤ 24 chars incl. spaces, ≤ 4 words). paginate(words, n) (fixed word count) only for quick tests. A page stays ≥ 0.6 s; never split a number from its unit.
    • A lone dash/punctuation token (—, …) is glued to the previous word by wordsFromPhrase, so it never gets its own highlight.
  4. Captions must say exactly what the voice says (if TTS skipped a word, drop it from captions too).

Layout rules

  • Safe zone: text inside y 285–1248, x 80–910 (1080×1920). Default caption band y 1020–1240; move up when the lower third holds a product.
  • One keyword per page in the accent colour (never red text for keywords — low contrast); contrast ≥ 4.5:1 with stroke/plate/shadow as needed.
  • When NOT to caption: if the big on-screen headline already says the voice line (kinetic-type styles like Aura or News Flash), skip captions for that scene — never show the same sentence three times (headline + caption + voice).
  • Fonts must contain your language's glyphs (Uzbek ʻ ʼ: Inter, Inter Tight, Playfair Display ✓).

Quality checklist

  • Contact sheet of the whole video: no caption over faces/products, no page flicker, keyword colour consistent.
  • Scrub the 3 fastest sentences: caption ↔ voice drift ≤ 0.15 s.
  • Watch once muted on a phone: can a viewer follow the whole story from captions alone?

Individual skills in this repo

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

motion-aura-type

Remotion motion style "Aura Type" (soft gradient aura + minimal kinetic typography): white ground, 2–3 huge blurred colour blobs drifting slowly, words resolving one by one from blur to sharp, one serif-italic word in colour. For hooks, quotes, relatable one-liners, statements. Triggers: "aura gradient", "blur text animation", "kinetic typography", "quote reel", "minimal text reel".

motion-bento

Remotion motion style "Bento" (bento-grid feature board) for Instagram Reels and carousels: light ground, rounded tiles of different sizes in a tight grid, one fact per tile (big number, icon, 3D object, short label), one hero tile in brand colour; tiles pop in on a stagger, numbers count up. For product features, "what''s inside", dashboards, results. Triggers: "bento grid", "feature grid animation", "app features reel", "dashboard reel".

motion-data-bars

Remotion motion style "Data Bars" (editorial finance infographic) for Instagram Reels and carousels: cream ground, numbers as the hero, tall bars growing on springs, monotone percentage counters, one highlighted "answer" bar, grotesk headline with one serif-italic word, "sample numbers" tag. For data stories, breakdowns, comparisons, salary/tax/finance explainers. Triggers: "infographic reel", "bar chart animation", "data visualization video", "finance reel".

motion-glass-object

Remotion motion style "Glass & Object" for Instagram Reels, TikTok and YouTube Shorts: one glossy/puffy 3D object hero (Google Flow / Nano Banana), light studio ground, frosted glass cards, floating pill tags, lime highlight box, spreadsheet-cell selection signature, spring animations. Use for product, fintech and SaaS reels, explainers and hooks. Triggers: "glass object", "3D object reel", "fintech reel", "glassmorphism motion", "puffy 3D".

motion-newsflash

Remotion motion style "News Flash" (newspaper headline + hand-drawn annotations) for Instagram Reels: newsprint ground, masthead rule, huge condensed headline, yellow brush highlight that paints in, red marker circle and arrow that draw on, faint text columns, source on screen. For tax news, law changes, deadlines, announcements. Triggers: "newspaper style", "news reel", "breaking news animation", "deadline reminder", "hand drawn annotation".

motion-swiss-grid

Remotion motion style "Swiss Grid" (International Typographic Style revival): paper ground, visible column grid that draws in, big circle + square primitives in brand colours, one giant grotesk word, narrow mono text columns, numbers as graphic elements. For series covers, rules, checklists, step-by-step reels. Triggers: "swiss design", "grid poster", "bauhaus motion", "minimal poster animation", "series cover".

関連スキル