Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

选择和放置背景音乐用于视频编辑——通过Openverse搜索(商业使用CC或仅CC0),在work/audio-plan.json中生成music_cues,包含淡入淡出、偏移和人声静默间隙;tools/mix.mjs处理每条音轨,将其设置为比人声低9dB的标准电平,并进行侧链压缩。适用于添加、替换或重新调整音乐电平的场景。

ai-video-editor 是什么?

这是一个专注于视频编辑中背景音乐选择和处理的AI技能。它通过Openverse搜索符合商业使用许可(CC0或CC BY/BY-SA)的音乐,并生成结构化的music_cues配置,支持淡入淡出、偏移和设置静默间隙。核心功能由tools/mix.mjs脚本实现,该脚本对每条音乐音轨进行动态归一化处理,消除音轨自身的音量波动,然后将其电平固定在人声平均电平以下9dB,再通过侧链压缩使人声在音乐背景中更加突出。该技能还包含严格的许可政策:仅使用CC0许可的音乐以避免YouTube上的版权风险,并且只有当用户明确要求时才添加音乐。用户可以通过简单的CLI命令搜索、获取和管理音乐资产,并根据视频情绪选择合适风格的音轨。总体而言,它自动化了专业视频编辑中的音乐选配和混音流程,确保音频质量一致且符合发布平台的要求。

兼容平台~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(压平音轨自身15dB的波动——即“开头微不足道,结尾喧宾夺主”的原因),将其电平设置为比旁白低9dB(均值对均值;20dB听起来“微不足道”,6.5dB则“喧宾夺主”),然后对人声进行侧链压缩。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许可。
  • 音效必须穿透背景音乐。 在“说话人头”示例中,背景音乐(比人声低9dB)淹没了音效(约比人声低14dB)。有背景音乐时,将音轨电平设得更低并在每个音效提示处降低电平;检查 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.

相关技能