Matroska Nested Ordered Chapters

May 9, 2019 ยท View on GitHub

This type of chapter automatically results from the combination of Nested Chapters and Ordered Chapters.

No information can be found in the Matroska Specs.

In practice, players only use the top-level Ordered Chapters to create the virtual timeline. For all Nested Chapters, only the start time is used for a chapter marker in the timeline. No playing time is calculated for the chapter.

Full nested ordered chapters

In this case, the playing time must be calculated for each Nested Chapters.

ChapterStartEndDurationCurrent total playing time
Chp 10s10s10s10s
+Chp 1.110s20s10s20s
+Chp 1.250s60s10s30s
++Chp 1.2.120s30s10s40s
Chp 230s50s20s60s
+Chp 2.150s60s10s70s

The Matroska test file is not played in any player as described here, as only the two top-level chapters (Chp 1 and Chp 2) are used. Therefore, the playing time is only 40 seconds instead of 70.

Test files

XML Chapter file

Matroska file