Replace or Add a Local Video Soundtrack

Inspect video audio streams, replace all or one, or append a local soundtrack. Copy compatible video; choose padding, looping or short-audio truncation and gain.

ClaudeHermes AgentCodexCursorMIT (modify, redistribute and use commercially)Python

What it does

Inspect audio streams; replace every original audio track, replace a chosen audio ordinal, or append a local soundtrack as a separate track. Works with silent video and multi-audio inputs. Compatible video is copied by default; all output audio is encoded as AAC. Choose silence padding, looping, or leaving a short audio track short, plus linear gain on the new soundtrack.

How to use

Inspect the video first. Choose the operation, zero-based audio ordinals and duration policy. Review the dry-run command and export to a new directory. A JSON manifest records the policy, output audio order and measured streams.

Requirements

Python 3.10+ with FFmpeg and ffprobe separately installed. No additional Python packages. An explicit H.264 reencode option handles video outside the conservative MP4 copy allowlist.

Caveats

Add means another audio track, not an audio mix. Full video duration is retained. Existing audio is reencoded; gain affects the new soundtrack only. Global metadata/chapters can be preserved or dropped; audio stream tags are reset. This is not a privacy sanitizer. No copyrighted-music downloads, arbitrary YouTube URL downloads, uploads, or overwriting existing output.

How to install

  1. Unzip the downloaded file (it contains a video-audio-track-replacer/ folder with SKILL.md).
  2. Copy the whole folder into your agent's skills folder.
    • Claude: ~/.claude/skills/ (per project: .claude/skills/)
    • Hermes Agent: ~/.hermes/skills/
    • Codex: ~/.agents/skills/ / Cursor: ~/.cursor/skills/
    • Claude app (claude.ai): upload the ZIP in Customize → Skills
  3. Restart the agent and check that the skill appears in its skill list.

Step-by-step install for Windows / Mac and each agent

Seller

動画編集が仕事

動画編集の準備から仕上がりの確認まで、毎日の作業を支援するスキルを制作しています。切り出し・字幕づくり・音声調整・文字起こしを、元の素材を残しながら進められるようにします。

10 published skills

Seller profile and all skills