Skip to content

Instantly share code, notes, and snippets.

@ihatem
Last active April 4, 2020 21:47
Show Gist options
  • Save ihatem/2cfb0d6f64b0bfbfd58e18fbb8d4069e to your computer and use it in GitHub Desktop.
Save ihatem/2cfb0d6f64b0bfbfd58e18fbb8d4069e to your computer and use it in GitHub Desktop.
makemkvcon batch convert iso files

cd into ISOs files folder

cd path/to/isos/folder

loop all ISO files and convert them to mkv

# use all ISO childs 
for x in $(find . -name '*.ISO'); do 
  # make dir of /output/path/ISO_FILE.ISO/*.mkv
  mkdir -p "/output/path//${x#'./'}"; 
  # convert them all
  /Applications/MakeMKV.app/Contents/MacOS/makemkvcon mkv iso:$x all "/output/path/${x#'./'}"; 
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment