You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MP4Box attempts to create a javascript per audio sample when it references uncompressed PCM sample data. This is also quite common with Quicktime .mov files.
If it doesn't crash the tab, just hit "Load" again and again.
Result: In Chrome: "Aw Snap!" Error code 5.
This is due to the buildTrakSampleLists creating a javascript object for each audio sample! MP4Box.js should detect uncompressed audio formats and allow the client to access those samples, without allocating excessive javascript memory.
Any updates on this issue? I think a good starting point here would be to just simply ignore the uncompressed samples, as opposed to creating a JavaScript object per sample, since that will crash my browser tab if the duration of the file is > 5m.
Following up on this with some additional thoughts. As the bug report describes, we encounter this issue when there is uncompressed audio in the container. We don't actually want to access the audio information, just the video. We are considering just setting ISOFile.sampleListBuilt to true before parsing, in order to suppress building of the sample lists. We can then just build lists for video via ISOFile.buildTrakSampleLists. This feels like manipulating implementation details though, so we wanted to get your feedback. Is this a valid approach?
Activity
louderspace commentedon Oct 24, 2025
Any updates on this issue? I think a good starting point here would be to just simply ignore the uncompressed samples, as opposed to creating a JavaScript object per sample, since that will crash my browser tab if the duration of the file is > 5m.
kstreeter commentedon Jan 27, 2026
Following up on this with some additional thoughts. As the bug report describes, we encounter this issue when there is uncompressed audio in the container. We don't actually want to access the audio information, just the video. We are considering just setting
ISOFile.sampleListBuiltto true before parsing, in order to suppress building of the sample lists. We can then just build lists for video viaISOFile.buildTrakSampleLists. This feels like manipulating implementation details though, so we wanted to get your feedback. Is this a valid approach?