# Video Music Builder

> Batch-build one MKV per audio track from a single base video.

Video Music Builder is a paid AI agent skill on Agensi by Seyfer, in Image & Video. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Seyfer](https://www.agensi.io/creators/seyfer)
- Category: [Image & Video](https://www.agensi.io/skills/image-video)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/video-music-builder
- Tags: video, audio, ffmpeg, mkvmerge, music

## About this skill

Processing hundreds of audio tracks into music videos manually is a massive time sink. This skill automates the batch-production of MKVs by muxing a folder of audio files onto a single base video, handling audio normalization and duration matching out of the box.

### What it does
- **Batch processing** builds one music video per audio file found in a source directory.
- **Audio normalization** applies `loudnorm` filters to ensure consistent integrated loudness and peak levels.
- **Smart muxing** uses `mkvmerge` to trim the video stream to the exact length of the audio track.
- **Directory partitioning** automatically splits output files into numbered subfolders for easier file management.
- **Validation checks** prevents failures by verifying that audio tracks do not exceed the base video duration.

### How it works
1. **Source Discovery** scans the provided audio folder for compatible formats like MP3, WAV, FLAC, and AAC.
2. **Preflight Validation** checks tool paths, file permissions, and stream durations before starting.
3. **Parallel Encoding** runs multiple `ffmpeg` workers to normalize and convert audio to the target codec.
4. **Final Muxing** joins the processed audio with the video stream and writes the final MKV to the output path.

### Frameworks & tools
This skill requires a local Python 3.9+ environment. It relies on `ffmpeg` and `ffprobe` for media processing and `mkvmerge` (part of MKVToolNix) for high-performance muxing.

### Why this beats prompting it yourself
Writing shell scripts for ffmpeg batching often leads to audio-sync drift or broken file handles. This skill includes built-in parallelization, error handling for corrupted files, and strict duration validation that simple prompts usually overlook.

### Use cases
- Generating a YouTube-ready video library for a complete music album or discography.
- Normalizing a collection of podcast clips to -14 LUFS while applying a static visual background.
- Preparing large sets of background music tracks for game development or streaming.

### Known limitations
Does not support recursive audio folder scanning. The base video must be longer than the longest audio track. Requires local installation of FFmpeg and MKVToolNix.

## Requires

- Python
- FFmpeg
- ffprobe
- mkvmerge

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Video Music Builder skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What software dependencies do I need to install to use the Video Music Skill?

This skill requires a local Python 3.9+ environment with FFmpeg and MKVToolNix (specifically mkvmerge) installed and accessible in your system's PATH. It is designed to run as a standalone automation or can be integrated into local AI agent workflows that support Python execution.

### How does the audio normalization feature work, and will it change the sound quality?

The skill uses the `loudnorm` filter to standardize integrated loudness and peak levels across all files, ensuring your entire batch of videos has a consistent volume profile suitable for platforms like YouTube or Spotify.

### Can I use a short video clip that loops to match the length of a long audio track?

Currently, the base video must be equal to or longer than your longest audio track, as the skill is designed to trim the video stream to match the audio duration. It does not support looping a short video to fit a long song at this time.

### What exactly is included in the purchase?

You will receive the complete Python source code for the skill, a detailed README with setup instructions, and a requirements file for managing dependencies. The purchase covers the current stable version of the skill.

### How does the skill handle different audio formats or files that are too long?

The skill includes a preflight validation step that scans your audio folder for compatible formats like MP3, WAV, FLAC, and AAC, while also verifying that every file is shorter than the base video to prevent muxing errors.

### Is the batch processing done one-by-one, or can it handle multiple files simultaneously?

Yes, the skill utilizes parallel encoding to run multiple workers simultaneously, significantly reducing the total time required to process large libraries compared to sequential shell scripts.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
