Change Default Numbering of Titles

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
plittlefield
Posts: 64
Joined: Wed May 10, 2017 11:04 am

Change Default Numbering of Titles

Post by plittlefield » Fri Sep 21, 2018 10:37 am

How does makemkvcon number the Titles when reading the discs and then saving MKV files?

This is a DVD with 8 titles (according to lsdvd)...

Code: Select all

$ lsdvd
Disc Title: DVD_VIDEO
Title: 01, Length: 00:58:01.120 Chapters: 13, Cells: 13, Audio streams: 01, Subpictures: 01
Title: 02, Length: 00:29:27.720 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01
Title: 03, Length: 00:28:35.400 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01
Title: 04, Length: 00:15:46.200 Chapters: 02, Cells: 03, Audio streams: 01, Subpictures: 01
Title: 05, Length: 00:05:36.280 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 01
Title: 06, Length: 00:07:57.600 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 01
Title: 07, Length: 00:00:48.800 Chapters: 05, Cells: 05, Audio streams: 01, Subpictures: 00
Title: 08, Length: 00:00:14.000 Chapters: 02, Cells: 02, Audio streams: 01, Subpictures: 00
What command do I need to get DVD Title: 02 (00:29:27.720) ?

Code: Select all

makemkvcon --minlength=1000 mkv disc:0 1 /tmp/
or

Code: Select all

makemkvcon --minlength=1000 mkv disc:0 2 /tmp/
Thanks,

Paully

plittlefield
Posts: 64
Joined: Wed May 10, 2017 11:04 am

Re: Change Default Numbering of Titles

Post by plittlefield » Tue Jun 23, 2020 1:45 pm

It seems we have to 'work out' which tracks from a disc the software will count as valid based on the default 'minimum length' of 120 seconds.

I guess I could change my settings or add the option to make it 0 seconds which would then copy all the tracks in the same order as the DVD.

For example, this disc has 8 tracks...

Code: Select all

$ lsdvd
Disc Title: BBCDVD1368
Title: 01, Length: 00:00:00.480 Chapters: 01, Cells: 01, Audio streams: 00, Subpictures: 00
Title: 02, Length: 00:27:25.320 Chapters: 06, Cells: 06, Audio streams: 03, Subpictures: 00
Title: 03, Length: 01:29:36.480 Chapters: 19, Cells: 19, Audio streams: 01, Subpictures: 01
Title: 04, Length: 00:29:51.480 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01
Title: 05, Length: 00:30:17.480 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01
Title: 06, Length: 00:29:28.480 Chapters: 07, Cells: 07, Audio streams: 01, Subpictures: 01
Title: 07, Length: 00:29:22.000 Chapters: 06, Cells: 06, Audio streams: 01, Subpictures: 01
Title: 08, Length: 00:01:26.560 Chapters: 01, Cells: 01, Audio streams: 01, Subpictures: 00
...so, the software would copy DVD tracks 02, 03, 04, 05, 06, 07 (as shown in the lsdvd output).

I do not want the largest track, which is 'Title: 03, Length: 01:29:36.480'

In order to do this via the command line, I have to then 'work out' the following by counting from 0 and only including the tracks more than 2 minutes...

0 = Title: 02, Length: 00:27:25.320
2 = Title: 04, Length: 00:29:51.480
3 = Title: 05, Length: 00:30:17.480
4 = Title: 06, Length: 00:29:28.480
5 = Title: 07, Length: 00:29:22.000

Code: Select all

makemkvcon mkv disc:0 0 /path/to/output/
makemkvcon mkv disc:0 2 /path/to/output/
makemkvcon mkv disc:0 3 /path/to/output/
makemkvcon mkv disc:0 4 /path/to/output/
makemkvcon mkv disc:0 5 /path/to/output/
...or, in one command...

Code: Select all

for n in 0 2 3 4 5; do makemkvcon mkv disc:0 $n /path/to/output/; done;
I find all this a bit of a chore (which I don't mind so much, it works the brain) but perhaps as a Feature Request, we could have an extra line on the output to say which tracks it would copy or has copied?

e.g.

You will find my suggestions in bold...

MakeMKV v1.15.1 linux(x64-release) started
Using direct disc access mode
Using LibreDrive mode (v06 id=E064BA3E3F81)
Cells 6-end were skipped due to cell commands (structure protection?)
Title #2 was added (5 cell(s), 0:27:23) as track 0
Cells 7-end were skipped due to cell commands (structure protection?)
Cells 19-end were skipped due to cell commands (structure protection?)
Title #3 was added (18 cell(s), 1:29:28) as track 1
Cells 20-end were skipped due to cell commands (structure protection?)
Cells 7-end were skipped due to cell commands (structure protection?)
Title #4 was added (6 cell(s), 0:29:48) as track 2
Cells 8-end were skipped due to cell commands (structure protection?)
Cells 7-end were skipped due to cell commands (structure protection?)
Title #5 was added (6 cell(s), 0:30:14) as track 3
Cells 8-end were skipped due to cell commands (structure protection?)
Cells 7-end were skipped due to cell commands (structure protection?)
Title #6 was added (6 cell(s), 0:29:26) as track 4
Cells 8-end were skipped due to cell commands (structure protection?)
Title #7 was added (6 cell(s), 0:29:20) as track 5
Title #8 has length of 86 seconds which is less than minimum title length of 120 seconds and was therefore skipped
Operation successfully completed
Saving 1 titles (track 5) into directory /home/paully/ToDo/Dad's Army/
1 titles (track 5) saved
Copy complete. 1 titles saved.

Obviously, wording and layout suggestions are welcome.

Thanks.

Paully

drxenos
Posts: 17
Joined: Sun Mar 17, 2019 12:55 pm

Re: Change Default Numbering of Titles

Post by drxenos » Thu Jun 25, 2020 1:37 pm

It's not pretty or ideal, but what I do is parse MakeMKV's output and defined a mapping between the mpls or m2ts #, and MakeMKV's title #. The downside is my tools have to call MakeMKV twice, once to get the mapping, and then again to do the extraction. I cache the mapping so that extracting additional titles only need to run once.

My two wishes for MakeMkv command line are:
1) extraction using the playlist # directly.
2) the ability to specify more than one title at a time (not just 1 or all).

DrX

mike admin
Posts: 3898
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Change Default Numbering of Titles

Post by mike admin » Thu Jun 25, 2020 1:47 pm

Two very first stickies in this subforum :)
viewtopic.php?f=10&t=18313
viewtopic.php?f=10&t=4566

drxenos
Posts: 17
Joined: Sun Mar 17, 2019 12:55 pm

Re: Change Default Numbering of Titles

Post by drxenos » Thu Jun 25, 2020 2:02 pm

I've looked into using libmmbd before, but couldn't find much in the way of documentation.

Post Reply