I have quite a few videos that are 16:9 in aspect ratio that I need to show in my game, is there a way to change the aspect ratio and revert?
I have found quite a few ways to change it but none dynamically.
It's possible, but why not make the whole game 16:9?
you can use the script function to set screen size in an event's script command before and after the play movie, but it needs to be a set screen size for that. But on the other hand you don't want to set it dynamically because if that ends up smaller than the video that video won't play, so that is not a problem.
you can open a plugin in a text editor to search for the function, for example yanfly's core or the community core as they both contain the function.
but as I said before, you CANNOT use an aspect ratio, you have to use a fixed screen size - preferably the same screen size as the video is in. That way you don't have to bother with calculating aspect ratios.