Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

为视频编辑中的音效设计提供结构化方案:在 `work/audio-plan.json` 的 `sfx_events` 中指定音效、位置和频率,使用测量过的 SFX 库(仓库 assets/sfx、HyperFrames 内置集、Openverse CC0 资源)以及频谱规则,其中次频段音效承载结构,人声频段音效受限使用。通过 `tools/mix.mjs` 进行混合与电平调整。适用于任何编辑中添加或调整音效的场景。

ai-video-editor 是什么?

该技能为 AI 视频编辑器提供了一套严谨的音效设计工作流,帮助用户为短视频或解说类内容制作专业、克制的音效。其核心是一个 JSON 化的 `sfx_events` 数组,每个事件包含精确的时间点、音效名称(如 `sub_drop`、`impact`)以及添加的原因。技能强制施行“一条铁律”:用次频段音效(如 `sub_drop`、`impact`)来传递结构感(章节过渡、重点强调),而人声频段音效(如 `pop`、`click`、`ding`)必须严格控制数量,避免与旁白冲突。电平不是靠猜,而是通过 `tools/mix.mjs` 测量后自动设定——所有音效的峰值天花板和短瞬底噪都基于旁白电平自动适配。技能还内置了丰富的约束规则:同一音效不能频繁出现(间隔 4 秒以上),两个音效之间至少保留 0.35 秒间隔,每个视频仅使用 6-10 种不同的音效。它还支持通过命令行从 Openverse 拉取 CC0 音效,并自动分析其频段归属。此技能尤其适合需要高度一致性、避免音效堆砌的解说视频、教程或产品演示场景。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

sfx — work/audio-plan.json → sfx_events

{ "sfx_events": [ { "time": 19.8, "sfx": "sub_drop", "reason": "dock-in for the checklist cluster at 20.3" },
                  { "time": 24.2, "sfx": "impact", "gain": 0.8, "reason": "big_statement 'On paper, the jobs exist'" } ] }

时间点需精确。sfx 是一个名称(npm run sfx -- list [<p>] 可列出全部音效及其时长和频段信息)。 gain 只能将音效推得更低,不能提高。电平是测量出来的,而非手动选取:每个音效落在旁白下约 14 dB,带有峰值天花板、短瞬底噪和时长修剪(tools/mix.mjs,详见 work/levels.json)。切勿通过猜测增益值来“修复”电平。

一条铁律:冲击力,而非干扰

模板已测量过:对话约 81% 的能量集中在 300-3400 Hz。一个叠加在人声上的音效(whoosh、pop、click、ding)无论多轻都会与每个词争抢注意力;而一个位于人声之下的音效(sub_drop、impact、riser:此处 74-100% 低于 120 Hz)能被感知却从不掩盖语音。那种刺耳的摩擦声不是靠调低音量就能修复的——它被替换成了一个次频段音效。所以:

次频段——承载结构

  • sub_drop — 重述信号:在 dock/corner/band 集群的第一个叠加层出现前约 0.5 秒,以及集群结束时各一次。每个集群用一对,从未每张图表一个。
  • impact — 锁定高潮点:big_statement/word_swap,仅用于那约 6-8 个真正的转折点。
  • riser(1.7 秒)— 营造章节开始的铺垫:从章节开始前 1.5 秒起播。每视频 ≤4-5 次。
  • 其他:impact-bass-1/2、whoosh-cinematic(HyperFrames 内置集)。

人声频段——严格限制

  • pop、click — 集群内部的单个揭示,如 keyword_chip/annotation。许多揭示环节要保持静音。
  • ding — 清单中的一个“是”/已解决的点,最多寥寥几个。
  • whoosh — 仅用于运动(whip/flash B-roll 切入),且距离另一个 whoosh 至少 6 秒以上。
  • typing — 仅用于 term_card 或代码展示。clock_tick、glitch、reveal — 当那一刻确实对应这些效果时才使用。

需要其他音效?npm run sfx -- fetch <p> <name> ["literal query"] 可从 Openverse 拉取 CC0 单发声效;然后运行 npm run sfx -- list <p> 查看其频段,再使用。保持整个视频使用 6-10 种不同的音效。

放置规则

  • 两个音效之间间隔不得小于 0.35 秒;同一音效在约 4 秒内不得重复;没有哪个单个音效占据全部音效的三分之一以上(否则会变成一种抽搐——mix.mjs 会发出警告)。
  • 运动型音效跟随画面,强调型音效跟随含义。 每个时刻只用一个音效——绝不在同一个转场上同时使用滑动和呼啸声。
  • chapter_open 时间窗口内不允许有任何音效,除了进入它的 riser。高潮台词上不要加任何音效——让台词干落地,把音效放在之后的画面上。
  • 预算:约每 8-10 秒一个音效(人物解说),约每 4-6 秒一个音效(集群式无脸段落:蒙太奇中密集,长段平静解释时近乎静音)。如果超过一半的叠加层都被音效占据,请减少用量。

npm run mix -- <p> 会生成 work/mix.wav(当计划变化时,最终混音会自动重新合成)。 你无法直接听到——请告知用户仔细聆听音效是否落位不准或刺耳。

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

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

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.

相关技能