Skip to content

Instantly share code, notes, and snippets.

@lindelux
lindelux / removeNonEnglish.py
Created December 3, 2021 19:59 — forked from majora2007/removeNonEnglish.py
Remove foreign language audio and subtitle tracks from mkv files in bulk
#!/usr/bin/python
# Removes non-LANG audio tracks and subtitles from mkv files in a directory.
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container
# Modified by Joseph Milazzo for updated MkvMerge commands.
import os
import re
import sys
import StringIO