Can someone tell me the technical reqs for video sequences in HTML5 games?

I've recently encountered a problem and I'm trying to fix it, but I need more information so I'm not stabbing around in the dark.

My game has an HTML5 version, and early in the game, it plays a video sequence. It works correctly on desktop in all the browsers I've tried.

However, when viewing on Android mobile devices, in Chrome or Firefox, in the latest version of the game, my video sequences are showing up as a black screen. You can hear the video's audio, and you can two-finger-tap to skip the video (so it's "playing" in a sense) but the screen is just black.

This was not the case in older versions of the game, however, I'm using a different tool now to compress my videos, as I had unrelated problems with the older one that I don't want to go into.

I suspect that MV dislikes maybe the bitrate I'm using for the videos, or something like that; the resolution and framerate should be fine as it's 720p60.

I know this page exists: https://rmmv.neocities.org/page/01_11_01.html

... but it doesn't give the technical info for the videos. Can someone on the tech end let me know if there are any other considerations for whichever of the videos (WebM or MP4) will play on Chrome/Firefox using the HTML5 version on Android phones?
the problem is most likely not the bitrate but the codec used for the compression.

Computers (Windows, Mac, Linux) have software codecs that are constantly updated.
Mobiles (Android, iOS) have hardware chips with the codecs, because their processors and resources are too slow and limited to handle software decoding of high quality videos.

But hardware chips can't be updated, they either have the correct codec or not. And using a codec that is too new for the hardware means the video can't be decoded.


There are a few other possibilities, but if it worked before and stopped working after using a new tool for compression, then most likely the new tool introduced a newer codec variant that your computers have been updated to, but the mobiles can't handle.
the problem is most likely not the bitrate but the codec used for the compression.

Thanks, in the end it was this. I assumed that mobiles used the WebM version, but I guess they use MP4. The files I get from Sony Vegas are Sony AVC MP4's, which is the wrong codec; I ran the files through Avanti and gave them the H264 codec and now it seems to work okay.

So yeah, I guess if anyone looks this up in the future - if you use Sony VEGAS and have this sort of problem, double-check the codec.

EDIT: ARGH! It's fixed but now has no AUDIO. What audio format should the MP4 video use? I had it set to OGG but that must be the wrong choice

EDIT2: Fixed it. In case anyone ever needs it, these are the settings I used:

1608462332877.png

Original thread: https://forums.rpgmakerweb.com/threads/can-someone-tell-me-the-technical-reqs-for-video-sequences-in-html5-games.131207/