2011-03-08, 19:33 | Link #1 |
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... 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. |
2011-03-12, 04:50 | Link #2 |
Junior Member
Join Date: Dec 2009
|
at first glance i see you are missing the ChapterSegmentUID for opening and ending, without this the media player has no idea that you are referencing to a different file...
You should read this: http://forums.animesuki.com/showthread.php?t=66444 |
2011-03-12, 09:16 | Link #3 |
Senior Member
Fansubber
|
You don't need to specify the segment UID unless you're linking a section in from a different file. He said the OP and ED are in the same file as the episodes, so that should be fine.
As I posted over at Doom10, both start and end times are required for all chapters in an edition flagged as ordered. Add end times to the chapters missing them and see if that works. |
2011-03-20, 23:11 | Link #4 |
Junior Member
Join Date: Mar 2011
|
Ordered chapter SUID linking not working properly.
Well, I have managed to get all of the ordered chapters I need set up. But now I am having a another problem with them. This time it relates to the segment linking. I processed a second DVD. This time I haven't included any OP or ED for it but instead am trying to link to the OP and ED in another file which does include the encoded content. The problem is that even though I have followed the examples I've seen on the internet as closely as I can these chapters do not even show up in MPC-HC. It's only the chapters for which I've specified an SUID to link to that aren't showing up. They also do not play in the stream. My intention is to have the first occurrence of the OP and ED visible in MPC-HC's "Jump to" list while hiding subsequent occurrences. I obtained the SUID for the file with the encoded OP and ED from MKVInfo. That SUID was generated automatically when that MKV was created. I have suspected that I may need to create a new edition for these linked chapters but that doesn't make much sense to me as there isn't anything about that being necessary in TheFluff's article on segment linking. I have also tried different forms for the SUID and different placement within the ChapterAtom to no avail.
As I understand it, all I should have to do is properly specify the SUID of the file where the OP and ED reside and reference the beginning and ending of that chapter on the files "real" timeline. I should probably add that both files have the same number of tracks with the audio, video and subtitles handled in the same way for both. Both files were encoded with x264 CRF 11. Below is a snippet of my current chapters file: 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>1</EditionUID> <ChapterAtom> <ChapterUID>516808551</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterTimeStart>00:00:00.000000000</ChapterTimeStart> <ChapterTimeEnd>00:01:44.037366666</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Prologue</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>11111111111</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterSegmentUID format="hex"> a31d86dea09a3a49bbf0a73a7a18c518 </ChapterSegmentUID> <ChapterTimeStart>00:01:57.050366666</ChapterTimeStart> <ChapterTimeEnd>00:03:27.006733332</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Opening</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>877906240</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterTimeStart>00:01:44.037366666</ChapterTimeStart> <ChapterTimeEnd>00:10:21.145366666</ChapterTimeEnd> <ChapterDisplay> <ChapterString>07. Yume ~dream~ Part A</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>451665860</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterTimeStart>00:10:21.145366666</ChapterTimeStart> <ChapterTimeEnd>00:20:43.133733332</ChapterTimeEnd> <ChapterDisplay> <ChapterString>07. Yume ~dream~ Part B</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>22222222222</ChapterUID> <ChapterTimeStart>00:22:10.996466664</ChapterTimeStart> <ChapterTimeEnd>00:23:41.019833330</ChapterTimeEnd> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterSegmentUID format="hex"> a3 1d 86 de a0 9a 3a 49 bb f0 a7 3a 7a 18 c5 18 </ChapterSegmentUID> <ChapterDisplay> <ChapterString>Ending</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>392795022</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterTimeStart>00:20:43.133733332</ChapterTimeStart> <ChapterTimeEnd>00:21:14.265099998</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Next Episode</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>702845116</ChapterUID> <ChapterFlagHidden>0</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterTimeStart>00:21:14.265099998</ChapterTimeStart> <ChapterTimeEnd>00:22:44.188466664</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Prologue</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> <ChapterAtom> <ChapterUID>111111111112</ChapterUID> <ChapterFlagHidden>1</ChapterFlagHidden> <ChapterFlagEnabled>1</ChapterFlagEnabled> <ChapterSegmentUID format="hex"> a31d86dea09a3a49bbf0a73a7a18c518 </ChapterSegmentUID> <ChapterTimeStart>00:01:57.050366666</ChapterTimeStart> <ChapterTimeEnd>00:03:27.006733332</ChapterTimeEnd> <ChapterDisplay> <ChapterString>Opening</ChapterString> <ChapterLanguage>eng</ChapterLanguage> </ChapterDisplay> </ChapterAtom> |
2011-03-21, 02:39 | Link #5 |
Junior Member
Join Date: Mar 2011
|
False alarm
Please disregard the above post. I thought that I would make a few alterations to the chapters in the file containing the OP and ED to correct some spelling errors for aesthetic reasons and had to re-mux the new chapters file. After specifying the new SUID in the second file containing the linked chapters I played the file and discovered that everything was working as it should.
Instead of deleting my previous post I thought I would reply with a solution for those who may encounter similar difficulties. Try simply demuxing the chapters you have and reapplying them to your files with all the linked files in the same directory. Although the problem I previously described was present while both files were in the same directory, apparently something about remuxing the chapters into the source file solved the problem. |
|
|