danielrosehill/claude-video-editor-plugin/mkv-strip-tracks
Claude Code and agent skill by danielrosehill/claude-video-editor-plugin
- community
Checking that the SKILL.md file is still in the repository.
Remove unwanted tracks (audio, subtitle, video) from a Matroska container and save a new, smaller file. Use mkvmerge syntax (-a, -s, -d to keep tracks; -A, -S, -D to drop all of a type). Use when the user says "remove this audio track", "drop all subtitles except English", "keep only this video and audio", "make this file smaller". No re-encode.
Install
npx vskill@latest install danielrosehill/claude-video-editor-plugin/mkv-strip-tracksSKILL.md
MKV Strip Tracks
Selectively keep or discard audio, subtitle, and video tracks in a Matroska container using mkvmerge. Produces a new MKV with only the requested tracks; original is preserved. No re-encoding.
When to use
- User wants to drop unwanted audio or subtitle tracks from a multi-language file
- Reduce file size by removing all subtitles, or all but one audio track
- Clean up a master file before distribution (keep video + one audio + one subtitle)
Inputs to gather
- File — path to source MKV (required)
- Keep audio tracks — comma-separated list of track indices (e.g.,
1,2) or language codes; OR-Ato drop all audio (optional) - Keep subtitle tracks — comma-separated list (e.g.,
3,4) or-Sto drop all subs (optional) - Keep video tracks — track index (usually
0) or-Dto drop all video (rare) (optional, default: keep track 0) - Output path — where to write the new MKV (optional, default:
<original-name>.stripped.mkvin same dir)
Procedure
1. Check mkvtoolnix is installed
2. Build the mkvmerge command
mkvmerge uses track-selection flags:
| Flag | Effect | |
|---|---|---|
-d 0 | keep video track 0 | |
-a 1,2 | keep audio tracks 1 and 2 | |
-s 3 | keep subtitle track 3 | |
-A | drop all audio | |
-S | drop all subtitles | |
-D | drop all video |
Example: keep video 0, audio 1, subs 3–4:
3. Validate tracks exist
Before running mkvmerge, query the source with mkvmerge -i "$FILE" to verify all requested track indices exist. Warn if a track is missing.
4. Show the user the command
Print the full mkvmerge invocation and ask for confirmation (especially if many tracks will be dropped).
5. Run and report
After completion, show:
Output / side effects
- Creates a new MKV file at the specified output path.
- Original file is untouched.
- No re-encoding; mkvmerge copies streams as-is.
- The output file is always a new file — mkvmerge cannot edit in-place.
Notes
- mkvmerge is fast and non-destructive compared to ffmpeg, which would require re-encoding if stream-copy alone fails.
- Track indices refer to the physical track order in the file, shown by
mkv-track-list. Not all indices are sequential (e.g., if you dropped a track earlier, indices don't shift). - Language-based selection (e.g.,
-a eng) is more portable than track indices if the MKV has proper language tags. mkvmerge supports ISO 639-2 codes. - If the user wants to keep multiple tracks but doesn't know the indices, run
mkv-track-listfirst. - Chapters, attachments, and global metadata are preserved in the output by default; mkvmerge can also strip these with additional flags if needed (e.g.,
--no-chapters).
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mkv-strip-tracks/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/danielrosehill/claude-video-editor-plugin/mkv-strip-tracks)