Communitygithub.com

raisaksham377-bot/youtube-shorts-ai-editor

AI 影片編輯管道第四步 - 音效 (SFX) 處理。分析影片節奏與旁白,提出與之同步的品味音效,並從共享、可重複使用的 SFX 庫中提取(並擴充)音效,最後渲染出混音試聽預覽。

youtube-shorts-ai-editor 是什麼?

此技能專門處理 AI 影片編輯管道中的音效 (SFX) 階段。它會讀取時間線、編輯後的逐字稿以及品牌指南(特別是第 10 節),來分析影片的視覺節奏與旁白時機。核心工作流程是「資料庫優先」,盡可能從現有的 SFX 庫(`media/library/sfx/`)中挑選符合需求的音效,只有當庫中缺乏合適選項時,才會使用 ElevenLabs Sound Effects API 生成新的音效,並將其加入庫中以供未來使用。技能會產出一個宣告式的 `sfx-plan.json` 計畫檔案,這是整個流程的真實來源。在實際混合音效之前,會有一個強制性的「使用者審核」關卡,確保音效選擇和時機符合品牌調性(要求低調、高品質、不壓過旁白)。最後,透過 `tools/mix_sfx.py` 工具進行混合,加入適量的語音閃避處理,並提供可量化的可聽度檢查(例如 RMS 差異)來驗證音效的有效性。此技能特別針對短影音格式進行了校準,因為短影音中連續旁白會掩蓋音效,因此需要更高的增益設定。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/raisaksham377-bot/youtube-shorts-ai-editor/tree/HEAD/.claude/skills/suggest-sfx

在你喜歡的 AI 中提問

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

說明文件

suggest-sfx — SFX 處理階段

管道的第四步:取得含有主剪輯及已烘培視覺節拍的影片,加上品味音效,使其與視覺節拍和旁白同步,並從共享、持續成長的 SFX 庫中提取。協作式、逐節拍地進行;使用者會審核計畫並提供意見。

與管道其他步驟的形狀相同:一個宣告式計畫 (sfx-plan.json) 是真實來源 → 一個工具使用它 (tools/mix_sfx.py) → 一個資料庫持續增長 (media/library/sfx/) → 一個強制性的「使用者審核」關卡,在進行任何混合之前。

音效品味是品牌合約 — 每次都要閱讀 brand.md §10。預設風格是冷靜/高質感 (Linear / Anthropic / Vercel 風格),以感覺為主而非刻意聽出,且始終低於人聲。不是 MrBeast 那種大聲量。

輸入(每次工作階段都先讀取這些)

  • brand.md §10 (聲音設計) — SFX 品味合約:細微性、密度、音色、音量、同步、標誌性動機、來源政策。不可協商。
  • videos/video-N/work/timeline.json — 鏡頭及其主時間軸範圍 + type (cutaway/overlay)。剪入/剪出的邊界是你的轉場 (whoosh) 候選點。
  • videos/video-N/work/edited-transcript.json — 在主時間軸上以毫秒為單位的逐詞時間。將提示與這些詞同步(例如在「砰」字上放一個爆裂音,在「自由」字上放一個鈴聲)。
  • 鏡頭來源檔 remotion/src/shots/video-N/*.tsx — 真正的視覺節拍位於 INTERNAL 動畫影格中(切換翻轉、圖片揭示、翻頁、標誌彈出)。讀取鏡頭,將其本地影格轉換為主時間軸時間:at_s = shot.master_in_s + local_frame / shot.fps。不要猜測 — 提示必須精準落在事情發生的那個影格上。
  • media/library/sfx/catalog.json + palette.json — 你所提取和增長的庫。

資料庫 (media/library/sfx/) — 持久資產

  • media/library/sfx/palette.json — 生成配方:通用、可重複使用的音效 ID + 提示詞 + 時長 + 標籤。這是庫應該包含哪些內容的真實來源。
  • media/library/sfx/catalog.json — 已存在的內容清單:每個片段包含 {id, file, category, tags, duration_s, peak_dbfs, loudness_lufs, source, model, license, prompt, used_in}。由 gen_sfx.py 寫入。
  • media/library/sfx/clips/*.mp3 — 響度標準化的片段(約 −20 LUFS,−1.5 dBFS 上限),這樣計畫中每個提示的 gain_db 才有感知上的意義。
  • 資料庫優先,始終如此。 在生成新片段之前,先重用現有片段。以通用方式命名/標記片段 (ui-toggle-on, whoosh-soft, pop-reveal),以便未來影片能重用它們 — 資料庫是持久資產,每個影片只是從中提取一次。只有真正缺少的聲音才被添加到 palette.json 並生成。(那些必須存在於 Remotion 鏡頭內部的 SFX,則改為通過 staticFile() 放入 media/library/sfx/。)

工作流程

  1. 讀取 brand §10 + 時間線 + 逐字稿 + 鏡頭來源 + 目錄。提取精確的提示時間點:對於每個候選節拍,在鏡頭中找到視覺時刻的本地影格,和/或在逐字稿中找到旁白詞,並轉換為主時間軸秒數。
  2. 若尚未確定,先與使用者討論品味決定(臨場感、密度、音效類型、來源)— 然後套用 brand §10。不要重新提問已確定的決定。
  3. 提出提示清單 — 功能優先。 對於每個節拍,思考其需要什麼(品牌 §10):動作 (whoosh) · 張力 (riser) · 強調 (impact/pop) · 卡點 (click)。為關鍵轉場、揭示和品味點擊序列打分;一個 3-4 鏡頭的點擊序列視為一個手勢。將可明確否決的鋪底音效標記為 "optional": true。為 2-3 個最大的時刻分層 (build-and-drop):在腳本化的揭示處使用 riser→impact,在剪輯點使用 whoosh→pop 使其突出 — 在計畫中,一個分層是指兩個事件在相同/相鄰的 at_s 上且效果疊加。將每個提示與視覺節拍同步,通常還要與特定的詞同步。
  4. 資料庫優先來源。 對於計畫需要的每個不同聲音,如果目錄中有合適的片段,就重用。對於缺失的,在 palette.json 中添加一個通用配方並生成:python tools/gen_sfx.py (ElevenLabs Sound Effects API → 標準化片段 → 目錄)。只在生成效果不佳時,才回退使用精心挑選的免版稅音效;無論哪種情況都要記錄 source + license。
  5. 編寫 videos/video-N/work/sfx-plan.json — 每個提示一個事件,at_s 在主時間軸上。(結構如下。)
  6. 使用者審核關卡 (強制性)。 呈現已解析的提示表 (python tools/mix_sfx.py <plan> --print),並在混合前獲得使用者的批准/意見。這與 cuts.json / 編輯計畫的關卡相同。
  7. 獲得批准後混合試聽預覽: python tools/mix_sfx.py videos/video-N/work/sfx-plan.json → videos/video-N/output/video-N-first60-sfx.mp4(或計畫中的 render.out)。使用 --preview <file> 在任何合成版本上進行混合。加入輕微的旁路側鏈壓縮 + 安全限制器。根據使用者的意見進行迭代(增益、時機、添加/刪除提示)— 重新印出、重新混合。
    • 用數字驗證可聽度,而不是靠感覺。 混合後,在每個提示視窗內,計算混合音訊與僅有人聲預覽音的 RMS 差異:一個故事關鍵的提示應增加 ≥ +4 dB,鋪底音效增加 +1-3 dB。無法聽到的輕敲聲只存在於提示表中 — 不要發布一個你尚未確認其落地的提示。
    • 瞬態峰值增益陷阱。 短打擊樂片段(敲門聲/跺腳聲/按鍵聲/卡點聲)在達到 −20 LUFS 響度目標之前,就會先碰到 −1.5 dBFS 的峰值上限,因此它們在目錄中的音量會比持續片段低約 3-5 dB。它們在計畫中的 gain_db 必須比 brand §10 表格中的建議值高出約 3-5 dB(打擊樂敲門聲/跺腳聲落在 0..+1)。上述的可聽度檢查可以揭示這個問題。
    • 短影格式校正。 在短影音近乎連續的旁白(約每秒 2.7 個詞,間隙很少)下,brand §10 的增益表全面低了 4-8 dB — 閃避功能和語音遮蔽會吃掉一切。短影音的落點應該是:轉場/whoosh −3,敘事性爆裂/衝擊 0..+3,跺腳/卡點 0..+7,分層的英雄 riser 0..+2。在短影音的計畫中從這些數值開始,而不是長片表格。
    • 完全位於連續語音下方的提示永遠無法測量到 — 接受「感覺得到但聽不到」或直接刪除它們。 短影音的點擊序列在任何增益下都測量到 +0 dB(實驗中推至 +9:結果相同)— 當語音活躍時,側鏈壓縮會完全抑制安靜的片段。將此類提示設定在合理的 +6 左右,讓它們活在詞語間隙中,或刪除它們;不要用增益去追它們(一個停頓會讓它們突然爆出)。
    • 使用緊密的視窗測量瞬態。 在 0.6 秒的 RMS 下,一個 50 毫秒的點擊會被稀釋到幾乎不存在,而且相鄰的大聲提示可能洩漏進來導致誤判通過(一個點擊被「測量」為 +9.8dB,因為一個 0.17 秒後的鈴聲共享了它的視窗)。對於卡點/爆裂/嗖聲/跺腳,使用約 0.3 秒的視窗,並在 riser 的最後三分之一處測量(它的能量在末端)。
    • 特性 beats 的音量 — 一個嘈雜的 TEXTURE 無法通過增益修復(在測試中被拒絕了兩次)。 靜態/爆音/嗡嗡聲片段即使在 −4 dB 下,讀起來也是對話中的「雜訊」;把它調低只會變成安靜的雜訊。如果使用者說「太吵」,就更換聲音的特性(改成乾淨的機械卡點)或使用靜音 — 參見 brand §10「旁白下方不要使用靜態/爆音紋理」。
  8. 保存回庫。 新的片段留在庫和目錄中(它們會帶到下一部影片)。更新 used_in。一個安全/科技主題的集合(knock-solid, glitch-zap, scan-hum, trap-snap, stamp-hit, keys-typing-soft)是資料庫優先的,可供未來影片重複使用。

sfx-plan.json(真實來源)

{
  "master": "videos/video-1/reference/master.mp4", "master_fps": 60,
  "catalog": "media/library/sfx/catalog.json",
  "render": {
    "preview": "videos/video-1/output/video-1-preview.mp4",     // 要混合的合成預覽
    "out": "videos/video-1/output/video-1-first60-sfx.mp4",
    "end_s": 60, "duck": true
  },
  "events": [
    { "at_s": 2.55, "sfx_id": "ui-toggle-on", "gain_db": -13, "shot": "IntroClaudeCode",
      "cue": "Free Image Generator 切換開關開啟 (本地影格 f66-82)", "note": "標誌性點擊" },
    { "at_s": 13.03, "sfx_id": "ui-click-soft", "gain_db": -18, "optional": true, "cue": "卡片鎖定" }
  ]
}
  • at_s — 主時間軸秒數(與 timeline.json / edited-transcript.json 使用相同時鐘)。
  • gain_db — 相對於片段標準化音量的 dB 值(越低越安靜)。品牌 §10:−12 到 −18。
  • optional: true — 可否決的鋪底音效;mix_sfx.py --no-optional 會將其移除。廣泛使用,以便審核專注於核心集合。
  • cue / note — 人類可讀的錨點(確切的影格/詞語),使審核易於理解。

工具快速參考

  • 擴充庫:python tools/gen_sfx.py [--dry-run] [--only id1,id2] [--force] [--renorm]。 --renorm 重新平衡現有片段至響度目標(不消耗 API/費用)。需要 ELEVENLABS_API_KEY。
  • 印出提示表(審核用成品):python tools/mix_sfx.py <plan> --print [--no-optional]。
  • 混合:python tools/mix_sfx.py <plan> [--no-optional] [--no-duck] [--end S] [--out path]。
  • 臨時渲染/樣本放在草稿區,而不是專案內。

原則(預設風格 — 請套用)

  • 始終壓低在語音之下。 SFX 是調味料;人聲才是主角。對它們進行閃避處理,保持音量較低,絕不讓任何一個峰值超過旁白。靜音是混音的一部分。
  • 只為關鍵轉場與揭示打分。 為一個節拍的標誌性時刻打分,而不是每個子影格。密度約為每分鐘 8-12 個提示。超過此數量的全部設為 optional。
  • 與視覺節拍和詞語同步。 點擊聲精準落在切換開關翻轉的那一刻;爆裂聲精準落在揭示的瞬間;whoosh 聲精準落在插播鏡頭處。偏差 100 毫秒就會顯得不專業 — 使用真實的影格/詞語時間。
  • 可重用優先。 使用通用名稱和標籤,使資料庫能在不同影片間累積。在生成前先重用。資料庫是比當前影片更長壽的交付物。
  • 功能重於氛圍。 根據聲音的工作(動作/張力/強調/卡點,品牌 §10)來選擇,而不是瀏覽目錄尋找「感覺對了」的。同樣少數幾個基礎聲音就能完成大部分工作;更多並不代表更好。保持標誌性動機的一致性(例如切換點擊聲重複出現)。
  • 為大時刻分層,其餘保持單一。 Build-and-drop (riser→impact, whoosh→pop) 是 SFX 發揮價值的地方 — 但僅限於 2-3 個英雄節拍。其他地方,一個聲音,然後保持靜音。
  • 採取結構,而非戲劇性。 我們使用專業編輯器模型,但保持冷靜/高品質:沒有銅鈸般的緊迫 riser,沒有預告片式的猛烈撞擊,沒有每個動作都加 whoosh。
  • 先審核,後混合。 使用者先閱讀並批准 sfx-plan.json。不可協商。
  • 不是音樂。 這裡沒有背景音樂 — 那是最終混合步驟(音軌 + 自動閃避 + 最終響度)。

完成 = 庫中已有所需的片段(已編目,含來源+授權),sfx-plan.json 已編寫並經使用者審核,已渲染出帶 SFX 混合的預覽並經由耳朵抽查確認,任何新片段及 used_in 已保存回庫。如果品味決定有變,請更新 brand.md §10 / 記憶。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

raisaksham377-bot/youtube-shorts-ai-editor

Makes this repo's videos look like YOUR channel instead of the house default — interviews you for palette, fonts, wordmark, motion energy, delivery specs and SFX taste, then rewrites brand.md + remotion/src/brand.ts + remotion/src/fonts.ts together and renders a proof card so you SEE it. Use whenever the user wants to set up or change their brand, rebrand the repo, "make it my colors/fonts", change the accent color, set their wordmark, adjust the motion feel, or asks why their videos look like someone else's. Run it once before the first video. Not for per-video art direction (that is /make-tsx) and not for thumbnails, which are deliberately louder than the brand (that is /packaging).

raisaksham377-bot/youtube-shorts-ai-editor

Build a split-frame vertical Short/Reel (1080x1920) from talking-head footage — real face cropped into the bottom half throughout, bespoke motion-graphic beats + word-by-word captions in the top half. Use when the user wants a "vertical short", "reel", "9:16 video", "split-frame" format, asks to keep their face on screen the whole time while graphics play above it, wants an in-context app/UI mockup moment (like clicking a button in a browser) without cutting away from their face, or hits caption-pill-covers-my-face / no-GPU-rendering / audio-duration-mismatch problems while building one. Covers the crop-offset technique for framing the face, the caption-pill safe zone, the top-half-only UI-mockup scene pattern, the full pipeline from raw footage to final SFX mix, and the environment gotchas (no NVIDIA GPU, AAC priming gap, comp-native transcode). Topic-agnostic — this is a layout/technique skill, not tied to any one video's content. Builds on /clean-cut, /make-tsx conventions, and /suggest-sfx; doesn't rep...

raisaksham377-bot/youtube-shorts-ai-editor

Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video stream copied). Use when the user wants to "clean the audio / voice", "remove background noise", "denoise", "isolate voice", fix outdoor/room/water/hum/hiss noise, run ElevenLabs Voice Isolator or local RNNoise, A/B denoise methods, or produce a cleaned master for a video-N in this repo. Covers diagnosing the noise (spectrogram + levels), choosing eleven vs rnnoise by noise type, the sample A/B, tools/clean_voice.py, preserving levels (RMS-match, not LUFS), and rewiring the pipeline to the clean master. Not the SFX/music mix (that is /suggest-sfx + the final-mix step) and not the cut (that is /clean-cut).

raisaksham377-bot/youtube-shorts-ai-editor

Step 1 of the AI Video Editor pipeline — turn raw talking-head footage into a clean master cut. Use when the user wants to "clean cut", "cut the raw footage", "remove filler / dead air / bad takes", "tighten the pacing", produce cuts.json, run the cut editor, or render a cleaned preview/master for a video-N project in this repo. Covers audio extraction, AssemblyAI transcription, authoring cuts.json (keeps/cuts/fluff categorized), the cut policy (content-aggressive, pause-natural ~0.5s), QA + review docs, the local cut-editor UI, tight/natural previews, the final 4K60 render, and producing edited-transcript.json as the handoff to /make-tsx. Not for building TSX overlays (that is /make-tsx) or the raw TSX authoring rules (that is vidtsx-2d-generator).

raisaksham377-bot/youtube-shorts-ai-editor

Turn static SCREENSHOTS into a simulated screen recording (TSX) — a fake screencast with an animated cursor that eases to targets and clicks, a browser URL bar that updates per page, hard-cut navigations, in-page filter crossfades, smooth scroll, and a ken-burns zoom onto the payoff. Use when a beat needs to show a walkthrough of a web app / dashboard / settings page and you'd rather build it from screenshots than get (or ask for) a real screen recording — "fake a screen recording", "turn these screenshots into a screencast", "simulate clicking through the dashboard", "animate this UI walkthrough", "cursor moving through the app". Built on remotion/src/lib/screencast.tsx. This is a technique WITHIN step 2 (make-tsx): defer timeline/render/bake orchestration to make-tsx and raw crash-free TSX rules to vidtsx-2d-generator. Not for a single static page clone (use WebBrowserFrame directly) and not when the point is genuine proof of real speed/output (use a real recording).

raisaksham377-bot/youtube-shorts-ai-editor

Step 2 of the AI Video Editor pipeline — build the visual beats (Remotion TSX shots) over a project's master cut and bake a composited preview. Use when the user wants to add/edit overlays or full-screen animation segments, "make a shot / beat", implement an edit plan or a v2 update, retime a beat to the narration, re-render shots, or re-bake the video-N preview in this repo. Covers reading the plan + edited-transcript + brand + reusable kit, authoring shots library-first, syncing reveals to word times, updating timeline.json (cutaway vs overlay), rendering, verifying by screenshot, and baking with tools/bake.py. Defers raw TSX authoring rules to vidtsx-2d-generator and the cut itself to clean-cut.

raisaksham377-bot/youtube-shorts-ai-editor

Generates click-optimized YouTube packaging — 3 thumbnail bets under one fixed title, engineered for YouTube's built-in A/B/C thumbnail test, plus a value-forward description, then renders the thumbnails as real images. Use this whenever you want to package a long-form video or turn a video idea into titles and thumbnails. Triggers include how would you package this, title ideas for, thumbnail concept, package this video, A/B variations, and make this clickable. Calibrates to your channel's own CTR data if you have it. Long-form only, never Shorts. Not for non-YouTube copywriting.

raisaksham377-bot/youtube-shorts-ai-editor

Generate production-ready 2D TSX video files for VidTSX (Remotion-based) from a shot, scene, or video description. Use whenever the user wants to create or generate a VidTSX video, a 2D TSX shot or scene, an animated clip, title card, or rendered motion graphic — including when they describe a visual animation they want built, or say "make a shot", "build this scene", "generate the TSX", or "turn this into a video". Covers the mandatory file structure and composition config, dimension presets (horizontal/vertical/square), six style presets (minimalist, memphis, neo-brutalism, glassmorphism, neon, corporate), and the hard rules that keep renders from crashing, covering frame-based animation only (no useState/useEffect/setTimeout), strictly monotonic interpolate ranges, Easing.bezier not wrapper syntax, and the chroma-js and @remotion/paths import gotchas. Not for 3D/three.js compositions, general React work, or editing video files.

相關技能