Add Audio Track logo

Add Audio Track

Community
JianhuiWei7
add-audio-track

将指定的音频文件混入输入视频的默认播放音轨,并保留视频原有音轨作为非默认备用轨。当用户需要“给视频添加一条音轨”、“把 audio.mp3 merge 到视频里”、“add_audio_track”或“在不替换原音频的情况下加入新音频并默认可听见”时,必须立即调用此技能。

Overview

PublisherJianhuiWei7
RepositoryVideoWeaver
Skill nameadd-audio-track
Stars
48
Forks
1
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by JianhuiWei7 on GitHub. Read the source before you install it.

Installation

Install the Add Audio Track AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/JianhuiWei7/VideoWeaver/tree/main/skills/add-audio-track
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/JianhuiWei7/VideoWeaver.git /tmp/VideoWeaver
mkdir -p .claude/skills
cp -r /tmp/VideoWeaver/skills/add-audio-track .claude/skills/add-audio-track
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Add Audio Track in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Add Audio Track on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Add Audio Track is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

添加音轨工具 (add-audio-track)

本技能用于将已有的音频文件混入视频的默认播放音轨,生成一个打开后即可同时听到原视频默认音频和新增音频的新视频。

⚠️ 注意:本技能不会替换或删除原视频的原始音轨;它会创建一条“原默认音轨 + 新音频”的混音默认播放音轨,并将原视频音轨保留为非默认备用轨。

核心功能与工作流程

当用户要求把独立音频加入视频、给视频增加一条音轨,且不希望替换掉原始音频,同时希望普通播放器默认就能听到新增音频时,使用本技能。

调用脚本添加并混入音轨

使用本技能自带的 scripts/add_audio_track.py 脚本来处理视频。

参数说明
参数名说明
video_path(必填) 原始视频文件的绝对路径。
audio_path(必填) 要添加到视频中的音频文件绝对路径,例如已有的 audio.mp3。
--session-key可选的输出目录 session-key。CodeX/Claude Code 环境会自动识别,不需要传入内容;OpenClaw 环境必须运行 session_status 获取session-key并且传入, 格式通常为 agent:{agent_id}:{session_id}。
执行逻辑与输出

执行脚本后,它会自动调用 FFmpeg 把输入音频混入默认播放音轨:

  • 视频流不重新编码,直接 copy。
  • 第一条/default 音轨会变成“原视频默认音轨 + 输入音频”的混音,普通播放器打开即可听到新增音频。
  • 混音前会自动分析原视频默认音轨和输入音频的平均音量,并智能调整输入音频增益,使新增音频和原默认音轨的响度接近;自动增益限制在 ±12dB 内,避免极端放大或压低。
  • 混音后会加 limiter,减少音频叠加导致的爆音/削波风险。
  • 原视频中的音频流会被保留为非默认备用轨,不会被替换或删除。
  • 输入音频也会作为最后一条非默认独立音轨保留,方便检查或切换。
  • 音频统一编码为 aac,以保证 mp4 兼容性。

目标文件将保存在基于 session 生成的特定输出目录下:

  • 输出视频: 保存为 [基于session生成的输出目录]/[原视频文件名无后缀]_add_audio_track.mp4
调用示例
bash
python add-audio-track/scripts/add_audio_track.py "/path/to/your/video.mp4" "/path/to/your/audio.mp3"

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Add Audio Track AI skill do?

将指定的音频文件混入输入视频的默认播放音轨,并保留视频原有音轨作为非默认备用轨。当用户需要“给视频添加一条音轨”、“把 audio.mp3 merge 到视频里”、“add_audio_track”或“在不替换原音频的情况下加入新音频并默认可听见”时,必须立即调用此技能。

Why use Add Audio Track on TypingMind?

Because you install it once and use it with any model. Add Audio Track is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Add Audio Track in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/JianhuiWei7/VideoWeaver/tree/main/skills/add-audio-track. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Add Audio Track?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Add Audio Track?

As many as you like. As long as a model supports skills, you can use Add Audio Track with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Add Audio Track AI skill free?

It is published on GitHub by JianhuiWei7. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇