Specify maximum title length?

Everything related to MakeMKV
Post Reply
foxripper
Posts: 3
Joined: Wed Jan 19, 2022 6:10 pm

Specify maximum title length?

Post by foxripper »

I did not see via the command line any options to limit the maximum length of a title. Seems counter-intuitive, but in certain cases it makes sense.

I have a DVD with older TV episodes on it. Each is roughly 20-35 minutes in length, and there is a distinct title for each. There are additional titles that are as long as the sum of all the other shorter titles (length in minutes and in number of chapters). I suspect this is the "Play all episodes". Including this title would rip the same information, but as one single file, rather than broken up per episode.

See titles #2 and #3 below:

Code: Select all

Title #1 has length of 21 seconds which is less than minimum title length of 120 seconds and was therefore skipped
Title #2 was added (17 cell(s), 2:24:58)
Title #3 was added (17 cell(s), 2:24:58)
Title #4 was added (3 cell(s), 0:24:13)
Title #5 was added (3 cell(s), 0:24:12)
Title #6 was added (3 cell(s), 0:24:12)
Title #7 was added (3 cell(s), 0:24:06)
Title #8 was added (3 cell(s), 0:24:13)
Title #9 was added (2 cell(s), 0:24:02)
Is there a way to avoid titles longer than some specified minutes? There are many discs I own like this and I would greatly prefer to provide this parameter.
Last edited by foxripper on Wed Jan 19, 2022 9:28 pm, edited 1 time in total.
Woodstock
Posts: 10324
Joined: Sun Jul 24, 2011 11:21 pm

Re: Specify maximum title length?

Post by Woodstock »

Not the first time this has been requested. Mike has (so far) not responded to the idea, positively or negatively.
foxripper
Posts: 3
Joined: Wed Jan 19, 2022 6:10 pm

Re: Specify maximum title length?

Post by foxripper »

I couldn't determine if MakeMKV is open-source... if so, I'd be happy to implement that myself and push a merge request.
Woodstock
Posts: 10324
Joined: Sun Jul 24, 2011 11:21 pm

Re: Specify maximum title length?

Post by Woodstock »

MakeMKV has open source components and proprietary components. In the Linux version, they're separate, but the Mac and Windows versions are only distributed in binary.

It may be possible to script the command line portion to implement it; I an no expert on MakeMKV's CLI, though.
foxripper
Posts: 3
Joined: Wed Jan 19, 2022 6:10 pm

Re: Specify maximum title length?

Post by foxripper »

I can script other aspects, such as opening the tray when done:

Code: Select all

diskutil eject /dev/disk4
But manipulating the title selection seems to have little customization other than via the GUI [1]

The only other options are potentially binary editing, but if the source code were open, I'd love to contribute. At least to the command-line utilities. Those could easily be made more powerful and customizable (and allow alternative GUIs to be implemented on top!).

[1] https://makemkv.com/developers/usage.txt
colonelslanders
Posts: 6
Joined: Wed May 22, 2024 3:27 pm

Re: Specify maximum title length?

Post by colonelslanders »

Definitely remains a useful and desired feature. I'm ripping Star Trek TNG, which consists of about 40 blu rays. Every episode is repeated in a title that contains multiple episodes, so it's doubling the rip time to grab the multi-episode files that I then have to delete.
Epitaph
Posts: 18
Joined: Tue Oct 17, 2023 6:44 pm
Location: Norfolk, VA USA

Re: Specify maximum title length?

Post by Epitaph »

colonelslanders wrote:
Sat Jul 20, 2024 5:10 pm
Definitely remains a useful and desired feature. I'm ripping Star Trek TNG, which consists of about 40 blu rays. Every episode is repeated in a title that contains multiple episodes, so it's doubling the rip time to grab the multi-episode files that I then have to delete.
Maybe I am missing something. I am going back through my collection and pulling subtitles and extras for my collection. I am still on my films and will be moving to TV Shows soon. Anyway, my question is... why not just uncheck that longer file? When I am ripping a TV Series, I will right click and unselect all. I'll then look at each episodes length and select only the files that I want to rip. Just curious how you're ripping.
colonelslanders
Posts: 6
Joined: Wed May 22, 2024 3:27 pm

Re: Specify maximum title length?

Post by colonelslanders »

Late reply, but the reason is that I'm using the console app (makemkvcon), not the GUI app.
flojo
Posts: 107
Joined: Thu Jun 22, 2023 4:27 am
Location: El Paso

Re: Specify maximum title length?

Post by flojo »

If you're capable of basic scripting, there is 2 options I know that can help retrieve the length:

This uses the ABi with Python, but I *think* you'll have to use python as I didn't see a way to output the data, it seems purely like a lib.
viewtopic.php?p=147075#p147075

I wrote this, it simply parses the stdout makemkvcon to JSON and somewhere in there it gives a key/value pair in the fashion of "p_timecode": "0:02:32":
viewtopic.php?f=10&t=32370&p=143367#p143367

With the script I wrote it's pretty easy and the ABI script is easy too, especially considering the example.py gives a really good place to insert your own routine at line 36: https://github.com/me-dex/mmkv_abi/blob ... ple.py#L36 There's also a timestamp function here: https://github.com/me-dex/mmkv_abi/blob ... __.py#L279
Post Reply