Skip to content

Instantly share code, notes, and snippets.

@fredrike
Created February 11, 2014 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fredrike/8930903 to your computer and use it in GitHub Desktop.
Save fredrike/8930903 to your computer and use it in GitHub Desktop.
makemkv automation script
#/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
@fredrike
Copy link
Author

The minlength of 600 reflects that the length of the video must be at least 600s (10min).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment