Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

選擇、擷取並為影片編輯放置背景音樂 — 使用 Openverse 搜尋(商業用 CC 或僅 CC0),在 work/audio-plan.json 中加入附淡入淡出、偏移與刻意靜音間隔的 music_cues;tools/mix.mjs 會調整每段襯底音樂,將其設定在語音下一個測量好的 House 音量,並進行側鏈壓縮。

ai-video-editor 是什麼?

此技能可為影片編輯自動化背景音樂(BGM)的選擇、擷取與混音流程。它整合了 Openverse 搜尋功能,支援僅限 CC0 或商業用 CC 授權的音樂,確保內容創作者能安全地用於 YouTube 等平台。系統透過 tools/mix.mjs 自動執行專業級音訊處理:將每段襯底音樂經過動態歸一化(dynaudnorm)以消除音量波動,再將其均方根(RMS)音量設定在旁白下方 9 dB,並對人聲進行側鏈壓縮(sidechain ducking),讓音樂在語音出現時自動降低音量。使用者可透過 gain_rel 參數微調襯底音樂的相對音量,並在 work/levels.json 中查看實際測量數值。此技能支援 Claude Code 等 AI 代理,遵循「預設無音樂、僅在提示要求時添加」、「CC0 授權優先」、「每一段襯底音樂不重疊」、「在最重要的一句話刻意留白」等嚴謹規則,適合需要高品質、自動化背景音樂管理的影片編輯專案。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

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 會將每段襯底音樂透過 dynaudnorm 處理(壓平音軌本身 15 dB 的波動 — 這正是「開頭幾乎聽不見,結尾卻太突出」的原因),將其設定在旁白下方 9 dB(均值對均值;20 dB 讀作「微不足道」,6.5 dB 讀作「主導」),然後對語音進行側鏈壓縮。gain_rel 會圍繞這個基準音量進行微調(1.0 = 基準音量;1.2-1.3 用於需要在高潮突出的襯底音樂;0.8 用於退居幕後)。測量後的數值會記錄在 work/levels.json 中。

使用原則(使用者,2026-10-04)

  • 僅在提示要求音樂時才添加音樂(使用者在提示開頭明確表示)。預設:無音樂。
  • 僅限 CC0 — 始終使用 --cc0。這些影片會上傳到 YouTube:不接受 CC BY / BY-SA,不接受署名字串,不承擔版權索賠風險(與素材僅來自 Pexels/Pixabay 的原因相同)。如果找不到可用的 CC0 音樂 → 直接說明並提供無音樂的選項;絕不降級使用 BY 授權。
  • 音效(SFX)必須穿透襯底音樂。 在 talking-head-sample 案例中,襯底音樂(-9 dB)蓋過了音效(約 -14 dB)。若有音樂,請將襯底音樂的音量調得更低,並在每個音效提示處降低襯底音樂音量;請檢查 work/levels.json。

選擇音樂

  1. 根據簡報/方向決定情緒:科技/教學 → corporate、technology、lofi、minimal;勵志 → upbeat、inspiring;Vlog → 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),否則音樂會提前結束。

放置規則

  • 一次只能有一段襯底音樂:提示不重疊;當情緒變化時,結束一段並同時開始下一段(淡入淡出交叉)。整個長影片使用 3-5 種不同的情緒;重複使用同一段襯底音樂但指定不同的 music_start,而不是新增一個找不到合適音樂的情緒。
  • 襯底音樂的變化應作為一個事件:放在轉折點,而不是章節標題處。
  • 刻意留一段靜音:在最重要的一句話下方不安裝任何襯底音樂 — 這是最強烈的強調方式。fade_out 應在該靜音間隔開始後 0.4 秒內完成;其餘情況下,淡入 0.6-1.2 秒,淡出 2-3 秒(若襯底音樂在平靜段落中悄悄出現,淡入可達 2-3 秒)。
  • 採訪/旁白:一段襯底音樂通常就夠了;密集快速的說話可以將 gain_rel 設為 0.8。
  • 範本中的最後一個紀錄片在觀眾反映「干擾」後完全移除了音樂 — 問題在於存在感,而不只是音量。如果使用者認為襯底音樂太突兀,請提供移除的選項。

作者資訊

npm run finalize 會寫出 output/credits.md;CC BY / BY-SA 的資訊必須放入 YouTube 說明和 Instagram 標題 — 請明確告知。你無法聽到襯底音樂的效果:請要求使用者親自聆聽。

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.

相關技能