From video-editing
Set which audio or subtitle track plays by default in a Matroska container using mkvpropedit. Use when the user says "set the default audio", "make this subtitle track default", "this audio language should play first", "change the default track". Idempotent, no re-encode.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin video-editingThis skill is limited to using the following tools:
Change which audio or subtitle track is marked as default in a Matroska container. Does not re-encode or mux; only updates metadata flags.
Mandates invoking relevant skills via tools before any response in coding sessions. Covers access, priorities, and adaptations for Claude Code, Copilot CLI, Gemini CLI.
Share bugs, ideas, or general feedback.
Change which audio or subtitle track is marked as default in a Matroska container. Does not re-encode or mux; only updates metadata flags.
mkv-track-list)if ! command -v mkvpropedit >/dev/null; then
echo "mkvtoolnix not installed. Install: apt install mkvtoolnix"
exit 1
fi
Query the file to confirm the track exists:
mkvmerge -i "$FILE" | grep "^Track ID $TRACK_INDEX:" || {
echo "Track $TRACK_INDEX not found in $FILE"
exit 1
}
mkvpropedit "$FILE" --edit "track:$TRACK_INDEX" --set "flag-default=1"
If --unset-others was requested:
mkvmerge -i output.mkvpropedit "$FILE" --edit "track:$OTHER_TRACK_INDEX" --set "flag-default=0"
Re-run mkvmerge -i and show the user the updated flags for tracks of the target type.
cp file.mkv file.mkv.bak.