-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add block error for truncated blocks #190
Comments
there is already a "IsTruncated" field in MediaInfo report for that, anyway it may be interesting to add it in the trace too. |
was actually easier than expected to have on all elements: <block offset="47" name="Segment" size="753">
<block offset="47" name="Header" size="12">
<data offset="47" name="Name">139690087</data>
<data offset="51" name="Size" error="TRUNCATED-ELEMENT:1">742</data>
</block>
<block>[...]</block>
<block offset="772" name="Cues" size="28">
<block offset="772" name="Header" size="12">
<data offset="772" name="Name">206814059</data>
<data offset="776" name="Size" error="TRUNCATED-ELEMENT:1">17</data>
</block>
<block offset="784" name="CuePoint" size="16">
<block offset="784" name="Header" size="2">
<data offset="784" name="Name">59</data>
<data offset="785" name="Size" error="TRUNCATED-ELEMENT:1">15</data>
</block>
<block offset="786" name="CueTime" info="0" size="3">
<block offset="786" name="Header" size="2">
<data offset="786" name="Name">51</data>
<data offset="787" name="Size">1</data>
</block>
<data offset="788" name="Data">0</data>
</block>
<block offset="789" name="CueTrackPositions" size="11">
<block offset="789" name="Header" size="2">
<data offset="789" name="Name">55</data>
<data offset="790" name="Size" error="TRUNCATED-ELEMENT:1">10</data>
</block>
<block offset="791" name="CueTrack" info="1" size="3">
<block offset="791" name="Header" size="2">
<data offset="791" name="Name">119</data>
<data offset="792" name="Size">1</data>
</block>
<data offset="793" name="Data">1</data>
</block>
<block offset="794" name="CueClusterPosition" info="680" size="4">
<block offset="794" name="Header" size="2">
<data offset="794" name="Name">113</data>
<data offset="795" name="Size">2</data>
</block>
<data offset="796" name="Data">680</data>
</block>
<block offset="798" name="CueRelativePosition" size="2">
<block offset="798" name="Header" size="2">
<data offset="798" name="Name">112</data>
<data offset="799" name="Size" error="TRUNCATED-ELEMENT:1">1</data>
</block>
</block>
</block>
</block>
</block>
</block> Is it OK? Note: the test file is not good for unit testing because there are more errors due to your hard truncation. We need to find a way to create a file with only this error. |
I am curious about the position of the error. It is on the Element Data Size even when it seems like it is not the VINT of the Element Data Size which is truncated. Why not include this on the Element's block? |
Good argument. But... with error at the element's block, I am afraid about when we'll have several issues related to the Element's block for a similar argument. How will we do? "e1", "e2"... attributes? ;-) |
I prefer a delimiter rather than e1 e2. Semicolon? |
More difficult on my side, but not so much. fine. but in that case XSL must be ready for that. |
Other alternative is: <block>
<error/>
<error/>
</block> but this method doesn't work for |
let's stay with |
hello, was this improvement ever integrated? it appears that mediaconch 23.10 windows issues a false-positive for truncation on non-truncated files. starting from a valid ffv1 video file in matroska container, a new truncated file was created using the unix tool "dd" :
MediaInfo correctly identifies the truncated file as truncated (" MediaConch was then run on the files, trying the following rules :
or
in both cases MediaConch issued a warning that both files were truncated (" perhaps this is user error (incorrect way to declare the rule), or is this simply not implemented in MediaConch ? |
This is to supersede the attempted method in #136. To recreate:
broken.mkv should end with a truncated Cluster. broken.mkv passes mediaconch when it has an obvious problem.
Last Cluster of mediatrace is:
I suggest that the Cluster contain an error (also the parent elements would likely get the same error), so new output should look like:
If the approached used in transferrable to other element-based formats (QuickTime, AVI), then I suggest to use a more general error such as "TRUNCATED-ELEMENT:1" rather than "MKV-TRUNCATED-ELEMENT:1"
The text was updated successfully, but these errors were encountered: