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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th January 2009, 01:31   #1  |  Link
GrandDK
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>
==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.

Code:
(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.

Code:
A434568F472F72999280860e430E9212
Now that is ready to add. Now you are done with the opening.

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>
==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"

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>
==Chapter Credits==

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>
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.
Code:
</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

Last edited by GrandDK; 12th January 2009 at 07:23. Reason: Guide is made
GrandDK is offline   Reply With Quote
Old 9th January 2009, 13:57   #2  |  Link
GrandDK
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?
GrandDK is offline   Reply With Quote
Old 10th January 2009, 20:32   #3  |  Link
GrandDK
Registered User
 
Join Date: Dec 2008
Posts: 23
Figured it out had to enable file Linking in Haali. i have made a little guide i will put up soon as to how to make the chapters
GrandDK is offline   Reply With Quote
Old 11th January 2009, 00:05   #4  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
Quote:
Originally Posted by GrandDK View Post
I figured it out it was because i named the file Chapter.xml instead of chapters.xml lol pretty weird
that really shouldn't have anything to do with it

Quote:
Originally Posted by GrandDK View Post
i have made a little guide i will put up soon as to how to make the chapters
not to toot my own horn but was there anything I missed in http://www.mod16.org/hurfdurf/?p=8 ?
TheFluff is offline   Reply With Quote
Old 12th January 2009, 07:13   #5  |  Link
GrandDK
Registered User
 
Join Date: Dec 2008
Posts: 23
Quote:
Originally Posted by TheFluff View Post
that really shouldn't have anything to do with it


not to toot my own horn but was there anything I missed in http://www.mod16.org/hurfdurf/?p=8 ?

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.
GrandDK is offline   Reply With Quote
Reply

Tags
chapter, ordered

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.