i want to save some space on my NAS and remove unnecessary Tracks. i found this Script but my debian (nas os) doesnt support mkvtoolnix 6.6.0 and higher
my output is descriped here at "old output". and the script uses the new output
i think in the script "AUDIO_RE" has to be redefined to fit my needs.
AUDIO_RE = re.compile(r"Track ID (\d+): audio \([A-Z0-9_/]+\) [language:[a-z]{3}?")
thats what i got so far... but the script doesnt work
what can i do ?
I scripted it with awk, an old Unix scripting language, available also for Windows. I guess, you can get a Debian awk package.
usage:
examples:
keep English and Spain audio, keep French and German subtitles, no chapters
keep English audio, no subs, keep the chapters
keep no audio, no subs but the chapters
Put a colon
:
in front of every language code. Some valid codes are:Please set the full
PATH
to your MKVToolnix distribution in the variableMKVMerge
.Attention is needed for the different quoting in Windows and Unix:
Windows
Unix(?)
Windows
Unix(?)
If you know another/better/correct Unix quoting, please let me know.
script.awk