Problem with UIDs in mkvs created by MakeMKV
Posted: Thu Feb 24, 2011 11:30 am
The problem is that the UIDs assigned by MakeMKV to tracks and chapters are not unique. For example, track UIDs are the same as the track numbers, 1, 2, 3, and so on. This may cause various issues when processing mkv files in other tools. More details below.
I've encountered this problem when converting a DVD containing several titles (episodes of the same series). Each episode contained one chapter. MakeMKV created one mkv file for each title, preserving the tracks and chapters; so far, so good. Then, I wanted to append all these files together into one large mkv file, using mkvmerge. It worked, except for chapters: the resulting file had only one chapter, at the beginning of the file.
After a bit of investigation done by the author of mkvtoolnix, it turned out the chapters in the mkvs created by MakeMKV all had the same UID - '2' - which caused them to be merged together by mkvmerge, instead of being adjusted to point to the right places in the new, large mkv file.
After changing the UIDs to different values, appending worked fine and resulted in a file with all chapters present with their timecodes correctly adjusted to point to the correct places.
The dummy track UIDs didn't cause issues in this case, but who knows what could happen in other usage scenarios.
It would be great if MakeMKV would create proper UIDs for tracks and chapters in mkvs.
I've encountered this problem when converting a DVD containing several titles (episodes of the same series). Each episode contained one chapter. MakeMKV created one mkv file for each title, preserving the tracks and chapters; so far, so good. Then, I wanted to append all these files together into one large mkv file, using mkvmerge. It worked, except for chapters: the resulting file had only one chapter, at the beginning of the file.
After a bit of investigation done by the author of mkvtoolnix, it turned out the chapters in the mkvs created by MakeMKV all had the same UID - '2' - which caused them to be merged together by mkvmerge, instead of being adjusted to point to the right places in the new, large mkv file.
After changing the UIDs to different values, appending worked fine and resulted in a file with all chapters present with their timecodes correctly adjusted to point to the correct places.
The dummy track UIDs didn't cause issues in this case, but who knows what could happen in other usage scenarios.
It would be great if MakeMKV would create proper UIDs for tracks and chapters in mkvs.