The proper way to extract title ids on the command-line

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
Message
Author
nag1516
Posts: 1
Joined: Fri May 10, 2013 7:46 pm

The proper way to extract title ids on the command-line

#1 Post by nag1516 » Fri May 10, 2013 8:18 pm

I have a script that automates my usage of makemkv. I'm hitting an issue when using the --minlength command-line option. I will highlight my issue using the title The Avengers as an example.

With --minlength omitted, 'makemkv info' shows that The Avengers has 10 titles. The title I am interested in turns out to be title id 1, playlist 00800.mpls. Using title id 1 with 'makemkv mkv' produces my desired result.

If however I use --minlength=3600, 'makemkv info' indicates that the disc has 2 titles. This time, according to the output, playlist 00800.mpls is title id 0. Of course, using title id 0 with 'makemkv mkv' does not produce my desired result. Title id 0 corresponds to 00200.mpls.

So using different minimum lengths, I can produce different title info results:

Code: Select all

    TINFO:1,16,0,"00800.mpls"
        vs 
    TINFO:0,16,0,"00800.mpls"
I'm using the id field of the message to derive the id of the title. Is this not the correct thing to do? How do I get the real/unfiltered title id while also using --minlength? I could modify the script to extract the info twice, once without a minimum length and once with, but that seems unnecessary.

Thanks

Chetwood
Posts: 982
Joined: Mon Aug 30, 2010 9:16 am

Re: The proper way to extract title ids on the command-line

#2 Post by Chetwood » Sat May 11, 2013 4:39 am

Can you post your script when it's finished?
MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink: DVD Shrink batch processing
Offizieller Uebersetzer von DVD Shrink deutsch

Post Reply