MV - Game sometimes freezes upon playing video

Hi 🙂

Recently for my party limit break I've made some videos that play during the fight. Sometimes (like 50% of the time), when one of these play, the game freezes, and nothing happen anymore. The sound effect (which is seprated from the video) plays til the end and then nothing, just a frozen image.

About the files :
- Same issue on 2 different fils, respectively 6.04 Mo & 5.19 Mo.
- Originally .avi files converted to .mp4 and .webm using VLC → H-264 Codec and 6000 kb/s (I wanted a somewhat decent quality).
- Both .mp4 and .webm are inclunded in the movies folder.

In game :
1677271487748.png


The action sequence :
  1. Sets the value of Variable called LIMIT BREAK ID to 1 (for Actor 1).
  2. Plays Common Event 100

Here is the content of the Common Event 100 :
  • Some damage calculation (can't be seen on the screen)
  • Check the value of the Variable LIIMIT BREAK ID (all actors call for the same Common Event).
  • If LIMIT BREAK ID == 1
    • Plays the sound effects for Liesel's limit break
    • Waits 5 frames
    • Plays another SE
    • Plays the video.
  • The Battle4_B and Flash are to be played after the video ends.
If LIMIT BREAK ID = 2, there's a bit more damage math going on first but the video part is nearly identical.

1677271999967.png


It works sometimes :
  • When I open up the battle tester to test it, it works fine.
  • If I wait a few turns and try it again, it generally freezes.
  • During play testing, same thing. If you boot the game, rush into a fight and run the video, all good, but after some time playing it freezes.
Could this be a cache issue? Too many stuff in there and it stops working?
I also get this error, but it also appears when everything runs at it should (maybe the requestAnimationFrame thing is just because the game lags when the console is open though).
1677272702999.png


I tried adding some wait, as suggested in this thread, it just waits after the video.
Also tried this fix, although the issue described isn't identical, but didn't help.

I'm at a loss here. Maybe I'm just missing something. Any idea? 🙁
I encountered exactly the same issue and I wasn't able to find a working solution. Using YSP_VideoPlayer was working for shorter videos, but when a certain length was exceeded, it always resulted in the same problem you are describing. Sometimes the video played without any issues, sometimes it froze with the game still running in the background. Maybe it works for you, if the video length is rather short?
In the end I decided to remove all videos as it really frustrated me.
Thanks for the quick reply! I tried YSP_VideoPlayer. The dropbox link on this forum was dead so I had to dig a little. I can't make it work though: I get this message.
1677308785284.png


This is my event. In the loop I added the v44 thing so I know how many ticks it took to load the video, it always returns 0. I know I have a decent computer but this is too good to be true :LZSlol:

1677308812052.png


I tested the same event on a blank project and it seemed to work-ish (video played but bug still happened), so it's probably a plugin compatibility issue.

I also read on another post somewhere that files needed to be > 5Mo, so I lowered the quality.
But it didn't do the trick :LZSsad: The videos are just 6 seconds each



EDIT

After some more time invested into it, I got YSP Video Player to work by messing with the plugin order (who would've thought). It's not a perfect score, the videos still bug from time to time, but more importantly, they don't freeze the game anymore! The video might be frozen but once the 6 seconds are over, the game resumes as it should.

Given this entire thing being way above my level and the relative triviality of these videos to begin with, I'm calling it good enough :LZSsmile:
Thank you for your help!
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/mv-game-sometimes-freezes-upon-playing-video.155277/