The proper way to extract title ids on the command-line
Posted: 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:
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
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"
Thanks