Webm out of memory

Bruce

Active member
Hello all,

I am getting this error message when using a lot of webm videos:

Code:
Sprite allocated : #2001477640
Video track: resolution=1920*1080, display resolution=1920*1080, 29.95 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 29.95 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 29.95 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 60.00 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 30.00 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 30.00 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 60.00 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 29.95 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 60.00 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 29.95 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 27.90 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample
Video track: resolution=1920*1080, display resolution=1920*1080, 27.90 frames/second
Audio track: 44100.000000 Hz, 2 channels, 8 bits/sample


********** An Error Occurred **********
*            Shutting Down            *

Out of memory!
Allocation of size 2073600 failed in function 'yuv_frame_create' at source/webmlib/yuv.c:123.

Obviously, I must be doing something wrong.
Can someone please advise?
Thank you
 
I think you did something wrong, because the background color is the first one on the palette (not the last) and Photoshop never forces it to be the last one - it forces to be the first one.

How are you converting those files?
Yep I did because I am a Photoshop newbie lol.
I was looking for a quick way to do convert them to indexed colors, but it made a mess. with all that out of memory issues!
First, I removed the background color, then set them to 8-bit index, then click on save to overwrite them.

So I ended up doing this instead:
1. remove background color
2. set them to 8-bit index
3. export as png legacy and then click on local per (cant remember the name..) to arrange the colors so that the background color to be the first color.
4. save
5. use magick image to batch convert them to gif files for palette none entities

I am still trying to find the best way to prepare the png or gif files properly though.
I used to use Gimp, but I realized it is slow and not as good as Photoshop.

I saw the video and.. are you sure you want that? Because the screen is frozen for too much time just for a cinematic thing. Just think about when you are playing in co-op... The other players will have to wait for too long.
I greatly appreciate for your opinions to help me improving my game creation!
I have thought about this before, and yes the cinematic videos are long, especially for co-op mode.
Marvels vs Capcom 3, they do have some long cinematic supers and the 2nd player has to wait when getting it by it.
Beside, these cinematic videos are for summons only. They require certain SM points and must be in EX mode in order to execute summon ultimate skills.
Most likely the players can execute these skills every a few mins. Beside, they are skippable.
Regardless, I will add an option to turn it on/off in the option menu and create a script for the webm play and PlayStageMusic for this.
Players can decide what they want to do.
I still need to learn how to add options to the option menu. Do you know a link that can help me with this? Thank you
I am learning one thing at a time in a mission to creating my own game :).
With alot of helps from amazing people on this site, I am sure I can do it! Their names won't be forgotten!

I have always dreamed to create my own game for all whole life. This is more like my dreams are coming true.
I can never imagine that I am able to do this. OpenBor engine has opened the whole new world for me,
and I am greatly appreciated for those who have spent their hard work to put this engine together. Millions thanks to you all!
I've been looking at the manual, and I can feel there is so much I can do with this engine although I am still a newbie.


Also, your code freeze the enemies... But how about the other players?
This Freeze function won't freeze players, so they can freely attack the enemies.
Anyhow, I realized this function is useless for webm play, so I will remove it since webm play will freeze everything anyway.


Thank you everyone
 
Back
Top Bottom