Using Profile to Select Specific Tracks
Posted: Tue Mar 13, 2012 8:21 pm
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,8,0,"30"
TINFO:1,9,0,"2:26:05"
TINFO:1,10,0,"25.0 GB"
TINFO:1,11,0,"26846539776"
TINFO:1,16,0,"00100.mpls"
TINFO:1,25,0,"60"
TINFO:1,26,0,"4,11,117,119,21,22,23,121,27,28,29,122,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,49,50,51,52,53,54,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,79,80,81,82,83,84,85,86,87"
TINFO:1,27,0,"t01_Harry_Potter_and_the_Deathly_Hallows_Part_1.mkv"
TINFO:1,28,0,"eng"
TINFO:1,29,0,"English"
TINFO:1,30,0,"Harry Potter and the Deathly Hallows Part 1 - 30 chapter(s) , 25.0 GB"
TINFO:1,31,6120,"<b>Title information</b><br>"
TINFO:1,33,0,"0"
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?
Thanks.
TINFO:1,2,0,"Harry Potter and the Deathly Hallows Part 1"
TINFO:1,8,0,"30"
TINFO:1,9,0,"2:26:05"
TINFO:1,10,0,"25.0 GB"
TINFO:1,11,0,"26846539776"
TINFO:1,16,0,"00100.mpls"
TINFO:1,25,0,"60"
TINFO:1,26,0,"4,11,117,119,21,22,23,121,27,28,29,122,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,49,50,51,52,53,54,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,79,80,81,82,83,84,85,86,87"
TINFO:1,27,0,"t01_Harry_Potter_and_the_Deathly_Hallows_Part_1.mkv"
TINFO:1,28,0,"eng"
TINFO:1,29,0,"English"
TINFO:1,30,0,"Harry Potter and the Deathly Hallows Part 1 - 30 chapter(s) , 25.0 GB"
TINFO:1,31,6120,"<b>Title information</b><br>"
TINFO:1,33,0,"0"
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?
Thanks.