gpac / mp4box.js

JavaScript version of GPAC's MP4Box tool
https://gpac.github.io/mp4box.js/
BSD 3-Clause "New" or "Revised" License
1.96k stars 332 forks source link

Javascript throws error for following video #120

Open novomanish opened 7 years ago

novomanish commented 7 years ago

The mp4box library throws an error when reading this video : https://drive.google.com/open?id=0B5wbzFBZ42-FMEFKUjBBQ0dGOUk.

"Error: [BoxParser] Box of type  has a size 1024 greater than its container size 131" --> Unlimited box size not supported

While other libraries like mediainfo works fine.

diegocr commented 6 years ago

fwiw, turns out that is a .mov renamed as .mp4

Complete name               : R:\_Freezing_LiveCameraToGoogleDoc.mp4
Format                      : MPEG-4
Format profile              : QuickTime
Codec ID                    : qt   0000.00 (qt  )
File size                   : 15.8 MiB
Duration                    : 19 s 63 ms
Overall bit rate mode       : Variable
Overall bit rate            : 6 952 kb/s
Encoded date                : UTC 2016-09-29 16:51:13
Tagged date                 : UTC 2016-09-29 16:51:19
Writing library             : Apple QuickTime
com.apple.quicktime.locatio : +37.7830-122.4070+009.106/
com.apple.quicktime.make    : Apple
com.apple.quicktime.model   : iPhone 6s Plus
com.apple.quicktime.softwar : 10.0.2
com.apple.quicktime.creatio : 2016-09-29T08:54:28-0700

MOV is not supported by mp4box.js, while mediainfo.js naturally does work since it only needs to extract the metadata out of the video.

Did you/any found any JS lib that is able to stream/play movs?

shiyi000 commented 5 years ago

@diegocr I have the same problem,how do you see the video of the file format for mov?

cconcolato commented 3 years ago

The file loads fine in https://gpac.github.io/mp4box.js/test/filereader.html.

ke-to commented 3 years ago

@cconcolato I'm having the same problem, same error with videos taken on iPhone and screen recordings taken on macOS.

The file loads fine in https://gpac.github.io/mp4box.js/test/filereader.html.

I have reproduced it above.

cconcolato commented 3 years ago

can you share a file?

ke-to commented 3 years ago

@cconcolato I ran the analysis with chrome version 87.0.4280.88

taken on iPhone 12 iOS: 14.2.1 https://drive.google.com/file/d/1CFiYXR6BfyAbsbb0X94VulNPlSbiKw06/view?usp=sharing

screen recordings taken on macOS macOS: Big Sur 11.1 https://drive.google.com/file/d/1sPfKEK6udb-4TC6sEsyYyZK9FrT1ImuH/view?usp=sharing

cconcolato commented 3 years ago

Thank you @ke-to . The file you share contains some structures that are not ISOBMFF compliant but rather Quicktime compliant. If I find the proper documentation, I'll add support for them.

bartadaniel commented 2 years ago

Is there any development on this one? I'm running into this error quite a lot. https://drive.google.com/file/d/1aJi8g2IHNabJKC0LnvgaQj6gI2z0iBC5/view?usp=sharing