Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

Telugu、ヒンディー語、英語、言語混合の字幕を生成し、Remotion の各フォーマット映像上でハイパーフレームの字幕パスとしてワード同期・スタイル適用・テキスト修正・ブラックアウト・カット接合部のチェックを行います。字幕の作成、再スタイル、修正、位置変更のすべての編集工程で使用します。

ai-video-editor とは?

このスキルは、動画編集 AI エージェント向けに設計されており、Remotion で生成された複数フォーマット(16:9、9:16)の映像に、ワード同期されたスタイリッシュな字幕を自動生成・管理します。対応言語は Telugu、ヒンディー語、英語、およびコードミックスで、`pop`(白太枠+アクセント単語バウンス)、`clean`(ダークピル型)、`karaoke`(発声に応じた明滅)の3つのスタイルを提供。`npm run captions -- <p>` で起動し、`--format`、`--style`、`--max-words`、`--position`、`--accent`、`--uppercase` などのオプションで詳細を制御します。生成された字幕は `edit-<fmt>/compositions/captions.html` に出力され、設定は `project.json` に保存されるため再実行時に維持されます。手動での HTML 編集は禁止で、テキスト修正は `work/edl.json` の `textFixes` マップ経由で行い、その後 `npm run cut` → `npm run scaffold` で反映。カードなどで画面上に既存テキストが表示される場合のブラックアウト機能も `work/visual-plan.json` の `caption_blackouts` で指定でき、`npm run verify` により各カット直後のフレームをチェックして字幕が単一センテンスの断片であることを確認します。

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

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

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

ドキュメント

captions

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

work/cleancut.words.json(既にクリーンカットタイムライン上にある)から、すべてのフォーマット(または --format で指定したフォーマットのみ)に対して edit-<fmt>/compositions/captions.html を書き出します。style、accent、uppercase は全フォーマットで共有(統一ブランドルック)、max-words と position はフォーマットごとに設定可能で、--format と一緒に指定します。すべての設定は project.json → captions に記憶されるため、フラグなしで再実行しても維持されます。スキャフォールドは既にキャプションをマウントしています(<div id="captions" … data-track-index="4">)。

デフォルト:両フォーマットとも下部バンド — 16:9 5単語、64px · 9:16 3単語、76px、y≈1348、Instagram のセーフゾーン内。Remotion グラフィックはこのバンド(remotion/src/doc/theme.ts の CAPTION_SAFE_Y)を避けるため、キャプションとグラフィックが構造的に衝突することはありません。

npm run scaffold -- <p> で work/visuals-<fmt>.mp4 へのキャプションパスが構築され、キャプションが生成されます。npm run captions だけを再実行すると、スタイルを変更できます。

スタイルの選択

コンテンツスタイルグループあたりの単語数
ショート / リール、エネルギッシュ、フックpop(白、太い輪郭、アクセントのアクティブ単語、単語バウンス)2–3
教育 / インタビュー / 長尺clean(ダークピル、アクティブ単語にアクセント)4–6
ストーリー / 落ち着いた / 音楽主導karaoke(発声に合わせて暗→白に塗りつぶし)3–5

アクセントカラー = ブリーフからのブランドカラー、それ以外は #FFD400。--uppercase は英語のみの動画に使用(インド系文字には効果なし)。

テキスト修正

生成された HTML を手動で編集しないでください。単語はソースで修正します:

  • work/edl.json に "textFixes": { "<raw word id>": "正しい単語" } を追加し、npm run cut の後に npm run scaffold(リフレッシュ)を再実行 — raw id は work/cleancut.words.json の src フィールドです。
  • よくある修正:ブランド名・人名、ASR が Telugu/Devanagari 文字で書き起こした英語単語をラテン文字にしたい場合(またはその逆)、カット後の文頭の大文字化、数字(ఇరవై → 20 :読みやすくなる場合)。

スクリプトとフォント

Telugu(Noto Sans Telugu)、Devanagari(Noto Sans Devanagari)、ラテン(Poppins)のフォントは woff2 として各 edit-<fmt>/assets/fonts/ に同梱され、index.html とキャプションテンプレートの両方で宣言されています — レンダラーはシステムフォントを持ちません。新しいフォントをどこかに追加する場合は、ローカルの woff2 を使用した独自の @font-face が必要です。そうしないと、font_family_without_font_face で lint が失敗します。

インド系言語の単語は長いため、9:16 では --max-words を ≤ 3 に保ってください。ジェネレーターはグループあたりの文字数も上限を設定します。

ブラックアウト

カードに既に単語が表示されている場合(sample_answer、読み上げ中のフルスクリーン引用など)、work/visual-plan.json に "caption_blackouts": [{ "start", "end" }] を追加し、npm run captions を再実行します。範囲内の単語は削除され、隙間があるとキャプショングループが終了するため、カードをまたぐ行は発生しません(テンプレートの「穴の前の単語 + 穴の後の単語」というゴミ行も防げます)。

接合部のチェック

npm run verify -- <p> で各カット直後のフレームを取得します。シートを読んでください:各キャプションは1つの文の実際の断片でなければなりません。異なるテイクの2つをつなぎ合わせた行は、どんなリンターも検出できないコンテンツバグです。一度に1つのキャプショングループだけが表示され、グループは短いポーズの間保持され、重なることはありません。

npm run captions でステージ完了とマークされます。

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.

関連スキル