Page 1 of 1

Compliance of MKV files generated by MakeMKV

Posted: Wed Mar 30, 2011 12:59 pm
by xaviour
The Matroska Foundation provides a couples of command line tools to check compliance of MKV files ("mkvalidator") and optimize them ("mkclean"). When used on files
created by makemkv, "mkvalidator" outputs a lot of warnings and error. For example:

Code: Select all

ERR202: Unique element Position in Cluster at 1323 found more than once
ERR202: Unique element Position in Cluster at 1323 found more than once
ERR202: Unique element Position in Cluster at 53826 found more than once
[...]
WRN103: Unnecessary secondary SeekHead was found at 137152604
[...]
ERR0A2: The Cluster position 1299 at 1335 should be 1287
ERR0A1: The Cluster PrevSize 52494 at 53843 should be 52503
Fortunately most of the times using "mkclean" with the "--remux" option fixes it so I did not see fit to report the problem.

The bad news is that for a few files generated from DVD, "mkclean" goes into an infinite loop during the remuxing phase before the reclustering phase. Obviously, an infinite loop is a bug and "mkclean" should be fixed. The problem is that "mkclean" is meant to optimize compliant MKV files and not to repair broken MKV files. Dealing with all possible type of corrupted files would have a prohibitive cost so I doubt that the Matroska people will bother with it. At best the tool will bail out leaving me with a broken source file.

Usually such files are too big to be uploaded but I now have a 130 MB file coming directly from makemkv and I am willing to make it available to the makemkv developers in the hope that they will fix the problem.

Re: Compliance of MKV files generated by MakeMKV

Posted: Wed Mar 30, 2011 9:01 pm
by Romansh

Re: Compliance of MKV files generated by MakeMKV

Posted: Thu Mar 31, 2011 9:53 am
by mike admin
Believe it or not, that slipped without being noticed. Thanks for pointing out - should be quite easy to fix.

Re: Compliance of MKV files generated by MakeMKV

Posted: Thu Mar 31, 2011 10:42 am
by xaviour
mike admin wrote:Believe it or not, that slipped without being noticed.
Yes I do believe it. Quality control is hard. Fortunately a command line program like mkvalidator is easy
to integrate in automated regression testing. A flow using an ISO file plus makemkvcon plus mkvalidator is easy to script.
mike admin wrote:Thanks for pointing out - should be quite easy to fix.
I guess this means you have been able to reproduce it yourself so I do not need to upload any file?

Re: Compliance of MKV files generated by MakeMKV

Posted: Fri Apr 01, 2011 5:06 pm
by xaviour
Obviously the problem is still present in 1.6.6.

Re: Compliance of MKV files generated by MakeMKV

Posted: Tue Apr 12, 2011 5:45 pm
by xaviour
The problem is still present with 1.6.7.

Re: Compliance of MKV files generated by MakeMKV

Posted: Mon Apr 25, 2011 5:28 pm
by xaviour
The problem is still present with 1.6.8.

Re: Compliance of MKV files generated by MakeMKV

Posted: Sat May 28, 2011 3:12 pm
by xaviour
The problem seams to be solved in 1.6.9.

Re: Compliance of MKV files generated by MakeMKV

Posted: Sun May 29, 2011 10:48 pm
by mike admin
Should be in 1.6.10 . mkvalidator would still print bogus errors on certain audio and subtitle tracks - but that's a bug in mkvalidator.

Re: Compliance of MKV files generated by MakeMKV

Posted: Mon May 30, 2011 3:02 pm
by xaviour
mike admin wrote:mkvalidator would still print bogus errors on certain audio and subtitle tracks - but that's a bug in mkvalidator.
Care to elaborate about the bug in mkvalidator? I could not find a bug report either in the sourceforge instance of Matroska nor in the various mailling lists.

Re: Compliance of MKV files generated by MakeMKV

Posted: Mon May 30, 2011 5:11 pm
by xaviour
The problem seams to be solved in 1.6.10.

Re: Compliance of MKV files generated by MakeMKV

Posted: Tue May 31, 2011 10:03 am
by mike admin
xaviour wrote:
mike admin wrote:mkvalidator would still print bogus errors on certain audio and subtitle tracks - but that's a bug in mkvalidator.
Care to elaborate about the bug in mkvalidator? I could not find a bug report either in the sourceforge instance of Matroska nor in the various mailling lists.
mkvalidator would print an error that certain audo and subtitle tracks have non-keyframes. For PGS and TureHD that's the way it is there are both key and non-key frames in the stream.

Re: Compliance of MKV files generated by MakeMKV

Posted: Tue May 31, 2011 3:07 pm
by xaviour
mike admin wrote:For PGS and TureHD that's the way it is there are both key and non-key frames in the stream.
And are the author of mkvalidator aware of this problem?

Re: Compliance of MKV files generated by MakeMKV

Posted: Wed Jun 15, 2011 7:35 pm
by vidsquibber
That's a good question, you should think with the amount of feathers it has ruffled over here somebody would have mentioned it. how do we get in touch?

Re: Compliance of MKV files generated by MakeMKV

Posted: Thu Jun 16, 2011 9:08 am
by xaviour
vidsquibber wrote:how do we get in touch?
The best way is to use the development mailling list linked on the contact page.
Writing a technically sound message linking to a small sample video that exhibit the issue is the best way to proceed.