View Single Post
Old 2011-03-08, 19:33   Link #1
Fullmetal Encoder
Junior Member
 
Join Date: Mar 2011
Ordered chapters not working properly

So I found an easy way to rip and encode a DVD such that all the chapter points in the resulting MKV land precisely on I frames which define the chapters exactly as they are on the original disc. And I can do this without any Trim commands or messing around with timecodes. The chapters in MPC-HC's "Jump to" list work perfectly except when I attempt to mux the MKV with a chapter file that inserts ordered chapters such that the OP and ED would be replayed at the beginning and end of every episode (though they've been encoded only once). I should also note that the OP and ED have been encoded separately and appended (once) into one large MKV file along with all of the episodes. The chapters in my XML are arranged like so:

1. Prologue
Opening
1. Title Part A
1. Title Part B
Ending
Next Episode Preview
2. Prologue
(ordered chapter referring back to Opening using real timeline timestamps)
2. Title Part A
2. Title Part B
(ordered chapter referring back to Ending using real timeline timestamps)
Next Episode Preview
3. Prologue
(ordered chapter referring back to Opening using real timeline timestamps)

etc.... for a total of 6 episodes.

When played in MPC-HC the chapters in the "Jump to" list appear like this:

1. Prologue
Opening
Opening
Opening
Opening
Opening
Opening
1. Title Part A
1. Title Part B
Ending
Ending
Ending
Ending
Ending
Ending
2. Prologue
2. Title Part A
2. Title Part B
Next Episode Preview
3. Prologue
3. Title Part A
3. Title Part B
Next Episode Preview
4. Prologue

etc., etc....

Seeking around the chapters functions properly but the OP and ED do not replay where they are supposed to at the beginning and end of each episode. It's as if MPC-HC can't tell the difference between the ordered and unordered, regular chapters. Below is the chapter file I am using:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<!-- <!DOCTYPE Tags SYSTEM "matroskatags.dtd"> -->

<Chapters>
  <EditionEntry>
	<EditionFlagOrdered>1</EditionFlagOrdered>
    <EditionFlagHidden>0</EditionFlagHidden>
    <EditionFlagDefault>1</EditionFlagDefault>
    <EditionUID>247403937</EditionUID>
    <ChapterAtom>
      <ChapterUID>1738378134</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
      <ChapterTimeEnd>00:05:00.000000000</ChapterTimeEnd>
      <ChapterDisplay>
        <ChapterString>1. Kaze ~breeze~ Prologue</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>3672514751</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:01:57.050366666</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>Opening</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>50494851</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:03:27.006733332</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>1. Kaze ~breeze~ Part A</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>4192117663</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:12:43.029099998</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>1. Kaze ~breeze~ Part B</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>30</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:22:10.996466664</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>Ending</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>1</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:23:41.019833330</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>Next Episode</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>2</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:24:12.151199996</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>2. Machi ~town~ Prologue</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
<ChapterAtom>
<ChapterUID>3143058098</ChapterUID>
<ChapterTimeStart>00:00:00.000000000</ChapterTimeStart>
<ChapterTimeEnd>00:01:57.050366666</ChapterTimeEnd>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterDisplay>
<ChapterString>Opening</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>
    <ChapterAtom>
      <ChapterUID>3</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:25:38.070566662</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>2. Machi ~town~ Part A</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
    <ChapterAtom>
      <ChapterUID>4</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:35:01.032933328</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>2. Machi ~town~ Part B</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>
<ChapterAtom>
<ChapterUID>31430580104</ChapterUID>
<ChapterTimeStart>00:22:10.996466664</ChapterTimeStart>
<ChapterTimeEnd>00:23:41.019833330</ChapterTimeEnd>
<ChapterFlagHidden>1</ChapterFlagHidden>
<ChapterFlagEnabled>1</ChapterFlagEnabled>
<ChapterDisplay>
<ChapterString>Ending</ChapterString>
<ChapterLanguage>eng</ChapterLanguage>
</ChapterDisplay>
</ChapterAtom>	
    <ChapterAtom>
      <ChapterUID>5</ChapterUID>
      <ChapterFlagHidden>0</ChapterFlagHidden>
      <ChapterFlagEnabled>1</ChapterFlagEnabled>
      <ChapterTimeStart>00:44:53.024299994</ChapterTimeStart>
      <ChapterDisplay>
        <ChapterString>Next Episode</ChapterString>
        <ChapterLanguage>eng</ChapterLanguage>
      </ChapterDisplay>
    </ChapterAtom>

etc...
Chapter UID's have been chosen randomly and edited previously though I don't see how they could be the problem. I have enabled linking in Haali Splitter even though I'm not using it in the XML and I've tried playing the MKV in MPC-HC with both the internal Mastroska filter activated and deactivated without solving the problem. Just trying to cover all my bases.

Can anyone shed some light on what's going wrong? I've tried asking around at Doom9 and Doom10 on similar matters and haven't gotten much of a response. Incidentally, Doom10 appears to be blocking all of my posts as spam so I can't get anything more done there and so I thought I'd pop over here to see if anyone could help.

I'd very much appreciate some help with this, thank you.

Last edited by Fullmetal Encoder; 2011-03-09 at 20:10.
Fullmetal Encoder is offline   Reply With Quote