Remux
by snepssen
Lossless video and audio container rewrapping using FFmpeg with strict stream integrity verification.
Free
Remux
Example session with this skill installed
Convert Harbour Lights S01E03.mkv to MP4 so it plays in QuickTime. Don't re-encode it, I don't want to lose quality.
- Read your context and instructions
- Compiled the remux
Plan: refused, nothing was written
I planned the copy from Harbour Lights S01E03.mkv to MP4 first:
remux: stream 3 (subtitle/subrip) cannot be preserved by this tool in mp4.
Nothing written; no stream will be dropped or re-encoded.
The file has four streams: H.264 video, two AAC audio tracks, and
SRT subtitles. The video and both audio tracks can move into MP4 unchanged. The subtitles can't: MP4 and MOV only hold subtitles as mov_text, so SRT would have to be converted, and this tool never converts or drops a track. MOV gives the same answer.
Your options
| Option | Result |
|---|---|
| Keep it as MKV | Nothing changes; plays in VLC, IINA, Plex and most TVs, but not QuickTime |
| MP4 without the subtitle track | Video and both audio tracks copied untouched; the subtitles kept as a separate .srt file beside it, which QuickTime and most players pick up |
For the second option I'd first take the subtitles out to a sidecar file, then remux the rest. Without the subtitle track, the plan copies everything:
Copy stream 0: video / h264
Copy stream 1: audio / aac
Copy stream 2: audio / aac
No audio, video or subtitle stream re-encoded.
Taking the subtitle track out is a step outside the remux tool, so I need your go-ahead first.
Next steps
- Say
"MP4 with a sidecar" and I'll extract the .srt, remux video and audio to MP4, and check the result's streams before it's published. Your original MKV stays untouched.
2. Or keep the MKV as it is.
Connects securely to your tools. The creator never sees your data.
About this skill
Changing a video's container often goes wrong with generic converters: they quietly re-encode, drop subtitle tracks, or keep only the first audio track. This skill copies every stream into the new container unchanged, and refuses when that isn't possible instead of guessing.
The skill itself is just instructions. When a task needs it, your agent fetches the open-source tools-core repository at a pinned commit, checks its SHA-256, and runs remux locally with your FFmpeg.
What it does
- Lossless rewrapping copies video, audio and subtitle streams into MKV, MP4, MOV, WebM or M4A without re-encoding.
- All or nothing: if any audio, video or subtitle stream can't go into the target container unchanged, it refuses and explains why.
- Plan first: a
--planrun lists every stream it would copy before anything is written. - Checked output: after FFmpeg writes a temporary file, the tool compares every output stream's type and codec with the input before publishing it.
- Safe writing: never overwrites an existing file and never touches the source.
How it works
- Fetch. The agent downloads tools-core at a pinned commit and verifies it.
- Plan. It runs the plan and shows you which streams would be copied, or why the request is refused.
- Explain options. On a refusal (for example SRT subtitles into MP4) it offers real choices instead of working around it.
- Remux. With your go-ahead it writes the new file and checks it before publishing.
Frameworks & tools
Python 3.8+ (standard library only) driving FFmpeg and ffprobe. The probing code and compatibility table come from siphon.
Why this beats prompting it yourself
Hand-written FFmpeg commands easily drop streams (-map mistakes) or re-encode when a codec doesn't fit. This skill copies everything or nothing, and verifies the output's stream inventory before it exists under its final name.
Use cases
- Rewrap an MKV as MP4 or MOV for QuickTime, Premiere or Final Cut, when its codecs fit.
- Move an MP4 into MKV to keep extra audio and subtitle tracks together.
- Check which containers a file can move to without re-encoding.
Known limitations
Needs FFmpeg and ffprobe installed. It never re-encodes, removes tracks or converts subtitles, so some requests are refused by design (for example H.264 into WebM, SRT into MP4, or video into M4A). Cover images and data streams are refused for every container. The runtime check compares stream types and codecs, not every packet. Verified on macOS; Windows and Linux have not been exercised yet.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
2 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 14 days ago
- Free with an Agensi account
- Accounts
GitHub
- Software
Python 3.8+FFmpegffprobecurl
Git
Verified on macOS; built for Linux and Windows too. The skill downloads the open-source tools-core repository from GitHub at a pinned commit, checks its SHA-256, and runs remux locally with your FFmpeg. Your media never leaves your machine.
Permissions
Allowed Hosts
Network: one download of tools-core from github.com at a pinned commit, verified by SHA-256 before anything runs. Terminal: runs the Python tool, which runs FFmpeg and ffprobe. Read files: the media file you name. Write files: the new container file you name (never overwriting) plus the temporary download, deleted afterwards. The source file is never modified.
What's inside
Frequently Asked Questions
New in Image & Video
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Video Skills.