This shell script leverages Don Melton's video_transcoding scripts and adds my own custom settings.
Video transcoding takes a long time, especially if you are transcoding several files. I highly recommend doing this on a dedicated computer, over night, or at another time when you won't need to use your computer.
transcode.sh
may be installed using Homebrew.
- Run
brew tap alextall/tools
to tap my cask. - Then run
brew install transcode
.
transcode.sh
will offer to install required dependencies if they are not detected. You can also install them ahead of time.
- Install video_transcoding.
- Install HandbrakeCLI.
- Install ffmpeg
- Optional: Install Hazel according to Noodlesoft's instructions.
Pick a work folder and place your files to transcode inside. transcode.sh
will create several folders to organize the generated files. These will all be named with a _
prefix.
Simply run transcode.sh [File...]
from the Terminal. You may add 1 or more files separated by spaces. You may also add 1 or more directories, and any Matroska files will be transcoded.
transcode.sh
will accept just about any video you can find, but I recommend using MakeMKV to rip full quality .mkv files of your DVDs and Blu-rays. Place these files in the work folder, and Hazel will automatically trigger transcode.sh to do its work.
Set up Hazel to watch the work folder and create a rule with the following criteria:
If ALL of the following conditions are met
EXTENSION IS ".mkv"
Do the following to the matched file or folder:
RUN SHELL SCRIPT
and choose transcode.sh.