Created
October 5, 2019 21:48
-
-
Save rafaelvieiras/72953f6150fad7f7151387010b02715f to your computer and use it in GitHub Desktop.
Corretor de Faixa de audio para arquivos MKV, Troca a faixa principal do audio para a segunda faixa de audio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OIFS="$IFS" | |
IFS=$'\n' | |
for file in *.mkv | |
do | |
echo $file | |
mkvpropedit "${file}" --edit track:2 --set flag-default=0 | |
mkvpropedit "${file}" --edit track:3 --set flag-default=1 | |
mkvpropedit "${file}" --edit track:4 --set flag-default=0 | |
mkvpropedit "${file}" --edit track:5 --set flag-default=0 | |
done | |
IFS="$OIFS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment