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

Most upvoted comments

The problem seems to be that the ISOBMFF and QTFF specifications define the meta box differently.

The ISOBMFF spec defines meta as FullBox, having flags and version fields after the box type, and mp4box.js parses it as such.

The QTFF spec defines meta as an atom (functionally identical to an ISOBMFF Box), 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.