2014-12-08, 17:03
I have created a Python script to remove unwanted audio and subtitle tracks from Matroska container formatted files, the script uses mkvmerge (from mkvtoolnix) to identify and then remove unwanted audio and subtitles.
The reason for wanting to do this is file size, i have run this script across my media library and it did save a fair amount of space (approx 60GB), i now also run this on any new media i have recently acquired.
So without further ado here is a link to it, you will find the installation, syntax and examples here:-
link to prereq's and usage:-
https://github.com/binhex/videoslimmer
link to source here:-
https://github.com/binhex/videoslimmer/releases
There is one known bug which is related to multiple matching items for the defined language, this currently causes the movie to be skipped, so if there are two English audio streams for instance it wont be able to process the file and will skip it.
The reason for wanting to do this is file size, i have run this script across my media library and it did save a fair amount of space (approx 60GB), i now also run this on any new media i have recently acquired.
So without further ado here is a link to it, you will find the installation, syntax and examples here:-
link to prereq's and usage:-
https://github.com/binhex/videoslimmer
link to source here:-
https://github.com/binhex/videoslimmer/releases
There is one known bug which is related to multiple matching items for the defined language, this currently causes the movie to be skipped, so if there are two English audio streams for instance it wont be able to process the file and will skip it.