Skip to content

Instantly share code, notes, and snippets.

@mjgil
Created July 21, 2018 12:50
Show Gist options
  • Save mjgil/4c5d4ede993f58d41464a0aebfe1bc4e to your computer and use it in GitHub Desktop.
Save mjgil/4c5d4ede993f58d41464a0aebfe1bc4e to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
for filename in *.mkv
do
echo $filename
# only keep the second subtitle track
mkvpropedit "$filename" --edit track:s1 --set flag-default=0 --edit track:s2 --set flag-default=1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment