batch remove audio tracks from mkv using mkvtoolnix

To leave only audio track 2:

$ IFS=$’\n’

for f in `ls *.mkv`; do ./mkvmerge.exe -o out\\${f} –atracks 2 ${f}; done

Leave a Reply

Your email address will not be published. Required fields are marked *