Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

BGMの選択、取得、配置 — Openverse検索(商用利用可能なCC、またはCC0のみ)、work/audio-plan.jsonへのmusic_cues(フェード、オフセット、意図的な無音ギャップ付き)、tools/mix.mjsによる各BGMの調整(ナレーションの下に測定済みの一定レベルに設定、サイドチェインダッキング)。BGMの追加、入れ替え、レベルの再調整時に使用。

ai-video-editor とは?

このスキルは、AIビデオエディターにおけるBGM(背景音楽)のワークフローを自動化します。Openverse(CC0または商用利用可能なCCライセンスに限定)から楽曲を検索し、取得し、`work/audio-plan.json`に`music_cues`として配置します。各BGMは`tools/mix.mjs`によって自動処理され、`dynaudnorm`で音量のばらつきを均一にし、ナレーションに対して測定済みの一定レベル(標準で9 dB下)に設定され、さらにサイドチェインダッキングによってナレーションと重なる部分を自動で下げます。`gain_rel`パラメータで微調整が可能で、結果は`work/levels.json`に記録されます。主にClaude Codeや類似のAIエージェント環境で使用され、ビデオ編集において一貫性のあるプロフェッショナルなBGM配置を実現します。

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

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

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

ドキュメント

bgm — work/audio-plan.json → music_cues

{ "music_cues": [
    { "start": 0.0, "end": 46.2, "file": "assets/music/cold-tension.mp3", "gain_rel": 1.0,
      "fade_in": 0.8, "fade_out": 2.5, "music_start": 12.0, "mood": "cold tension" },
    { "start": 52.0, "end": 180.0, "file": "assets/music/cold-tension.mp3", "music_start": 60, "gain_rel": 0.9, "mood": "explainer bed" } ] }

レベルは測定する — 手動調整は不要

tools/mix.mjsは各BGMをdynaudnormで処理し(トラック内の15 dBの変動を平坦化 — 「最初は目立たず最後に支配的になる」原因)、ナレーションより9 dB下(平均対平均;20 dB下だと「無視できる」、6.5 dB下だと「支配的」)に配置し、その後ボイスに対してサイドチェインダッキングを適用します。gain_relはそのハウスレベルを中心に調整します(1.0 = ハウスレベル;ピークで強調したいBGMは1.2〜1.3;控えめにするには0.8)。測定値はwork/levels.jsonに記録されます。

ハウスルール(ユーザー、2026-10-04)

  • 音楽はプロンプトで要求された場合のみ(ユーザーがプロンプトの最初に指示した場合)。デフォルト:なし。
  • CC0のみ — 常に--cc0を指定。これらの動画はYouTubeにアップロードされます:CC BY / BY-SAは不可、属性文字列不要、クレームリスクなし(同じ理由でストック素材もPexels/Pixabayのみ)。CC0で利用可能なものがなければその旨を伝え、音楽なしで提供。決してBYにフォールバックしないこと。
  • 効果音はBGMを突き抜ける必要があります。 トークヘッドサンプルでは、BGM(ボイスより9 dB下)が効果音(約14 dB下)を埋もれさせました。音楽がある場合はBGMをさらに低く設定し、各キュー周辺でディップさせてください。work/levels.jsonを確認すること。

音楽の選択

  1. 概要/方向性からムードを判断:テク/チュートリアル → corporate、technology、lofi、minimal;モチベーション → upbeat、inspiring;ブログ → acoustic、chill;ストーリー → piano、cinematic;ハイプ → energetic、electronic;インド風 → indian、sitar、tabla。
  2. npm run bgm -- search <p> "upbeat corporate" [--min 60] [--cc0] — 1~3語の汎用的な単語。デフォルトのライセンスは商用利用を許可(CC0/BY/BY-SA;BYにはクレジット表記が必要);--cc0 = 属性不要、検索プールは狭くなる(--source jamendo,ccmixter,freesoundを試す)。
  3. タイトルは当てにならない。 テンプレートでは「温かいノスタルジー」にビニールのパチパチ音、「低い緊張感」にアラームパッチがヒットした。タイトル + タグ + 長さで選び、テクスチャ/フィールドレコーディングは除外、インストのみ。
  4. npm run bgm -- get <p> <id> --name slug → assets/music/slug.mp3(+ クレジット)。
  5. 各キューを確認:トラック長 ≥ music_start + (end − start)、そうでなければ途中で切れる。

配置

  • 一度に1つのBGM:キューは重ならない;ムード変更時は1つを終了し、同時に次のを開始(フェードはクロス)。長い動画全体で3〜5の異なるムード;ジャンクを返すムードを追加するのではなく、別のmusic_startで同じBGMを再利用する。
  • BGMの変更はイベントとして扱う:章の見出しではなく、展開の転換点に配置する。
  • 意図的な無音を1つ残す:最も重要な1行の下にはBGMを配置しない — 最も強い強調方法。そのギャップに向けてfade_outを0.4秒に。それ以外のフェードはイン0.6〜1.2秒、アウト2〜3秒(落ち着いたパッセージの下にBGMが忍び込む場合はイン2〜3秒)。
  • トークヘッド:1つのBGMで十分なことが多い;密度の高い速い話し方ではgain_rel 0.8が可能。
  • テンプレートの最後のドキュメンタリーでは、視聴者が「気が散る」と指摘した後、音楽を完全に削除した — 存在感も重要で、レベルだけではない。ユーザーがBGMが多すぎると言ったら、削除を提案する。

クレジット

npm run finalizeはoutput/credits.mdを書き出します;CC BY / BY-SAの行は必ずYouTubeの説明文とInstagramのキャプションに記載する必要があります — その旨を伝えてください。BGMは聞こえません:ユーザーに聴いてもらうよう依頼してください。

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

Generate and style word-synced captions (Telugu, Hindi, English, code-mixed) as the HyperFrames captions pass over each format's Remotion picture, fix caption text, black captions out under on-screen text, and check caption content at every cut join. Use when creating, restyling, correcting or repositioning captions in any edit.

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.

関連スキル