danielrosehill/claude-video-editor-plugin/mkv-extract-track
Claude Code and agent skill by danielrosehill/claude-video-editor-plugin
- community
Checking that the SKILL.md file is still in the repository.
Extract a single track (audio, subtitle, video) from a Matroska container to its own file using mkvextract. Use when the user says "pull out this audio track", "extract the subtitles", "save this audio as a separate file", "get the SRT from this MKV". No re-encode.
Install
npx vskill@latest install danielrosehill/claude-video-editor-plugin/mkv-extract-trackSKILL.md
MKV Extract Track
Pull a single audio, subtitle, or video track out of a Matroska container and save it as a standalone file. Uses mkvextract for speed and fidelity; no re-encoding.
When to use
- User wants to extract an audio track and save as standalone WAV/AAC/FLAC
- Extract subtitle track as SRT or ASS/SSA
- Pull an embedded font or attachment from an MKV
- Get a video stream without audio/subs as separate file
Inputs to gather
- File — path to source MKV (required)
- Track index — the track to extract (required; from
mkv-track-list) - Output path — where to save the extracted track (required; extension matters:
.srt,.mka,.aac,.wav,.ass, etc.)
Procedure
1. Check mkvtoolnix is installed
2. Determine track type from source
Query the source file:
Output will indicate the type: video, audio, subtitles, attachments, etc.
3. Validate output extension
mkvextract infers the codec from the source and writes appropriate format. Guide the user:
| Source Codec | Suggested Extension | |
|---|---|---|
| UTF-8 text (subs) | .srt | |
| ASS/SSA (subs) | .ass | |
| AAC audio | .aac or .mka (Matroska audio) | |
| FLAC audio | .flac | |
| PCM / WAV | .wav | |
| H.264 video | .h264 | |
| H.265 video | .h265 or .hevc |
If the user provides a mismatched extension, warn but allow (mkvextract will write the correct format regardless).
4. Run mkvextract
Example:
5. Report
Output / side effects
- Creates a new file at the specified output path containing only the extracted track.
- Original MKV is untouched.
- No re-encoding; the track is copied bit-for-bit (lossless).
- For subtitle tracks, mkvextract transcodes to the target format (UTF-8 text → SRT or ASS depending on codec) — this is safe and standard.
Notes
- mkvextract is the fastest way to pull tracks out of an MKV compared to ffmpeg, which would require a full demux-re-encode pipeline.
- If the user wants to extract multiple tracks, run this skill once per track. A batch skill is a future enhancement.
- Subtitle tracks: UTF-8 text subtitles are extracted as SRT by default. ASS/SSA subtitles preserve styling (colors, positioning, fonts) if extracted as
.ass. - Audio tracks: Extracted as the codec found in the MKV (AAC, FLAC, Opus, etc.). No normalization or filtering applied.
- Attachments and fonts can also be extracted with
mkvextract attachmentsandmkvextract fonts— future enhancements.
Security
- Security scanPassed, 95 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-extract-track/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-extract-track)