Some of you have considerable collections of movies and/or TV shows. Often you accidentally include audio and/or subtitles that you might not want. Well, these tracks take up space and we do like to save space whenever possible, right? So I've created a script to solve this problem:
Enter mkvstrip.
This allows you to provide information on the languages you speak and read and lets you have the remainder automatically removed.
There are a few bugs to work out and a few features to add, so check the README file.
If you are an expert python coder and would like to help with bugs, features, or just cleaning up the code in general feel free.
I've released this to the world before hitting 1.0 because I've hit the limits of my knowledge with python (which is seriously lacking) and I figured the community could probably help faster than me trying to cobble together what is left to work on.
I've done some fairly extensive testing and I'm pretty sure that the bugs list is complete. But as always, ymmv.
The intent of this script is to let you setup a FreeNAS jail and install mkvtoolnix and python 2.7 and then point this script to your movies and/or TV shows. It will systematically go through and remove all the extra tracks that are taking up space on your server.
Ultimately I want to be able to run this script as a nightly cronjob and it will automatically keep your video collections lean and mean. Currently there's a bug or two that make this impossible but with the help of the community we can fix this.
All you need to do to use this in a FreeNAS jail is the following:
# pkg install python2_7 mkvtoolnix nano
Then download the mkvstrip.py to your jail using git or manually downloading the file. Make the changes to the variables as necessary and let this script run.
NOTE: If you have many TB of videos this could take hours or days to run and could make your file shares almost unresponsive. This script will max out your pool's throughput until completed so use with care!
Enter mkvstrip.
This allows you to provide information on the languages you speak and read and lets you have the remainder automatically removed.
There are a few bugs to work out and a few features to add, so check the README file.
If you are an expert python coder and would like to help with bugs, features, or just cleaning up the code in general feel free.
I've released this to the world before hitting 1.0 because I've hit the limits of my knowledge with python (which is seriously lacking) and I figured the community could probably help faster than me trying to cobble together what is left to work on.
I've done some fairly extensive testing and I'm pretty sure that the bugs list is complete. But as always, ymmv.
The intent of this script is to let you setup a FreeNAS jail and install mkvtoolnix and python 2.7 and then point this script to your movies and/or TV shows. It will systematically go through and remove all the extra tracks that are taking up space on your server.
Ultimately I want to be able to run this script as a nightly cronjob and it will automatically keep your video collections lean and mean. Currently there's a bug or two that make this impossible but with the help of the community we can fix this.
All you need to do to use this in a FreeNAS jail is the following:
# pkg install python2_7 mkvtoolnix nano
Then download the mkvstrip.py to your jail using git or manually downloading the file. Make the changes to the variables as necessary and let this script run.
NOTE: If you have many TB of videos this could take hours or days to run and could make your file shares almost unresponsive. This script will max out your pool's throughput until completed so use with care!