Communitygithub.com

DansiDanutz/视频编辑器

用于在 HyperFrames 合成中已有音频轨道的混音处理:淡入/淡出、交叉淡变、轨道增益或音量、音量自动化、闪避、对抗语音的音乐底垫(语音雕刻)、轨道效果(均衡器、压缩器、限制器、噪声门、饱和器、延迟器、混响器、合唱器、移相器、比特破碎器)、绘制在轨道音量或任何效果参数上的自动化包络线,以及一个承载链、推子和自动化时钟的子混音总线(`<hf-audio-group>`)。不用于获取或生成音频——寻找背景音乐、音效或制作旁白请使用 `/media-use`。不用于剪辑时间或轨道布局,那是 `/hyperframes-core` 的职责。

视频编辑器 是什么?

《HyperFrames 音频》是一个面向专业混音工作流程的 AI 技能,专注于音频轨道之间的关系处理,而非简单叠加效果器。它利用 `data-fx-chain`、`data-automation` 和 `data-fx-carve` 三个核心属性在 HTML 元素上运行,并通过 Web Audio API 实现预览即渲染的一致性——在浏览器中实时监听时听到的效果与最终离线渲染结果完全一致,无需调整两次。该技能提供了从基本滤波器(高通、低通、峰值)、动态处理器(压缩器、限制器、噪声门)到非线性效果(饱和、比特破碎)和时间效果(延迟、混响、合唱、移相器)的完整效果族,并内置了预设和症状对应表,帮助用户快速定位问题。其核心亮点是语音雕刻(Voiceover Carve)功能,它通过动态检测语音频段并仅在音乐轨上进行针对性削减,而非简单闪避整个音轨,从而保持音乐底垫的饱满和存在感。该技能支持多个平台(如 Claude Code、Cursor、Codex),并严格遵循 HyperFrames 的插件规则,确保与 `/hyperframes-core` 和 `/media-use` 节奏分工清晰。

兼容平台~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 中的一个“速率”通道(参见 docs/reference/speed-ramps);它覆盖常量值,并在预览和渲染中保持音调。HyperFrames 不提供自动波形同步或漂移校正。 对于可复制的剪切/交叉淡变/重定时方案,请使用 /hyperframes-core → references/creator-editing-recipes.md。

三个属性承载所有内容,位于音频/视频元素本身——或者对于前两个属性,位于一个 <hf-audio-group> 总线上(参见“一条总线用于多个轨道”):

属性承载内容
data-fx-chain效果,按信号顺序排列
data-automation此轨道音量或其效果参数的包络线
data-fx-carve雕刻自身的设置,以便可以重新推导

提供的效果族包括:增益、均衡器(高通、低通、峰值、架式)、压缩器、限制器、噪声门、饱和器、延迟器、混响器、合唱器、移相器和比特破碎器。

每种效果的确切 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/>源 · 强度 · 动态"]
    chainAttr["data-fx-chain<br/>峰值xN + 增益,标记为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["峰值<br/>400 Hz"]
  p1 --> p2["峰值<br/>1 kHz"]
  p2 --> p3["峰值<br/>1.6 kHz"]
  p3 --> g["增益<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
低沉、胸腔音过重驯服低沉作业 (200 Hz)
模糊,像隔板后面减少混沌作业 (250 Hz)
难以听清词语增加清晰度作业 (3 kHz),或雕刻底垫
刺耳且让人疲劳柔化刺耳感作业 (3.2 kHz)
某些词语比其他词语响得多压缩器上的均匀性,或“均匀化电平”
句子之间有房间回响room-gate
语音和音乐相互干扰语音雕刻——不是对任一轨道做均衡
干涩,像在没地方录制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>

一个命名两个或更多普通片段 ID 而非组的 sources 列表会被 audio_carve_ungrouped_sources 代码检查规则捕获——它仍然有效,但这是那种会在添加片段时悄然失效的版本。

保持雕刻组为一个语音组:没有底垫、没有音效、没有音乐。 sources 中的组 ID 在_每次_分析时解析为所有_当前_成员,因此你命名的组就是你后来得到的组——而不是写入属性时测量的轨道。两种可能出问题的方式:

  • 底垫在其自己的源组中。 它被作为语音交给自身,并对其自身内容进行雕刻——这是“绝不将轨道对自身进行雕刻”规则的体现,在重新分析时出现。
  • 语音组中的一个音效或音乐片段。 它在下次分析时进入侧链,底垫开始在一个“嗖”声下闪避,即使写入属性的那次运行从未测量过它。

在雕刻被写入的那一刻,两者都是不可见的:分析叠加了它检测到的语音,而从未通过组解析进行往返,因此第一次执行是真正正确的,只有下一次才是错误的。所以,为每个角色分配自己的组——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.

相关技能