mp4 instead of webm

Is there anyway for me to use only mp4 and not webm for videos even with a plug in.
The reason is the file size is smaller and the quality is better?
While I'm not a video expert, I believe MP4 and WEBM both allow for variable compression ratios. Data loss, file size, and decode time will vary dependent on the content and the compression algorithm.

To force MP4 video, you could try this (save as .js file, import as plugin):
JavaScript:
/*:
 * @target MV MZ
 * @plugindesc Force MP4 video.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/163338/
 * @help Free to use and/or modify for any project, no credit required.
 */
Game_Interpreter.prototype.videoFileExt = function() { return ".mp4"; }
(Core MV/MZ only falls back to MP4 when the system doesn't support WEBM, so choosing MP4-only might have side effects on some systems.)

You might also need WEBM files during development, to see them in the editor.
The reason is the file size is smaller and the quality is better?
That's not true. As caethyril mentioned, it depends on how you compress the videos. But if one were to generalize, webm videos tend to favor a smaller file size over quality, since the format is optimized for web usage, and MP4 tends to favor quality over file size.

However, there's something important that you need to be aware of. The most popular codecs (H.264 and AAC) used for MP4 files are proprietary, so there are legal/licensing considerations that need to be taken into account if you choose to use them. You're probably going to need to purchase a license both to distribute the codecs with your game, and to distribute videos that are encoded with those codecs.

This is why RPG Maker uses the webm format by default. I'm pretty sure that NW.js also disables MP4 playback by default, for the same reason, so if you're using the default deployment method for your game, caethyril's code might not work for you. You might have to replace the ffmpeg.dll file that's in your nwjs folder first.

TLDR: Just use webm.
Don't videos in RPG Maker games require both WEBM and MP4? To my knowledge...the MP4 is for the audio, and the WEBM is for the video, and every game I've ever made requires both components for video cutscenes.
.the MP4 is for the audio, and the WEBM is for the video, and every game I've ever made requires both components for video cutscenes.
absolutely wrong.

both files contain both audio and video, the reason why both are required is the different deployment.
Which goes back to the licensing:
all mobiles have hardware-decoding of MP4 included and the licence for that is paid, so the MP4 are for them to show.
On the PC and MacOS, there is no guarantee that a MP4 player and codec is installed and Kodakawa didn't want to pay for a licence for distributing their own player, so they went the webm route there.
absolutely wrong.

both files contain both audio and video, the reason why both are required is the different deployment.
What kind of deployment would I have where they wouldn't be required, though?
Okay so i will need a license to use mp4. That sucks i will need to get a better video compressor that keeps quality. Thanks for the reply everyone
What kind of deployment would I have where they wouldn't be required, though?
From the instructions:

1701138665755.png
Oh my God LOL......I was doing more work than I had to.

Original thread: https://forums.rpgmakerweb.com/threads/mp4-instead-of-webm.163338/