8

I need to batch remove all subtitles from MKV files in a directory, using MKVToolNix, for one file I figured:

mkvmerge -o output.mkv --no-subtitles input.mkv

How do I achieve this for 100+ files?

Vlastimil Burián
  • 27,586
  • 56
  • 179
  • 309

1 Answers1

9

If they're all in the same directory, you can do:

for file in *mkv; do
    mkvmerge -o "${file%.mkv}".nosubs.mkv --no-subtitles "$file"
done
terdon
  • 234,489
  • 66
  • 447
  • 667