Remux

    by snepssen

    1

    Lossless video and audio container rewrapping using FFmpeg with strict stream integrity verification.

    Free

    2 usesSecurity scanned

    Works with the AI Agents you already use

    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

    OptionResult
    Keep it as MKVNothing changes; plays in VLC, IINA, Plex and most TVs, but not QuickTime
    MP4 without the subtitle trackVideo 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

    1. 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 --plan run 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

    1. Fetch. The agent downloads tools-core at a pinned commit and verifies it.
    2. Plan. It runs the plan and shows you which streams would be copied, or why the request is refused.
    3. Explain options. On a refusal (for example SRT subtitles into MP4) it offers real choices instead of working around it.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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+FFmpegffprobecurlGit

    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

    Terminal / Shell
    Network Access
    Write Files
    Read Files

    Allowed Hosts

    github.com

    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.

    Listed14 days ago

    What's inside

    Frequently Asked Questions

    Unlike standard converters that might re-encode your video and reduce quality, this skill performs bit-perfect copying. It wraps your existing video and audio data into a new container at disk speed, ensuring zero quality loss.

    The skill is designed to prioritize data integrity. If a stream (like a specific subtitle format) isn't supported by the target container, the skill will refuse the operation and explain why, rather than silently dropping the track.

    You will need Python 3.8 or higher and a working installation of FFmpeg and ffprobe on your system path. The skill uses these tools to handle the underlying stream mapping and verification.

    Yes, the skill includes a pre-execution planning phase. It generates a detailed manifest showing exactly how each video, audio, and subtitle stream will be mapped before any data is written.

    Instructions only: a SKILL.md that tells your agent how to fetch the open-source tools-core repository from GitHub at a pinned commit, verify its SHA-256, and run remux with your own FFmpeg. Nothing is bundled, and your media never leaves your machine.

    This skill is built for any AI agent framework capable of executing Python-based tools. It is ideal for developers building media processing pipelines who want to avoid the common syntax errors associated with manual FFmpeg commands.

    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.

    Free