View Single Post
Old 3rd January 2018, 11:31   #278  |  Link
Maal656
Registered User
 
Join Date: Aug 2016
Posts: 13
Quote:
Originally Posted by hubblec4 View Post
For a long time an other user asked me the same. And this is not so easy, and nowhere supported.
At first:
Splitting the entire mkv by all chapters is not the right way, because chapters often are not at the end or start of an m2ts file.
In the chapter.xml for a multi-edition mkv, there are "hidden" chapters which are in synchronous to the m2ts files.
When you cut the mkv then there. But it is not so easy to know which hidden chapters belongs to an m2ts, and sometimes matches a normal chapter to an m2ts also.

And, I can not say if MTX cut it correctly, but I guess.

It is not on my TODO list but in my head.
I have to create a "MTX-cutting option file" while the Multi-Edition-mkv editor runs. And additional for each edition a mux-option file.
Many work :-) maybe in a far future or not, because I'm sure the Matroska support will increase in the next years.
My idea would be to work only with the MKV (which is the file I own currently), and not with any m2ts file... If I had to extract only one edition from a m2ts/bluray, I could use programs like MakeMKV, which make this work perfectly, correcting also the linking points when needed.

Working as an example (very simple) of one MKV with two editions:

Edition 1
Chapter 1 - 00.000.000 to 00.010.000
Chapter 2 - 00.010.000 to 00.025.000
Chapter 3 - 00.025.000 to 00.050.000
Chapter 4 - 00.050.000 to 00.100.000
Edition 2
Chapter 1 - 00.100.000 to 00.110.000
Chapter 2 - 00.010.000 to 00.025.000
Chapter 3 - 00.025.000 to 00.030.000
Chapter 4 - 00.110.000 to 00.210.000
Chapter 5 - 00.050.000 to 00.100.000

As can be seen, without taking into consideration the information from ordered chapters, the MKV would have a duration of 00.210.000.

Extracting the first edition is really easy: Loading the MKV in MKVToolnix it is only necessary to split it at time 00.100.000 (End time of first edition). The first part created would be the first edition, and its chapters would be those of first edition of chapters file, without any change or correction:

Chapter 1 - 00.000.000
Chapter 2 - 00.010.000
Chapter 3 - 00.025.000
Chapter 4 - 00.050.000

Extracting the second revision it not so easy and would need some calculations (For these calculations the "hidden" chapters are considered as "normal" chapters):

* The MKV must be splitted in the points where the times in the chapter file are not correlative:

Chapter 1 - 00.100.000 to 00.110.000
Chapter 2 - 00.010.000 to 00.025.000
Chapter 3 - 00.025.000 to 00.030.000
Chapter 4 - 00.110.000 to 00.210.000
Chapter 5 - 00.050.000 to 00.100.000

When ordering this times, the entire MKV (without taking into consideration information of ordered chapters) should be splitted in different parts, with following times:

Part 1 - 00.000.000 to 00.010.000 --> Not used in edition 2
Part 2 - 00.010.000 to 00.030.000
Part 3 - 00.030.000 to 00.050.000 --> Not used in edition 2
Part 4 - 00.050.000 to 00.100.000
Part 5 - 00.100.000 to 00.110.000
Part 6 - 00.110.000 to 00.210.000

To create the new MKV of second edition, these parts must be joined in one MKV, with the correct order:

Part 5 + Part 2 + Part 6 + Part 4

Finally, the chapter times must be also corrected:

Chapter 1 - 00.000.000
Chapter 2 - 00.010.000
Chapter 3 - 00.025.000
Chapter 4 - 00.030.000
Chapter 5 - 00.130.000

With an so simple example the process would be easy, with with a real movie, with a lot of chapters and jumps caused by different editions it would become a nightmare...

Obviously if the MKV has more that two editions, for the third, fourth, etc. the process would be similar.

Quote:
Originally Posted by hubblec4 View Post
Which player you are using?

When ever it is possible to you, then use LAVFilters, best Matroska support!! LAV is supported by many players.
mpv has limited Matroska support. Medium-Liniking is working but no Editions.
VLC has maybe the best Matroska support for Linux. VLC 3.0 could be interessting, Steve is fixing some mkv-parser issues.
When playing in computer, I use MPC-HC, which works with the ordered chapters with no problem... In VCL it is possible to select the second edition but then fails (I think there is a bug...)

The problem is that other players (KODI, etc.), players available in Android systems (KODI, MX Player, etc.) and Smart TVs and Bluray Players does not support the ordered chapters, so it is not possible to select the second edition of the movie. Thats the reason I were interested in a "quick process" to extract this second edition, and play it in a non-compatible player.

Regards, and !!

PD. By the way, I've open a question in "MKVToolnix bug tracer" requesting information about how to split a MKV by chapters, when there are ordered chapters...

https://gitlab.com/mbunkus/mkvtoolnix/issues/2185
Maal656 is offline   Reply With Quote