Using fully animated gif for special attacks (video freezes)

Hello everyone! I am having serious problems with what I am trying to implement in my game, let me explain.
Every time a character casts a special ability an animated scene (.webm format) appears through a common event-yanfly sequence.
The problem is that if the file weighs more than 1 mb there are many chances that the game freezes. The heavier the file, the more likely, I attach a video showing an example of this.

My question is, is there a way to solve this error? I searched a lot but the only “solution” I found is a plugin called “animated pictures” but I don't think it works for what I want to do, since the animations I do have many frames.
Thank you very much!



can you give a bit more information than the filesize?
filesize is always compressed, and sometimes highly compressed, especially for pictures.

but to display on screen, the file needs to be uncompressed, and that can use up a lot of RAM and exceed cache limits.

Additionally, a freeze like that can also be a stack problem or a logic problem, so a screenshot of whatever action sequence you use and the common event would be helpfull as well.
can you give a bit more information than the filesize?
filesize is always compressed, and sometimes highly compressed, especially for pictures.

but to display on screen, the file needs to be uncompressed, and that can use up a lot of RAM and exceed cache limits.

Additionally, a freeze like that can also be a stack problem or a logic problem, so a screenshot of whatever action sequence you use and the common event would be helpfull as well.
The freeze happens with any of the 3 animations, it varies depending on (?)
I use a program (Handbrake) to compress the files and it works as long as it is less than 1mb, more than 1mb it freezes. The problem is that it's a white animation with a 3 sec duration, if I wanted to make it in color or make it longer it would be impossible not to exceed 1mb of weight.

Edit: My game uses a resolution of 1355x720

This is what is contained in the skill:

<Cooldown: 6>

<Armor Penetration: 15%>

<Critical Rate: 20%>

<MP Cost: 35%>

<Action Cutin>



<Target action>

motion skill: user

wait for animation

motion abnormal: user

wait for animation

camera focus: user

zoom: 200%, 60

wait for zoom

common event: 14

motion missile: user

move user: target, front, 1

wait for animation

shake screen: 9, 9, 10

action effect: target

action effect: target

animation 92: target

reset camera: 20

reset zoom: 20

</Target action>

And this is the common event.
I dont know what information is relevant to you regarding the vid file itself, if you want I can upload the compressed file and the normal file (vid example) on gdrive, the only difference that I see is the weight, the compressed is around 600kb and the normal one (freeze) is 2.63mb
1729265799940.png
what is the screen size of the video?

EDIT: and it's length in seconds?
The error messsage is always there if you play a video for the first time.
It seems to be a bug of MV, but it doesn't freeze the game, at least not for me.
Haven't tried playing a video during a battle though.

Have you tried playing the video on the map? Doesn't it still freeze?
what is the screen size of the video?

EDIT: and it's length in seconds?

Here the two files, both are the same animation, the lower weight and the one is used on the example video

The error messsage is always there if you play a video for the first time.
It seems to be a bug of MV, but it doesn't freeze the game, at least not for me.
Haven't tried playing a video during a battle though.

Have you tried playing the video on the map? Doesn't it still freeze?
Yes, back in the day I have tried to play some video in events with npcs for testing purpouses without problems, but for combat as in the example that is where I really need it, it does not work.
This is quite strange. From your video the movie played but didn't disappear when it stopped.
Because MV's video player is barebone enough so there's not much to check.
If the ended or error event of the video is triggered, the video should hide itself and show the game screen again.
So the most likely cause of the problem is the ended event is not fired.

This can happen when the browser doesn't play well with the webm file.
You can try an online converter and convert the file to see if it fixed your problem.
There should be some web sites that convert small video for free.

Original thread: https://forums.rpgmakerweb.com/threads/using-fully-animated-gif-for-special-attacks-video-freezes.172675/