Created
February 11, 2014 08:07
-
-
Save fredrike/8930903 to your computer and use it in GitHub Desktop.
makemkv automation script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
for IMG in `find . -iname \*.img`; do | |
DIR=`dirname $IMG` | |
basename ${IMG%.img} | |
/Applications/MakeMKV.app/Contents/MacOS/makemkvcon --minlength=600 mkv iso:${IMG} all `dirname ${IMG}` | |
#rename | |
for MKV in `ls $DIR/title*.mkv`; do | |
F=`basename ${MKV}` | |
mv -v $MKV ${IMG%.img}.${F:5:2}.mkv | |
done | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The minlength of 600 reflects that the length of the video must be at least 600s (10min).