Communitygithub.com

DansiDanutz/Video-Editor

當 HyperFrames 合成中的音訊需要混合處理時使用:淡入/淡出、交叉淡變、音軌增益或音量、音量自動化、閃避、襯樂蓋過旁白(旁白切割)、音軌效果(EQ、壓縮器、限制器、閘門、飽和、延遲、殘響、合聲、移相器、比特壓碎)、繪製在音軌音量或任何效果參數上的自動化包絡線,或是一個攜帶效果鏈、推桿和自動化時鐘的 Submix 匯流排(`<hf-audio-group>`)。

Video-Editor 是什麼?

這是一個用於 HyperFrames 音訊混合的專業技能,專注於在音訊已置入合成後進行後期處理。它涵蓋了從基本(淡入/淡出、音軌增益)到高級(閃避、旁白切割、完整的即時效果鏈)的所有音訊關係。其核心哲學是:混合不是處理器的堆疊,而是關係的表達——兩個分別聽起來很好的音軌放在一起可能無法聽,而修復方法幾乎從來不是「調低一個」;它提供了像 EQ、壓縮器、限制器、殘響等工具來解決頻率衝突、動態問題和空間感。這項技能支援 Claude Code 和 Cursor 等平台,使用 Web Audio API 確保預覽和渲染之間的一致性。它之所以獨特,是因為它清楚地將「修復什麼」與「如何修復」分開:它提供了一個完整的診斷框架(基於症狀參考表),然後才提供對應的工具鏈(預設值、命名任務和可複製的配方)。它不處理原始音訊獲取(屬於 `/media-use`)或剪輯時間軸(屬於 `/hyperframes-core`)。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/DansiDanutz/Video-Editor/tree/HEAD/.claude/skills/hyperframes-audio

在你喜歡的 AI 中提問

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

說明文件

外掛安裝: 在執行設定或刷新指令之前,請遵循外掛執行規則(當此技能在 HyperFrames 外掛內時使用)。獨立安裝請保留下面的更新說明。

HyperFrames 音訊

混合是一組關係,而不是處理器的堆疊。兩個各自聽起來不錯的音軌放在一起可能無法聽,而修復方法幾乎從來不是「調低一個」——而是找出它們在爭奪什麼,並將那個東西交給需要它的一方。這裡的每個工具都是為了表達這些關係中的一個而存在。

效果存在於元素上,作為 data-fx-chain,而預覽和渲染運行相同的 Web Audio 圖形——工作室在即時環境中,引擎在離線環境中(在它已經驅動的瀏覽器內部)。每個效果只有一個實現,所以你在拖動時間軸時聽到的就是最終寫入的內容。你永遠不需要調兩次。

剪輯時間軸仍屬於 /hyperframes-core:音訊/視訊修剪和來源範圍使用 data-start、data-duration 和 data-media-start,而交叉淡變則重疊不同音軌上的剪輯。此技能擁有已放置音軌的淡入/淡出、交叉淡變包絡線、音軌增益/音軌音量、音量和效果自動化、閃避/旁白切割以及效果鏈。/media-use 擁有來源獲取、生成和預處理。

常數 data-playback-rate (0.1..10) 對於圖像和音高保持的聲音是渲染安全的,前提是匹配的音訊/視訊元素使用相同的時間、來源偏移量和速率。速度斜坡是 data-automation 中的一個 rate 通道(請參閱 docs/reference/speed-ramps);它會覆蓋常數,並在預覽和渲染中保持音高。HyperFrames 不提供自動波形同步或漂移校正。 若要取得可複製的剪輯/交叉淡變/重新定時配方,請使用 /hyperframes-core → references/creator-editing-recipes.md。

三個屬性承載一切,位於音訊/視訊元素本身——或者,對於前兩個,位於 <hf-audio-group> 匯流排上(請參閱「一個匯流排用於多個音軌」):

屬性承載內容
data-fx-chain效果,按訊號順序
data-automation此音軌音量或其效果參數的包絡線
data-fx-carve切割本身的設定,以便可以重新推導

提供的效果系列包括增益、EQ(高通、低通、峰值、擱架)、壓縮器、限制器、閘門、飽和、延遲、殘響、合聲、移相器和比特壓碎。

每個效果的確切 JSON,以及通道必須滿足的規則:references/attributes.md。 每個效果及其參數、範圍和單位:references/fx-registry.md。 如何解決你聽不到的文件問題:references/diagnosis.md。 預設值、命名任務和單旋鈕設定檔,以及症狀到修復的對照表:references/presets.md——在動手建立效果鏈之前請先閱讀,因為其中一個預設值或命名任務通常已經指出了問題。

它們如何協同工作

兩個創作表面寫入這些屬性;兩個執行階段透過相同的建構器讀取它們。這個共享的中間層就是預覽能預測渲染的原因。

flowchart TB
  voice["人聲音軌<br/>媒體檔案"]
  bed["襯樂音軌<br/>媒體檔案"]

  subgraph AUTHOR["創作階段——唯一寫入屬性的部分"]
    panel["工作室<br/>旁白切割控制"]
    script["scripts/carve.mjs<br/>檢測配對,預設為動態"]
    analysis["core/audioCarve.ts<br/>carveProfile · analyseCarveBands<br/>analyseCarveDuck · analyseCarveDynamics"]
    panel --> analysis
    script --> analysis
  end

  voice --> analysis
  bed --> analysis

  subgraph ATTRS["寫入襯樂元素"]
    carveAttr["data-fx-carve<br/>source · strength · dynamic"]
    chainAttr["data-fx-chain<br/>peaking xN + gain, 標記為 fromCarve"]
    autoAttr["data-automation<br/>每個切割參數一個通道"]
  end

  analysis --> carveAttr
  analysis --> chainAttr
  analysis --> autoAttr

  subgraph SHARED["一個實現,被兩者讀取"]
    build["audioFxGraph.ts · buildFxChain"]
    sched["audioFxAutomation.ts · scheduleChainAutomation"]
  end

  chainAttr --> build
  autoAttr --> sched

  build --> preview["預覽<br/>即時 AudioContext<br/>attachElementFxChain"]
  sched --> preview
  build --> render["渲染<br/>在無頭瀏覽器中的 OfflineAudioContext<br/>applyAudioFxChain"]
  sched --> render

  preview --> heard["你在拖動時間軸時聽到的"]
  render --> wav["處理過的 WAV<br/>+ chainTailSeconds 讓混音允許音尾通過"]
  wav --> mix["引擎 · audioMixer<br/>音量通道在此處烘乾到 PCM 中,而不是在圖形中"]
  mix --> out["渲染後的混音"]

  edit["在播放過程中編輯屬性"] -.->|MutationObserver| preview

切割本身的設定永遠不會在播放時被讀取——播放的是它產生的效果鏈和通道。data-fx-carve 的存在是為了可以更改現有切割的強度,而不是從濾波器中反向猜測。

在切割過的襯樂內部,訊號首先經過凹陷,然後是電平匹配,然後是你自己建立的任何東西——這就是為什麼你添加的限制器仍然充當最終的天花板:

flowchart LR
  src["解碼後的襯樂"] --> p1["peaking<br/>400 Hz"]
  p1 --> p2["peaking<br/>1 kHz"]
  p2 --> p3["peaking<br/>1.6 kHz"]
  p3 --> g["gain<br/>電平匹配"]
  g --> hand["你自己的效果<br/>例如限制器"]
  hand --> dest["音軌增益,然後輸出"]

  l1["通道 fx.n1.gain"] -.->|"該頻段中人聲的<br/>音量包絡線"| p1
  l4["通道 fx.n4.gain"] -.->|"襯樂總體<br/>閃避的程度"| g

靜態切割是具有固定值且完全沒有通道的相同圖形。

首先,找出問題所在

下面的表格從「聽起來很轟」開始——這假設已經有人聽過並說出來了。給你一個檔案和「修好這個」,你沒有這樣的描述,也無法聽,所以你必須測量。一個規則主導一切:

單一未知人聲的絕對頻譜是無法診斷的。 共振峰是 ±10 dB,基頻範圍在 85–255 Hz,句子在結尾時會衰減 5–6 dB。 這些中的每一個本身看起來都像是一個缺陷,而它們每一個都是說話者的特徵。

所以,進行比較,並與同一個檔案內的東西進行比較:如果存在,則是乾淨的原始檔,否則是間隙——任何在間隙中聽到的東西都是附加的,而間隙的頻譜是通道而不是人聲。與發布的平均頻譜或合成的對照人聲進行比較是行不通的:兩個說話者之間的差異大於大多數缺陷,而此指南背後評估中的兩個錯誤答案正是來自於此。

當沒有原始檔且沒有可用的靜音時,靜態音調缺陷確實是欠定的。請說明這一點,並提供合適的讀數,而不是選擇一個並在其上建立效果鏈。

指令、陷阱和經過驗證的配方:references/diagnosis.md。在診斷一個沒人描述過的檔案之前,請先閱讀。

從症狀開始

一旦你知道頻段和類型,就要說出音訊出了什麼問題。大多數不好的音訊是這些中的一兩個,而每個都有一個現成的答案:

聽起來像使用
底下的嗡嗡聲或重擊聲rumble-cut,或 80 Hz 的 highpass
轟鳴、胸腔共鳴Tame Boominess 任務 (200 Hz)
模糊、像在紙板後面Reduce Mud 任務 (250 Hz)
難以聽清字詞Add Clarity 任務 (3 kHz),或切割襯樂
刺耳且令人疲勞Soften Harshness 任務 (3.2 kHz)
某些字詞比其他字詞大聲得多壓縮器上的 Evenness,或 Even Out Levels
句子之間的房間氛圍room-gate
人聲和音樂爭奪Voiceover carve——不是對任何一個使用 EQ
乾、像是沒有空間room-tight 或 room-natural
只是「業餘」voice-clean,這是上述四個的組合

完整目錄、每個預設值包含的內容、頻段詞彙以及故意不涵蓋的內容(去噝聲、降噪、音色匹配):references/presets.md。

在添加之前先減去,在濾波之後調整電平,在電平之後調整關係,最後才是特性和天花板。每一步都會改變下一步聽到的內容——在高通濾波器之前設定的壓縮器會花費時間追逐隆隆聲。

根據問題而不是名稱來使用效果系列

濾波器(highpass、lowpass、peaking、lowshelf、highshelf)決定一個音軌允許佔據哪些頻率。這是處理兩個來源衝突的首要工具,因為衝突發生在頻段中:襯樂和人聲都想佔據 1–3 kHz,而從襯樂中取出這個頻段對襯樂造成的損失遠小於整體調低整個混音。對人聲使用高通濾波器是解決隆隆聲的標準方法;低通濾波器則故意讓聲音變暗或模糊。

動態處理器(gain、compressor、limiter、gate)決定一個音軌的音量隨時間變化的行為。壓縮縮小了響亮和安靜之間的距離,以便安靜的部分可以提升。限制器是一個天花板——它不塑造任何東西,它保證沒有任何東西能超過它。閘門移除低於門檻以下的東西,這就是你如何在短語之間消除房間氛圍的方法。gain 是一個簡單的音量級別,當一個音軌需要讓開時,它是自動化通道所操作的對象。

非線性處理器(saturate、bitcrush)改變波形的形狀,增加原本不存在的諧波。當一個音軌需要個性或粗糙感而不是修正時使用它——請記住,它是生成性的:它使纖細的來源更密集,而不是更乾淨。

時間效果器(delay、reverb、chorus、phaser)將一個音軌置於一個空間中或賦予其寬度。這些是最容易破壞混音的效果,因為一個音尾或一個失諧的副本佔據了人聲需要的相同空間。將它們用於應該位於其他東西後面的元素,並保持濕聲量低於在孤立聽起來正確的數值。

效果鏈是串聯的:每個效果處理前一個效果產生的結果。因此,校正性濾波應該放在前面,特性在中間,而限制器放在最後,這樣它才能真正起到天花板的作用。

旁白切割

它解決的問題。 人聲下方的襯樂使人聲難以聽清。本能反應是閃避整個襯樂,這有效,但代價是襯樂失去了所有存在感——音樂在整個旁白過程中變得無力。但人聲並不需要整個頻譜。它只需要它實際佔據的幾個頻段。切割只取出這些頻段,而襯樂保留其低頻和高頻,因此它仍然是音樂,同時人聲仍然清晰可辨。

它是一種關係,而不是一個效果。 設定存在於襯樂上——也就是被處理的音軌——它們指定要聽的人聲,就像側鏈壓縮器所做的那樣:你選擇變得更安靜的音軌,並挑選使其安靜的東西。永遠不要將切割放在人聲音軌上。 針對自身進行切割的人聲是一個錯誤,而不是一個微妙的混音選擇。

每一道聲音,而不是其中一個。 sources 是一個列表,因為一條襯樂通常貫穿整個序列——一個旁白、一個採訪回答、第二個主持人。它們在襯樂自己的時鐘上被求和,然後才進行測量(mixCarveSources),因此一次分析涵蓋了所有這些:頻段來自所有存在的語音,而包絡線在任何語音發生的地方都會上升。在襯樂播放時從未播放的人聲則被排除在外;它們無法遮蔽襯樂。

針對多於一個剪輯 ID 的切割是錯誤的。將剪輯分組,並針對該組進行切割。 這是一個不變量,而不是一個提示。逐個命名剪輯必須完全正確,並且只有在下次編輯之前才保持正確——稍後添加的第四個旁白剪輯會在切割的感知範圍之外播放,而襯樂會無法在它下方靜默地閃避。改為命名群組可以在分析時解決成員資格問題,因此之後添加到群組的剪輯無需觸碰 sources 即可被覆蓋:

<!-- 將旁白分組,然後針對該組切割襯樂 -->
<audio id="vo-intro" data-audio-group="voiceover" …></audio>
<audio id="vo-middle" data-audio-group="voiceover" …></audio>
<audio id="vo-outro" data-audio-group="voiceover" …></audio>

<audio id="music" data-fx-carve='{"enabled":true,"sources":["voiceover"],"strength":0.8}' …></audio>

一個 sources 列表命名了兩個或多個普通剪輯 ID 而不是一個群組,會被 audio_carve_ungrouped_sources 檢查規則捕獲——它仍然可以工作,但它是那個在添加一個剪輯後會默默失效的版本。

保持切割群組為人聲群組:不要包含襯樂、SFX 或音樂。 sources 中的群組 ID 在每次分析時都會解析為所有當前的成員,因此你命名的群組就是稍後得到的群組——而不是在寫入時測量的音軌。兩種可能出錯的情況:

  • 襯樂在其自己的來源群組中。 它被當作人聲傳遞給自身,並針對自己的內容進行切割——這是「永遠不要針對自身進行切割」規則在重新分析一次後發生。
  • 人聲群組中的一個 SFX 或音樂剪輯。 它在下一次分析時進入側鏈,然後襯樂開始在呼嘯聲下閃避,即使寫入屬性的那次運行從未測量過它。

兩種情況在切割被寫入的那一刻都是不可見的:分析對它檢測到的人聲進行求和,並且從不透過群組解析進行往返,因此第一次通過確實是正確的,只有下一次才是錯誤的。所以,為每個角色分配自己的群組——music 用於襯樂,voiceover 用於旁白,sfx 用於音效——並保持 sources 中命名的群組只包含人聲。

carve.mjs 在遇到任一情況時拒絕寫入群組形式,記錄剪輯 ID,並說...

[因翻譯而截斷]

Individual skills in this repo

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

DansiDanutz/Video-Editor

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

DansiDanutz/Video-Editor

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

DansiDanutz/Video-Editor

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

DansiDanutz/Video-Editor

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

DansiDanutz/Video-Editor

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

DansiDanutz/Video-Editor

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

DansiDanutz/Video-Editor

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

DansiDanutz/Video-Editor

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

DansiDanutz/Video-Editor

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

DansiDanutz/Video-Editor

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

DansiDanutz/Video-Editor

Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.

DansiDanutz/Video-Editor

Divide a finished story/script into filmable scenes with per-scene image and animation prompts. Use when building a scene outline or shot list, deciding scene boundaries, durations, or what each visual must show.

DansiDanutz/Video-Editor

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

相關技能