GrandDK
9th January 2009, 01:31
=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 (http://notepad-plus.sourceforge.net/uk/site.htm)
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==
<?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>
==Chapter Opening==
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.
(MKVInfo) | + Segment UID: 0xa4 0x34 0x56 0x8f 0x47 0x2f 0x72 0x99 0x92 0x80 0x86 0x0e 0x43 0x0e 0x92 0x12 at 4263
What you need to do is removing the 0x and the space between the digits. So it looks like this.
A434568F472F72999280860e430E9212
Now that is ready to add. Now you are done with the opening.
<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>
==Chapter Main==
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"
<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>
==Chapter Credits==
You do the exact same thing with the credits as you did with the Opening chapter.
Specify "ChapterEndTime" and add the "UID"
<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>
In the end you need to add the following code as you need to tell "EditionEntry" and "Chapters" that you are done with the making the ordered chapters.
</EditionEntry>
</Chapters>
And save it as Chapters.xml
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
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 (http://notepad-plus.sourceforge.net/uk/site.htm)
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==
<?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>
==Chapter Opening==
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.
(MKVInfo) | + Segment UID: 0xa4 0x34 0x56 0x8f 0x47 0x2f 0x72 0x99 0x92 0x80 0x86 0x0e 0x43 0x0e 0x92 0x12 at 4263
What you need to do is removing the 0x and the space between the digits. So it looks like this.
A434568F472F72999280860e430E9212
Now that is ready to add. Now you are done with the opening.
<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>
==Chapter Main==
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"
<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>
==Chapter Credits==
You do the exact same thing with the credits as you did with the Opening chapter.
Specify "ChapterEndTime" and add the "UID"
<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>
In the end you need to add the following code as you need to tell "EditionEntry" and "Chapters" that you are done with the making the ordered chapters.
</EditionEntry>
</Chapters>
And save it as Chapters.xml
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