mp4box.js: Incorrect parsing of "meta" box for screen recording file with Quicktime
I saved a screen recording mp4 file with sound with Quicktime (mp4_with_sound.mov.zip). If you open this file in the filereader.html, you can see this in the console:
[BoxParser] 'meta' box writing not yet implemented, keeping unparsed data in memory for later write
[BoxParser] Box of type '����' has a size 1751411826 greater than its container size 134
[BoxParser] Parsing of box 'meta' did not read the entire indicated box data size (missing 126 bytes), seeking forward
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (13 by maintainers)
Commits related to this issue
- Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this diff... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this diff... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- fix: Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- fix: Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- fix: Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- fix: Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom has is a container box instead of a full box. We add a flag on the stream to indicate this... — committed to stefwalter/mp4box.js by stefwalter 2 years ago
- fix: parse meta box and related boxes in in QTFF format (#459) * fix: Parse meta box differently in QTFF format In the QTFF format (ie: Quicktime .MOV files) the 'meta' atom is a container box inste... — committed to paulhiggs/mp4box.js by stefwalter a year ago
The problem seems to be that the ISOBMFF and QTFF specifications define the
metabox differently.The ISOBMFF spec defines
metaasFullBox, having flags and version fields after the box type, and mp4box.js parses it as such.The QTFF spec defines
metaas an atom (functionally identical to an ISOBMFFBox), so mp4box.js parses it incorrectly and gets confused about what comes next.I’m not sure if QTFF is supposed to be supported in mp4box.js, or what should happen when the two differ in definition.
Likely related: https://github.com/gpac/mp4box.js/issues/120
This bug should be fixed by the first commit in #433
I’ve started a set of extensions to MP4Box.js which solves this problem for me: https://github.com/stefwalter/qtffbox.js
Am I correct in assuming that such QuickTime support is outside of MP4Box.js’s scope?
@bradh I don’t believe that syntax is explicitly defined, but my main point here is the difference in syntax between the metaBox from QuickTime and the MetaBox from ISOBMFF. So far no version or flags are specified for the ISOBMFF version so the typical syntax would be sizemeta0x00 0x00 0x00 0x00 for the isobmff and size meta [4 bytes > 0] for the QuickTime MetaBox.