Using Profile to Select Specific Tracks

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
agglomerator
Posts: 2
Joined: Tue Mar 13, 2012 7:55 pm

Using Profile to Select Specific Tracks

Post by agglomerator »

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.
firionicable
Posts: 20
Joined: Wed Mar 14, 2012 7:59 am

Re: Using Profile to Select Specific Tracks

Post by firionicable »

Is it possible to have a profile created where all your settings are saved? So everything you want to choose a certain settings, you just have to load your profile?Image
agglomerator
Posts: 2
Joined: Tue Mar 13, 2012 7:55 pm

Re: Using Profile to Select Specific Tracks

Post by agglomerator »

Still waiting for someone....anyone....to post an example of a profile that selects a specific track. Once I have an example I can write a shell script to automate it.

I'm trying to create a script that will do all the steps - lookup the inserted movie on IMDB and get the official title, then find the right track on the bluray disk, rip it, then when done, pass to Handbrake to rip to 720P format, putting in the appropriate directory. When that is all done, I'm going to invoke XBMC to scrape the movie to get updated info.

But first...I need an example of how to rip a specific track with Makemkvcon...all you experts out there...HELP.
smprather
Posts: 5
Joined: Mon Feb 04, 2013 2:10 am

Re: Using Profile to Select Specific Tracks

Post by smprather »

I'm also waiting. Anybody? What is the format for the xml profile file?
Woodstock
Posts: 10312
Joined: Sun Jul 24, 2011 11:21 pm

Re: Using Profile to Select Specific Tracks

Post by Woodstock »

"Format" is a text file, but you will probably want an XML-aware text editor to make sure your tags are balanced.

Save your edited files in your MakeMKV data directory, rather than in the program directory; if you don't, they will be erased at each program update. The data directory (set in your preferences) is "safe", and also searched from profiles on program start-up.
smprather
Posts: 5
Joined: Mon Feb 04, 2013 2:10 am

Re: Using Profile to Select Specific Tracks

Post by smprather »

Sorry. I already know what a text file and an xml file are. I meant to ask what the contents of the xml data should be. What are the options. Etc. Thanks.
smprather
Posts: 5
Joined: Mon Feb 04, 2013 2:10 am

Re: Using Profile to Select Specific Tracks

Post by smprather »

Oops. I just saw the sticky post on profiles. Looks like that has the answers I'm looking for. Thanks.
Post Reply