I've been spending hours trying to figure out a way to have a shell script automate the ripping of bluray disks using Makemkv and Handbrake. To simulate the Makemkv GUI version where I pick the largest track to rip, ignoring all others, I'm searching for a way to figure out the largest track to rip with a shell script. I believe I can grep the output from the makemkvcon -info option to figure out a way to determine the largest track, getting the information from the TINFO section of the -info output. See below example...file 00100.mpls is the largest track on this Harry Potter disk, and the one I want to rip.
TINFO:1,2,0,"Harry Potter and the Deathly Hallows Part 1"
TINFO:1,30,0,"Harry Potter and the Deathly Hallows Part 1 - 30 chapter(s) , 25.0 GB"
I'm stumped on how to tell makemkvcon to rip a specific track (like "00100.mpls")? Is a custom profile the way?
I've read thru all the posts in this advanced forum and there aren't any examples of doing that. There are many folks that are searching for a way to link up the command line execution of Makemkvcon and the Handbrake CLI to have a script that will automate the whole process. The Handbrake CLI portion is easily done as the command line options are well understood. The Makemkv command line options are still a black art to me.
Is there just one example someone could post on how to do this?