-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MP4 + HTML5 = MEDIA_ERR_SRC_NOT_SUPPORTED #62
Comments
FWIW in Firefox it's MEDIA_ERR_DECODE (3) and not MEDIA_ERR_SRC_NOT_SUPPORTED (4). AMP (https://github.com/aghassemi/amphtml/blob/bc101c6a67f7ef882b4842e49853263feec0cbab/src/service/video-manager-impl.js#L366) uses a 909 bytes mp4 (the one in this repo is 843). So if anyone wants to study the mp4 spec and find out what makes the differences, go for it! Not that many bytes to compare 😆 I already have enough. The ffmpeg command mentioned in the AMP source comment gives me a 1562 byte file, not 909. What is software? How do computers work? Also:
Which would already get hella close to the 843 (879). |
A few comments on the MP4 file — I found that Mac OS Finder will only display an icon preview if there is a frame larger than 16px × 16px. I believe this requirement also applies to Mac OS Spotlight preview. I noticed that some services will not accept video uploads with a timestamp of 0s. I've been using this command to generate small mp4s:
Note: The It's also possible to make a 0 second video using this:
|
When trying to use the mp4 file in a HTML5 video player, it returns a
MEDIA_ERR_SRC_NOT_SUPPORTED
error. Here's a couple of test pages (check the console):Using RawGit (which appears to use wrong Content Type):
http://codepen.io/sampotts/pen/RRxwxZ
Then tried a different CDN with correct Content Type but same error:
http://codepen.io/sampotts/pen/OXzJOG
The text was updated successfully, but these errors were encountered: