mp4box.js icon indicating copy to clipboard operation
mp4box.js copied to clipboard

[Help Needed] Is there any way to obtain the mp4 testcases?

Open FredZeng opened this issue 2 years ago • 1 comments

Is there any way to obtain the mp4 testcases described in test/sample-urls.js and test/qunit-media-data.js, it seems that https://download.tsi.telecom-paristech.fr/gpac/mp4box.js/mp4/h264bl.mp4 has been unabled to access anymore.

FredZeng avatar Sep 20 '23 14:09 FredZeng

Hi,

I'm looking into it, I'll get back to you

aureliendavid avatar Sep 20 '23 15:09 aureliendavid

Hi I'm stuck on this too. I'm trying to contribute to mp4box.js and get the test cases to pass, but I get tons of 404 errors. I can reproduce by simply loading this page in my browser:

https://gpac.github.io/mp4box.js/test/qunit.html

Lots of failures appear that look like:

Image

stefwalter avatar Jan 22 '25 20:01 stefwalter

Hi,

Thank you for the reminder. I did look into it at the time of the original issue. I was waiting for a reply and then I forgot about it.

In any case, the original issue came from a bad redirect config which I now fixed.

So urls like https://download.tsi.telecom-paristech.fr/gpac/mp4box.js/mp4/h264bl.mp4 should now be accessible. The test/sample-urls.js (except the group of urls "for internal testing" which are files that I don't have).

For your case @stefwalter the problem I think comes from this commit: https://github.com/gpac/mp4box.js/commit/107f0ffff7e2f5cb3163c04456a52f882ba3ced7 which assumes that the test files are local to the mp4box.js server which is not the case for the github pages hosted demos.

I think it should be changed to

var mediaTestBaseUrl = 'https://download.tsi.telecom-paristech.fr/gpac/mp4box.js/';

now that the https version exists and the redirects are correct. (I can open a PR for this)

aureliendavid avatar Jan 23 '25 09:01 aureliendavid

fixed with #427

aureliendavid avatar Jan 24 '25 12:01 aureliendavid