Webm issue - displays a black screen after it finishes

Bruce

Active member
Hello all,

I started learning about webm function, but I am having an issue where the Webm video displays a black screen for a few seconds after it finishes.

As you can see the code below that I want to summon Shiva with @cmd playwebm "data/scenes/Shiva.webm" 0
then spawn the ShivaFX entity to damage the enemies on the screen.
It is working as intended, but the problem is
there is a black screen shown up for a few seconds after the webm video finishes which causes frames #1 to xx in the ShivaFX entity to skip or play during the black screen.
Basically, the ShivaFX entity only plays somewhat the 2nd half of the animation.
How do I prevent the black screen to show up after the webm video?
I hope it makes sense, thank you for your help.

Code:
anim freespecial1
    hitflash    bflash
    hitfx    data/sounds/beat2.wav
    sound    data/chars/alex/CallShiva.wav
    delay    5
    offset   49 65
    frame    data/chars/alex/01.gif
    delay    5
    offset   65 69
    frame    data/chars/alex/02.gif
    delay    7
    offset   73 78
    frame    data/chars/alex/03.gif
    bbox     79 18 24 83
    delay    2
    offset   83 96
    @cmd     playwebm "data/scenes/Shiva.webm" 0
    frame    data/chars/alex/04.gif
    @cmd     projectile 1 "ShivaFX" 0 0 0
    delay    5
    frame    data/chars/alex/04.gif
 
Solution
@Bruce Usually the engine will freeze until the webm video is finished, causing the entities to not proceed with their animations. In addition, if this black screen is not a part of the ShivaFX, it seems to be a part of your webm video, you may need to create another webm without the black screen part.

As an example look how Axel will freeze the special attack until the webm ends with no black screen.
My webm videos don't have any black screen at the end.
I just played around with the video option and found out that set Video Backend to OPENGL will cause this black screen issue.
I set it to SDL, it is working as intended.

Thank you
@Bruce Usually the engine will freeze until the webm video is finished, causing the entities to not proceed with their animations. In addition, if this black screen is not a part of the ShivaFX, it seems to be a part of your webm video, you may need to create another webm without the black screen part.

As an example look how Axel will freeze the special attack until the webm ends with no black screen.
 
@Bruce Usually the engine will freeze until the webm video is finished, causing the entities to not proceed with their animations. In addition, if this black screen is not a part of the ShivaFX, it seems to be a part of your webm video, you may need to create another webm without the black screen part.

As an example look how Axel will freeze the special attack until the webm ends with no black screen.
My webm videos don't have any black screen at the end.
I just played around with the video option and found out that set Video Backend to OPENGL will cause this black screen issue.
I set it to SDL, it is working as intended.

Thank you
 
Solution
I just played around with the video option and found out that set Video Backend to OPENGL will cause this black screen issue.
This is strange, the video I posted was recorded using OPENGL and there's no black screen. Something may be wrong with your webm video or the entity.
 
This is strange, the video I posted was recorded using OPENGL and there's no black screen. Something may be wrong with your webm video or the entity.
Huh, that's weird... I converted my videos to webm 1080p V8, audio as 160kb mp3 44.1khz using HandBrake software.
I am using the OpenBor template from here:
Openbor Template
OPENGL definitely causes the black screen in my case... no clue what's going on...
I have tried to run it with the latest build too. Lately I discoverer there are bboxes around every entity, and I don't know how to get rid it of these bboxes...
I did not modify the character entity that much... all I did was adding more freespecials to it and changed the video resolution to 1080p to try... why the bboxes shown up on them...
 
Lately I discoverer there are bboxes around every entity, and I don't know how to get rid it of these bboxes...
Did you try pressing the screenshot button in the pause menu for the options menu? There should be Debug Settings under System Options text unless you're using a very older version.
 
@Bruce,

This video I made will walk you through the collection box debug and show you how to turn them off/on.



HTH,
DC
Did you try pressing the screenshot button in the pause menu for the options menu? There should be Debug Settings under System Options text unless you're using a very older version.

I did go to those options and checked before, and they were all disable...
Those bboxes didn't show up when I first downloaded the template. then lately they started showing up.
Obviously, I must have done something to trigger them. At first I thought I accidently turned on the debug mode, so I went there and checked.
Surprisingly, they were all disable which makes no sense. I will go to those options and check again when I get home.
 
Last edited:
I did go to those options and checked before, and they were all disable...
Those bboxes didn't show up when I first downloaded the template. then lately they started showing up.
Obviously, I must have done something to trigger them. At first I thought I accidently turned on the debug mode, so I went there and checked.
Surprisingly, they were all disable which makes no sense. I will go to those options and check again when I get home.
Uhh, sorry guys, I feel so stupid. The front is not very clear, so I misread it. The bbox debug was enable.....
Still need to figure out why OpenGL is causing the black screen ,and it even crashes the game a lot of times.
The stage music stops playing after webm finishes as someone mentioned on the site. I need to find the script for it to resume the stage music properly later.
Thank you all
 
@Bruce Usually the engine will freeze until the webm video is finished, causing the entities to not proceed with their animations. In addition, if this black screen is not a part of the ShivaFX, it seems to be a part of your webm video, you may need to create another webm without the black screen part.

As an example look how Axel will freeze the special attack until the webm ends with no black screen.
Is there anyway I can adjust the webm volume by script/code? The webm volume is always very low in the game; therefore, I had to adjust volume way above the cutoff-limit using the sound editor software. The sound quality deteriorates as the result.

Thank you
 
Still need to figure out why OpenGL is causing the black screen ,and it even crashes the game a lot of times.
Please, download this webm file and replace yours. I'm not having the black screen problem with this file and in case you don't have too it means that your video file can be the problem, then you will need to render it again.

Is there anyway I can adjust the webm volume by script/code? The webm volume is always very low in the game; therefore, I had to adjust volume way above the cutoff-limit using the sound editor software. The sound quality deteriorates as the result.
If I'm not wrong there's no way to adjust the webm sound volume individually. To balance the overall game sound you could reduce the volume of all other media to match the webm file without distortion.
 
Please, download this webm file and replace yours. I'm not having the black screen problem with this file and in case you don't have too it means that your video file can be the problem, then you will need to render it again.


If I'm not wrong there's no way to adjust the webm sound volume individually. To balance the overall game sound you could reduce the volume of all other media to match the webm file without distortion.
I think it has to do with the graphic card because the OPENGL mode works on my laptop no problem.
I guess my desktop computer has bad video card built in...
thanks
 
Back
Top Bottom