audio-extract-mix
Use when you need to EXTRACT, MIX, REPLACE, DUCK, or LOUDNESS-NORMALIZE audio on a video/clip with ffmpeg — e.g. pull a wav out of a clip, lay a music bed or VO UNDER a speaker so it auto-dips when they talk (sidechain ducking), normalize an export to a per-platform LUFS target (-14 for TikTok/Reels/Shorts/YouTube, -23 EBU R128 broadcast, -24 ATSC), mux/replace/strip an audio track while preserving all other streams, or turn the soundtrack into laughter/applause/ music/loudness saliency signals. The exact filter graphs, argv lists, codec/map choices, and the pitfalls that actually bite (amix auto-attenuation, -shortest duration, stream-index = list-order coupling, mono/32k decode for PANNs, loudnorm single-pass drift) come from the real media_studio source cited below. Do NOT use for: per-word transcription/alignment (use ASR/CTC modules), TTS dub GENERATION (this only muxes a finished dub), pitch/tempo time-stretch, or pure visual edits. Do NOT use as a generic "run ffmpeg" reference — it is scoped to these audio ops with the project's frozen wire surface.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- audio-extract-mix
- description
- Use when you need to EXTRACT, MIX, REPLACE, DUCK, or LOUDNESS-NORMALIZE audio on a video/clip with ffmpeg — e.g. pull a wav out of a clip, lay a music bed or VO UNDER a speaker so it auto-dips when they talk (sidechain ducking), normalize an export to a per-platform LUFS target (-14 for TikTok/Reels/Shorts/YouTube, -23 EBU R128 broadcast, -24 ATSC), mux/replace/strip an audio track while preserving all other streams, or turn the soundtrack into laughter/applause/ music/loudness saliency signals. The exact filter graphs, argv lists, codec/map choices, and the pitfalls that actually bite (amix auto-attenuation, -shortest duration, stream-index = list-order coupling, mono/32k decode for PANNs, loudnorm single-pass drift) come from the real media_studio source cited below. Do NOT use for: per-word transcription/alignment (use ASR/CTC modules), TTS dub GENERATION (this only muxes a finished dub), pitch/tempo time-stretch, or pure visual edits. Do NOT use as a generic "run ffmpeg" reference — it is scoped to these audio ops with the project's frozen wire surface.
03 SKILL.md 正文
audio-extract-mix
Extract / mix / replace / duck / loudness-normalize audio on a clip, the way the Reframe media_studio sidecar actually does it. Every command below is copied from real source — no invented flags.
Source modules (read these for ground truth)
sidecar/media_studio/features/audiomix.py—audiomix.merge(duck→mix→loudnorm)audiomix.normalize(loudnorm only). Ownsbuild_mix_filter,build_mix_argv,build_loudnorm_argv,PLATFORM_LOUDNESS,resolve_loudness_target.
sidecar/media_studio/features/tracks_audio.py—tracks.audio.{list,mux,replace,strip}. Ownsbuild_mux_argv,build_replace_argv,build_strip_audio_argv,probe_streams,original_tracks_from_probe.sidecar/media_studio/features/audio_saliency.py— PANNs CNN14 audio tagging + pure RMSloudness_curve. Ownscompute_audio_signals,peak_windows,sample_windows, the decode argv in_default_audio_loader.sidecar/media_studio/ffmpeg.py— the shared seam:ffmpeg_path/ffprobe_path(resolve binary by absolute path),run(argv-list Popen, both pipes drained,-progressparsing, cooperative cancel),ffprobe_duration(drives the progress %).
The whole module follows one law (audiomix.py docstring, CONTRACTS §4/§6/§7):
argv LISTS only, never shell=True; the filter graph and every path is a
single argv element; the ffmpeg binary is resolved by absolute path; both stdout
and stderr are drained by the shared run. Keep that when you hand-run these.
Recipe 1 — Mix a music bed / VO UNDER speech with sidechain ducking + loudnorm
Recipe 2 — Loudness-normalize an export (no bed)
Per-platform LUFS targets (PLATFORM_LOUDNESS, audiomix.py:67-80)
Recipe 3 — Extract / decode audio to raw samples
Recipe 4 — Mux / replace / strip an audio track (preserve everything else)
Pitfalls that actually bite
GPU / HF-model notes (audio_saliency only)
Worked example: lay a -10 dB music bed under a TikTok clip at -14 LUFS
04 同仓库更多 Skills
clarify-requirements
Resolve genuine pre-execution ambiguity by scanning repo context, generating 1-6 grounded options, and asking 1-3 focused questions via AskUserQuestion. NOT for mid-task use (injection risk); NOT when the goal is already unambiguous; use to disambiguate vague prompts before any file edits.
openmm-md
Run FREE, open-source, Windows-native GPU molecular dynamics via the openmm-md MCP (OpenMM + CUDA on the local NVIDIA GPU). Use for protein / protein-ligand MD when you want a free stack or are on Windows without a Schrodinger license. Covers the full workflow (prepare, solvate, minimize, equilibrate, production, analyze, mmgbsa) AND an honest decision guide vs Schrodinger Desmond, including how to run Desmond legitimately on Linux or a cloud GPU with a real license. This is a deliberately LESSER free alternative and does NOT replace the schrodinger MCP tools. Do NOT use it to pick a free tool when a validated FEP+, WaterMap, IFD-MD, or Prime MM-GBSA result is actually required.
visual-review
Take screenshots of web pages and UI using Playwright for visual review and iteration
status
Diagnostic status report — shows metaswarm installation state, project setup, and potential issues
start
Use when starting work on any task, when the user mentions metaswarm, or when the user wants to begin tracked development work
setup
Interactive project setup — detects your project, configures metaswarm, writes project-local files