Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Dec 2008
Posts: 23
|
Ordered chapters
=Ordered Chapters=
Well i just learned this nice feature and wanted to share my knowledge. This is for advanced encoders as you will need to cut up audio and subtitles and match them to the Opening/Episode/Credits Ordered chapters is mainly used for series where you have the same Opening/Ending. This method is used to save space as you would only need x1 of both Opening and Ending. The chapter is made in XML language in this guide i will keep it simple and only teach what is nessecary for making a ordered chapter file. Well let's get to it. First you need to enable "Linked files" in haali. Find Haali in your start menu open it select "Input" and enable "Try to open linked files". First i would suggest that you get Notepad++ as it also has the XML Language editor that will make it alot easier for you to edit the chapters. Download Link Here is a finished ordered chapter file where you have the Opening/Main/Ending. Copy all the underneath text into notepad++ and goto "language" and choose "XML" ==Chapter Example== Code:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> <Chapters> <EditionEntry> <EditionFlagHidden>1</EditionFlagHidden> <EditionFlagDefault>1</EditionFlagDefault> <EditionFlagOrdered>1</EditionFlagOrdered> <ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterSegmentUID format="hex">A434568F472F72999280860E430E9212</ChapterSegmentUID> <ChapterDisplay> <ChapterString>OP</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterDisplay> <ChapterString>Main</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterSegmentUID format="hex">864d920682794e1683865b39f254f9d0</ChapterSegmentUID> <ChapterDisplay> <ChapterString>ED</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> </EditionEntry> </Chapters> Let's start with the Opening. The only settings we need to alter in this section is "ChapterTimeEnd" and "ChapterSegtmentUID" ChapterTimeEnd will specify when to change to the next chapter. The best way to check the precise end time is with AVSP. Now we need to find the "UID" for the Opening you can do that with "MkvInfo" this tool comes with "Mkvmerge". Open MkvInfo up choose the Opening mkv file remember that it must not be altered in any way after this as the UID will change Though it will not change if you change the filename. So that means you need to put in audio and mux it before checking the UID. You should save the file to text as we need to alter the UID a bit. Here is it unaltered from the txt MkvInfo creates. Code:
(MKVInfo) | + Segment UID: 0xa4 0x34 0x56 0x8f 0x47 0x2f 0x72 0x99 0x92 0x80 0x86 0x0e 0x43 0x0e 0x92 0x12 at 4263 Code:
A434568F472F72999280860e430E9212 Code:
<ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterSegmentUID format="hex">A434568F472F72999280860E430E9212</ChapterSegmentUID> <ChapterDisplay> <ChapterString>OP</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> Now we will focus on the episode itself. The only thing you need to alter here is the "ChapterEndTime" Again use AVSP to get the precise endtime. start time should just be "00:00:00.000000000" as this option is if you want to skip some of the start time. If you don't have a "Next weeks preview" you can goto the next section now. This can be useful if there is a "Next week preview". What you want to do here is "Appending" the "Next week preview" to the episode itself with Mkvmerge. Write in the time where the episode itself ends as we need the credits shown before we show "Next weeks preview" So copy this section again underneath the Credits section (we will make that in the next section) Now the start time is the endtime of the episode and endtime is as usual the endtime of the total clip in this case "Episode + Next weeks preview" Code:
<ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterDisplay> <ChapterString>Main</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> You do the exact same thing with the credits as you did with the Opening chapter. Specify "ChapterEndTime" and add the "UID" Code:
<ChapterAtom> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:00:00.000000000</ChapterTimeEnd> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterSegmentUID format="hex">864d920682794e1683865b39f254f9d0</ChapterSegmentUID> <ChapterDisplay> <ChapterString>ED</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> Code:
</EditionEntry> </Chapters> It is only the episode itself that needs the chapters.xml as it will just read the Opening and Ending. A special thanks to Adenozin who helped me understand the basics of Ordered Chapters Last edited by GrandDK; 12th January 2009 at 07:23. Reason: Guide is made |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Dec 2008
Posts: 23
|
I figured it out it was because i named the file Chapter.xml instead of chapters.xml lol pretty weird.
anyways now that i could mux it another problem arised it does not load the 2 files from the UID's it only makes 2 chapters OP and Main if i press Main it just jumps 00:01:30 into the same file. am i missing something here? |
![]() |
![]() |
![]() |
#4 | Link | ||
Excessively jovial fellow
Join Date: Jun 2004
Location: rude
Posts: 1,100
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: Dec 2008
Posts: 23
|
Quote:
1. Well it did. I don't know why but as soon as i changed the name Mkvmerge could mux the files. 2. I have read that and it was very confusing or atleast for me. and the guide i have mixed together also has a complete template for Opening/Main/Ending Guide added. Last edited by GrandDK; 12th January 2009 at 07:24. |
|
![]() |
![]() |
![]() |
Tags |
chapter, ordered |
Thread Tools | Search this Thread |
Display Modes | |
|
|