Open mattcarp opened 8 years ago
Hi, Thanks for the report. It would help if you could provide the file. If you can, please upload it here, adding mp4boxjs and the issue number in the file name: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95
What I understand from the log is that you've fed only one buffer to mp4box, which has a size of 8388608 bytes. In the middle of that buffer, there is a 'mdat' box that starts. It's big and does not end in the buffer. So the parsing stopped. If you want the parsing to continue, you should provide a new buffer that contains the bytes after that box.
The Exception comes from the fact that the file is a QuickTime file, not conformant to the ISO standard. It uses the box 'cmov' which is not supported in mp4box.js. I should make the error more visible and I could try to add support for the box, if I could have a look at that file.
Thanks for your reply. I'm uploading the file now. I've seen this on two different examples.
I'm feeding the ~8 meg buffer size, but I see the same issue on the 1 meg buffer. You'll be able to see the same behaviour on the example upload page as well.
This is indeed a .mov file (and also ProRes). However I have another example of a ProRes .mov which works perfectly with MP4Box. That file can be found here: http://www.cinemartin.com/cinec/_Sample_Videos/Red_Cameras/b_CINEC_ProRes422.mov
Thanks very much for having a look.
Hi. I have a 3.8 gig MP4 file, which plays fine in the Quicktime player. However it produces the below error message in MP4Box when it hits the
mdat
box, which is at the end of the file. This occurs when using the demo page as well as in my own implementation. Some numbers:Overall file size: 3818408565 Start position of
mdat
: 45329 Size ofmdat
: 3818363236 End position (stream.getEndPosition()): 8388608I believe the relevant error messages are:
The situation is set up when the following returns false (looks like end position is wrong?):
Below are the full logs. Any ideas? I'm happy to help however I can, and thanks for the great library.
Logs: