Get/Return video's dimensions (height and width)

Is there a scriptcall to return a video's dimensions?
I would like to know the video's height/width. Or if this is not possible, is there a way to determine the aspect ratio in game (4:3 vs 16:9 for example)?

Any help is appreciated!
What are you trying to do? Why do you—the game developer—not know the aspect ratio (or resolution) of your video(s) in advance? If you're trying to do something where the aspect ratio of a video is unknown to you (e.g. and thereby needs to be fetched), then what are you actually trying to do?
It is hard to tell in which way you're referring. If you are using Windows, you can click on the file and right-click to properties (or alt + enter). In details, it will have the dimensions. If you want to do it while the game is playing to get the window size, then you would use this question or this one.

window.screen.height;
window.screen.width;

There was a post on preference for resolution, but it is still up in the air. It is highly dependent on the device and the individual. Some people like 16:9 and some like 4:3. Some enjoy pixel retro look, but some prefer high gloss.
If there are multiple videos in a folder, some in 4:3 and some in 16:9 or 9:16, etc and if the videos are selected randomly-- than in order to efficiently utilize certain functionality such as zoom and repositioning I need to know the video's dimensions or aspect ratio to differentiate which numeric inputs to set for X,Y positions and scaling.

I feel like the engine is capable of identifying the aspect ratio or dimensions of the video it is playing, I just don't know the exact way to place that information into a variable.

If I can get that into variables, something like:

$gameVariables.value(878) = video.height
$gameVariables.value(879) = video.width

then I would be good to go.
actually it would be easier to simply use a video converter to recalculate all videos to the same size and aspect ratio, because changing that during video play has a lot of problems including the need for additional processing that may cause a lot of lag.
actually it would be easier to simply use a video converter to recalculate all videos to the same size and aspect ratio, because changing that during video play has a lot of problems including the need for additional processing that may cause a lot of lag.
The videos are different sizes intentionally.
Some simulate watching TV 16:9 or 4:3, some simulate receiving a cell phone message 9:16, etc.

I already have zoom and movement functionality working perfectly and there is no lag. What I need is simply the video height /width in a variable lol.

I have common events to reposition and zoom in/out for each of the possible dimensions from 240p all the way up to 1080p in Tall, Wide, or Square aspect ratios. The infrastructure is correct and working, my issue is I need to identify which kind of video is being played so that I can have the engine select the correct common event to run.

There is no problem with the videos or their formats, I simply want to identify them using the game engine.

I considered adding an identifier string to the video titles VIDEONAME to VIDEONAME_1080p for example. Then issolating the _1080p into a variable to have the engine read this but then I still have to check and rename lots of videos and write more code when it seems like the engine has to know what the height and width is to play the video so I should be able to place that into variables. Maybe I overestimated the engine, but I'm pretty sure RMMZ knows the height and width. I hope so anyway. Thanks for the suggestion, but converting the videos is in no way what I am trying to do.
EDIT: MZ is actually different here, see @TobyYasha 's post below.

In MV you can do Graphics._video.width and Graphics._video.height - I assume MZ would probably be the same.

Just make sure to only use these after the video has fully loaded - you can check with Graphics._videoLoading to see if it's still loading.
In MZ the Video is now its own static class.
If you want to access the width / height of this class you have to do it through the "element" property.
Just make sure you check if the "element" property is valid, otherwise you'll get an error.
JavaScript:
let width = 0;
let height = 0;
if (Video._element) {
    width = parseInt(Video._element.style.width);
    height = parseInt(Video._element.style.height);
}

And if you want to check if the video is loading, you can make use of the "loading" property(based on Mac15001900's suggestion).
JavaScript:
Video._loading
Thank you all for the help.

Code:
let width = 0;
let height = 0;
if (Video._element) {
    width = parseInt(Video._element.style.width);
    height = parseInt(Video._element.style.height);
}
$gameVariables.setValue(879, width);
$gameVariables.setValue(878, height);

I am now able to place the values into variables which is exactly what I wanted. Very grateful!

Original thread: https://forums.rpgmakerweb.com/threads/get-return-videos-dimensions-height-and-width.175064/