Communitygithub.com

SrigadaAkshayKumar/ai-video-editor

設計編輯中的音效:在 work/audio-plan.json 的 sfx_events 中指定效果、位置與頻率,使用內建 SFX 庫(repo assets/sfx、HyperFrames 套裝、Openverse CC0 素材)以及光譜規則:次頻帶提示承載結構,人聲頻帶提示需限量使用。由 tools/mix.mjs 進行混音與音量調整。用於在任何編輯中添加或調整 SFX。

ai-video-editor 是什麼?

這是一個專為影片編輯設計的 AI 技能,核心功能是透過結構化的 JSON 規劃檔 `work/audio-plan.json` 來描述音效事件(sfx_events)。它強制執行一套基於聲學測量的嚴格規則:所有 SFX 的音量由 `tools/mix.mjs` 自動計算,不允許人工猜測增益值;並且根據頻譜將音效分為「次頻帶」(sub-band,如 sub_drop、impact)與「人聲頻帶」(vocal-band,如 pop、whoosh),前者可承載結構性轉場,後者則需嚴格限量以避免干擾語音。該技能支援 HyperFrames 內建 SFX 庫、本地 assets/sfx 目錄,並可透過 `npm run sfx -- fetch` 從 Openverse 取得 CC0 音效。主要用於 Claude Code、Cursor 等具備檔案系統存取和命令列執行能力的 AI 代理平台,使用者只需編輯 JSON 規劃檔,再執行 `npm run mix` 即可產生最終混音。

相容平台~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 秒)— 構建進入 chapter_open:起始時間 = 章節開始時間 − 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 時間窗內不得有 SFX,除了進入該章節的 riser 之外。在最終揭露臺詞上不得有 SFX — 讓臺詞乾爽落地,將提示放在之後的畫面上。
  • 預算:談話性頭像約每 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.

相關技能