![]() |
Link #1 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 36
|
MKV Ordered Chapters: User's Manual
Recently an MKV feature known as "ordered chapters" or "ordered editions" has become increasingly common. The purpose of this thread is to clarify some common concerns about said feature.
Q: Why use ordered chapters? A: Ordered chapters, when combined with MKV segment linking, provides an easy way to save a lot of diskspace and improve video quality for TV anime. This is not because ordered chapters compress video or anything. Instead, ordered chapters allows you to encode the opening and/or ending sequences of a series into a file of their own, and then have the OP/ED automagically inserted into each episode at the appropriate places. This saves space, because instead of encoding the OP/ED into every episode, they are only encoded once, so the main episode can be made smaller. It is particularly true because opening themes in particular tend to have a lot of high-motion content that doesn't compress very well. In some extreme cases I've seen, cutting out the OP of an episode reduced the filesize by about 25%. Q: What do I need to do to get it working properly? A: Not much. Install the CCCP, put the linked files together in one folder, play the main file (usually the episode itself, not the OP/ED), and it will look and behave just like an episode encoded in the standard fashion. If you've installed Haali's splitter separately, go to its settings, go to "input" and make sure "try to open linked files" is set to "yes". Q: What about other players or operating systems? A: Unfortunately this feature (which is a part of the MKV standard) is not yet implemented in any other splitters than Haali's. This means that if you try to watch linked files in (for example) MPlayer or VLC, they will just play whatever the file contains, without inserting content from other files. Q: Can I rename the files? A: Yes. The linking is done by something called a Segment Unique Identifier (SUID) and not by the filename, so feel free to rename the files. However, remuxing the file will change the SUID and hence break the linking, so don't do that. Q: But that sucks, I want to change the subtitle font and remux! A: Well actually I lied about "no remuxing", it can actually be done, just not with mkvmerge. Instead you will need to use Haali's GDSMux (comes with the CCCP as well as with the standalone splitter package). How to do it: 1) Use mkvinfo (comes with the mkvtoolnix package, if you have mkvmerge you have this) to find out the SUID of the file you want to remux. It should look something like this: Code:
Segment UID: 0xa2 0xa6 0xa2 0xa7 0x45 0x22 0x6b 0x85 0x85 0xd4 0x75 0x5e 0x6c 0xf4 0x67 0x60 2) Use mkvextract to extract the chapters XML file. 3) Start GDSMux. On the Input tab, rightclick and hit "Add source". Add the MKV file you want to remux and whatever files you want to change. 4) Go to the Chapters tab and hit "load from file". Load the .xml file you just extracted. 5) Go to the Global options tab and paste the Segment UID in the appropriate field there. 6) Select an output file using the button at the bottom. 7) Hit start. 8) Wait. 9) Profit. Q: Does this feature increase CPU usage? A: No. It might increase file load time slightly but unless you have 300+ MKV files in the same folder it's highly unlikely to be much of a noticeable problem. Q: I don't like this. Is there any way I can put it back to normal? A: Yes, it's possible but a bit complicated. Basically, what you need to do is: 1) extract the chapter files 2) find out where the split points between different files are 3) split the main file into multiple files (around the split points) using mkvmerge 4) append files to each other with mkvmerge so that everything is in the right order in one file. Q: This is relevant to my interests and I would like to know more! A: See this page.
__________________
Last edited by TheFluff; 2010-11-17 at 14:22. |
![]() |
![]() |
Link #2 | |
Gregory House
![]() |
Quote:
I seriously hope this becomes supported on mplayer before it gets too popular. Unlike most of people, I like watching the OP and ED each episode.
__________________
|
|
![]() |
![]() |
Link #3 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 36
|
Write a (perl) script that uses mkvtoolnix to read SUID's and parse chapters and then automatically mkvmerges the OP/ED into each file. I may or may not do this later on in my copious spare time.
__________________
|
![]() |
![]() |
Link #5 | ||
9wiki
![]() |
Quote:
Quote:
On the other hand, I can completely understand why it's come to this. Using Kurenai as an example (since hey, it's the show that made the splash by coming out in split files), the main episode content takes up 175 megabytes in 1280x720, but the OP takes up another 100 megabytes! (Its lovely ED comes in at a svelte 17 megabytes, but that's neither here nor there.) With data rates like that, I'm OK with putting the cart ahead of the horse this way so long as the pressure it puts on others to catch up is successful. In the meantime, we really aren't affected too much. Just loading the OP, episode, and ED files into a playlist in MPlayer or VLC is pretty close to seamless. The exception is that if you do this any episode-specific content will come in between the OP and ED, regardless of where it's supposed to be. The only way this normally affects us is that it means the next episode preview comes before the credits, which bugs the crud out of me, but I can live with for the time being. No telling when MPlayer and VLC will catch up, but please, every one... beg. ![]()
__________________
|
||
![]() |
![]() |
Link #7 |
Junior Member
Join Date: May 2008
|
Hi!
Talking about Kurenai, and since it's also my first time with split files, I' m trying the "But that sucks, I want to change the subtitle font and remux!" thing. I'm stuck at 4) with the XML chapters file. When I try to load it, an error occurs: GDSmux tells me that the "XML Parser failed". Any idea where's this coming from? |
![]() |
![]() |
Link #10 | |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 36
|
Quote:
That said, if you want to do it the proper and guaranteed-to-work-in-all-cases way, post a link to or paste (in spoiler tags) the XML file so we can have a look at it.
__________________
|
|
![]() |
![]() |
Link #11 |
AS Oji-kun
Join Date: Nov 2006
Age: 73
|
As another member of the Linux/mplayer crowd, I won't be happy to see this become a trend soon, either. I don't have any real bandwidth limits so I'd just as soon torrent the complete files. Why not release shows both ways? Releasing versions that only people using the Haali splitter on Windows can watch easily seems a bit unfair.
I realize this is a part of the Matroska specification, but it seems a bit premature to move entirely to this system until the player software that supports chapters is more widespread. I'm not trying to revive old arguments about H.264 vs XviD or MKV vs AVI where there were valid reasons to switch concerning file sizes, picture quality, and support for multilingual content. From TheFluff's description, ordered chapters currently offer a benefit to people with limited bandwidth or disk space who happen to be using a player that incorporates Haali. For the rest of us, having the option to download complete episodes should still be supported.
__________________
|
![]() |
![]() |
Link #12 | ||
makes no files now
Join Date: May 2006
|
Quote:
Quote:
And with regard to the rest, it's not like you can't view the file at all on *nix/mac systems. If you care about the opening and ending so much, you can always watch it as you'd usually would (just that you'll have to keep in mind when to open/close the opening and ending files during the episode), or even create a playlist which may do something similar like the chapters do under proper playback circumstances. Also considering that most people don't watch the opening and ending each time, it's more of an issue related to effort I'd say.
__________________
|
||
![]() |
![]() |
Link #13 | |
Gregory House
![]() |
Quote:
It's not that I'll get angry at the fansubbers that implement this, it's just that it's a natural frustration from being left out, that's all.
__________________
|
|
![]() |
![]() |
Link #14 | |
Junior Member
Join Date: May 2008
|
Quote:
It works if you remux it without changing its content. It also works when you replace the .ass file by another .ass file. But if you disable any track, or if you add a subtitle track and don't disable the original one, it doesn't work anymore. Well, this is enough for my needs basically. But I'm still interested in the "proper and guaranteed-to-work-in-all-cases way". So I've posted the chapters xml file here. It's been extracted from the episode file using MKVextract GUI 1.6.3. |
|
![]() |
![]() |
Link #15 |
Pioneer in Fansub 2.0
Join Date: Aug 2007
|
MKVExtract GUI doesn't extract the XML chapters properly, you should use it through commandline to get the proper chapter file.
Code:
mkvextract chapters filename.mkv > chapters.xml Spoiler for [BSS] kurenai 06 XML chapters:
__________________
|
![]() |
![]() |
Link #16 |
Excessively jovial fellow
Join Date: Dec 2005
Location: ISDB-T
Age: 36
|
Yeah, one of the basic rules with linking is that all the linked files need to be encoded with the same settings and have the same number and type of tracks, or the decoders will become horribly confused.
__________________
|
![]() |
![]() |
Link #18 |
Prospective Cog
Join Date: Jan 2008
Location: Los Angeles, CA
|
I'm another Mac user that is somewhere close to disillusionment regarding this latest 'trend.' All of it seems very sloppy to me, while adding a healthy dose of confusion. I've always hated these developments which seem to compromise exclusivity for moderate technological gain.
In any case, is there anyone who can explain to me in simple terminology how I can recombine an episode that has been dissembled already? Say, for example, Kurenai Episode 6? |
![]() |
![]() |
Link #19 | |
makes no files now
Join Date: May 2006
|
Quote:
So split main file at 00:21:09.851. Will give you two files, 001 (episode) and 002 (preview). You append 001 on the opening, then ending on 001, and 002 on the ending. Also I think you'll have to check "No chapters" when appending the files... or not. /me looks at Fluff
__________________
Last edited by martino; 2008-05-15 at 04:35. |
|
![]() |
![]() |
Link #20 | |
Junior Member
Join Date: May 2008
|
Quote:
The splitting goes well, but MKVmerge refuses to append the files. It says "the formats do not match". Talking about Kurenai 6, I'm not sure there is an easy way to recombine it... |
|
![]() |
Tags |
mkv, ordered chapters, wiki candidate |
Thread Tools | |
|
|