[BUG] Video keeps freezing randomly at begin of MapLoad

skodone

Villager
Member
Joined
Nov 22, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
RMMV
User: Skodone/Ben
Bug: Video keeps freezing randomly at begin of MapLoad
How to Replicate the Bug:
  • When one puts an event with a videocall (WEBM) at the beginning of a map, so it is triggered as soon as possible via player touch, the video is very likely to freeze after a small amount of frames
  • I provided a fully stripped project based on the area of the game the bug happens almost 90% of the time.
  • The 5MB limit is exceeded (5.2mb ZIP) due to the video that causes the problem. I included exactly the video we had the most problems with and it has 3.5mb. The other videos we used are less likely to cause the problem but sometimes do. With this video the bug was best to reproduce.
  • How to trigger: Start the game and immediately push right so the actor would touch the event as soon as possible. The video will start playing and most likely be stuck. Touch the event only once. If the video is stuck touching the even again is more likely to start the video functioning.
  • DOWNLOAD: path-out.net/test/pathout.zip
Other:
We have a fully working build of the game on Steam since a year and no reports of this behavior from the steam version.
We recently decided to localize the game to reach a broader market and encountered the bug after adding subtitles to the videos in game.
What i tried so far:
- I started a complete new project with no plugins and inserted a single event with the video: video freezes after some frames
- i stripped our original project from all plugins one after the other to see if one of the plugins was the fault.
- i tried to alter the core.js to not start the video before the data is loaded, unsuccessfully

My thoughts on the problem:
either the video is indeed started before it is fully loaded or decoded and therefore crashes on play
or it is a chromium problem since the update, where a user interaction is required for videos to start playing.

I would greatly appreciate if you could have a look into this problem and hope that you are better at finding a solution
than I am...
Thanks a lot in advance :) and all the best,
Ben from the PathOut team
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
14,059
Reaction score
7,754
First Language
English
Primarily Uses
RMMV
So, I'm not going to lie, I'm not the most knowledgeable when it comes to things like this. But I was curious and downloaded the project. Running in Microsoft Edge, I do not encounter problems with the video, the best I can tell. It seems to run the whole thing (ends with him saying something about cliches?).

However, in Chrome, I get an error message that says Failed to load: data/Actors.json, even though that file is in the folder.

I dunno what is happening, but I'd maybe first post in MV Support just to see if there is a solution and that this is not necessarily a bug. It will probably take a while for Archeia to look at this thread for approval, so it couldn't hurt to try.
 

skodone

Villager
Member
Joined
Nov 22, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
RMMV
So, I'm not going to lie, I'm not the most knowledgeable when it comes to things like this. But I was curious and downloaded the project. Running in Microsoft Edge, I do not encounter problems with the video, the best I can tell. It seems to run the whole thing (ends with him saying something about cliches?).

However, in Chrome, I get an error message that says Failed to load: data/Actors.json, even though that file is in the folder.

I dunno what is happening, but I'd maybe first post in MV Support just to see if there is a solution and that this is not necessarily a bug. It will probably take a while for Archeia to look at this thread for approval, so it couldn't hurt to try.

Ok I will repost this thread in the rpgmaker mv tech support.
Thank you very much :)
Did this happen to you when you deployed the project for web and then opened it in chrome?
 

audo

Warper
Member
Joined
Oct 2, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
N/A
This is a little old but I have actually just encountered this issue and got a fix for it.
The problem seems to be from it lagging out while trying to load frames. If the video is preloaded via a plugin it would probably work.
But this is not necessary if it is encoded with "-lag-in-frames 25" lag in frames is 0 to 25.
I am guessing that means it will not start playing the video until it has loaded 25 frames so is not likely to lag out and stall.

I encoded my video using ffmpeg using settings I hunted down for a higher quality webm video.

ffmpeg -r 24 -f image2 -i %05d.png -y -vb 384k -ab 96k -bt 64k -maxrate 900k -ar 44100 -ac 2 -r 20 -async 1 -vcodec libvpx -acodec vorbis -strict experimental -g 120 -level 216 -profile 0 -qmax 42 -qmin 0 -slices 4 -threads 6 -lag-in-frames 25 out.webm

This will take a folder full of images named like 00001.png 00002.png... and make them into a webm at 24 frames per second. Change the -r # to make it a difforent frame rate. Change -maxrate 900k to make it higher or lower quality.
If you want to change a video instead of -i %05d.png it would be something like -i nameOfMyVideo.avi

If you just run it with fewer settings then I got a video of 0.4 mb instead of 9 mb.
ffmpeg -r 24 -f image2 -i %05d.png -vcodec libvpx -acodec vorbis -lag-in-frames 25 out2.webm
 

skodone

Villager
Member
Joined
Nov 22, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
RMMV
This is a little old but I have actually just encountered this issue and got a fix for it.
The problem seems to be from it lagging out while trying to load frames. If the video is preloaded via a plugin it would probably work.
But this is not necessary if it is encoded with "-lag-in-frames 25" lag in frames is 0 to 25.
I am guessing that means it will not start playing the video until it has loaded 25 frames so is not likely to lag out and stall.

I encoded my video using ffmpeg using settings I hunted down for a higher quality webm video.

ffmpeg -r 24 -f image2 -i %05d.png -y -vb 384k -ab 96k -bt 64k -maxrate 900k -ar 44100 -ac 2 -r 20 -async 1 -vcodec libvpx -acodec vorbis -strict experimental -g 120 -level 216 -profile 0 -qmax 42 -qmin 0 -slices 4 -threads 6 -lag-in-frames 25 out.webm

This will take a folder full of images named like 00001.png 00002.png... and make them into a webm at 24 frames per second. Change the -r # to make it a difforent frame rate. Change -maxrate 900k to make it higher or lower quality.
If you want to change a video instead of -i %05d.png it would be something like -i nameOfMyVideo.avi

If you just run it with fewer settings then I got a video of 0.4 mb instead of 9 mb.
ffmpeg -r 24 -f image2 -i %05d.png -vcodec libvpx -acodec vorbis -lag-in-frames 25 out2.webm

that sounds interesting! I will definitely try this and thank you a lot for still replying to this old thread it could make all the difference!
 

skodone

Villager
Member
Joined
Nov 22, 2018
Messages
8
Reaction score
0
First Language
German
Primarily Uses
RMMV
Im happy to say Audos solution did the trick for me too! I reconverted all my vids with his settings and no more stuttering so far!

Thanks so very much!!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I'm an adult married woman

Being a hobbyist dev and also loving my job is like nothing to lose during both busy days and holidays ~ ♥
I tried to free some space in my phone and this is what I find: https://framapic.org/Dio090k00QQ6/8tiNZ3AV5IYw.png
...Almost 60% of all images in my gallery is just that- books and notes and guides...
I've bought a set of Harry Potter to entertain myself. However, my crazy geography homework accounts for more than half of my homework.
Girls with swords are cool on their own. Then I give them guns. *Profit*

Forum statistics

Threads
93,449
Messages
912,502
Members
122,976
Latest member
ssalum
Top