Full motion video advanced interaction with openbor.

NED

Well-known member
I'm thinking of a project using video clips to make some interation.
I know it IS possible with many engines including Openobr.

But How would it work.
The idea is to have constantly a video playing (like a first person view)
then, when doing different actions openbor will play different videos.

What is the actual way to add full screen video?
Any exemple?

Actually I'm not even sure this would be some Openbor project. (I want it to be fast and - easy without tons of scripts etc)
-Adventure Game Studio might be a good way, but not really the best for "real time" action.
-Also, Mugen would handle it perfectly, particularly the way to handle commands inputs (2-3 buttons together etc.) But AFAIK, it doesn't support full time video.
-Openbor is still the best choice here. But I'm not sure.
 
-Also, Mugen would handle it perfectly, particularly the way to handle commands inputs (2-3 buttons together etc.) But AFAIK, it doesn't support full time video.
Mugen doesn't support videos, afaik. I don't know if Ikemen does.

you can use playwebm
playwebm(path, int noskip)

  • Play a webm file as a cut scene, you can call it in game.
  • path, the gif file path, like first parameter of command animation in scene txt.
  • noskip, when set to 1, you can't press button to skip it.
  • Notice: path is required. All other parameters are optional, and default value is 0.
  • Notice: a webm is played ONLY if the device has the webm support.
Just a reminder: since it will be streamed, you will lose the stage music when using this
 
  • Like
Reactions: NED
I'm thinking of a project using video clips to make some interation.
I know it IS possible with many engines including Openobr.

But How would it work.
The idea is to have constantly a video playing (like a first person view)
then, when doing different actions openbor will play different videos.

What is the actual way to add full screen video?
Any exemple?

Actually I'm not even sure this would be some Openbor project. (I want it to be fast and - easy without tons of scripts etc)
-Adventure Game Studio might be a good way, but not really the best for "real time" action.
-Also, Mugen would handle it perfectly, particularly the way to handle commands inputs (2-3 buttons together etc.) But AFAIK, it doesn't support full time video.
-Openbor is still the best choice here. But I'm not sure.

First let's get the caveats out there for OpenBOR video.
  • Format: WebM, VP8 codec. 44100 Hz audio recommended.
  • Video is streamed directly from the pak file, not played from memory.
  • One video at a time, and always full size. If the video size differs from your module's resolution, OpenBOR will stretch or squash the video to fit.
  • AFAIK, while playing, nothing else can appear on screen - the display is "locked" until video completes or you skip/stop it. Game action pauses during playback (same as playing a gif). Logic, scripts, and key actions still work, including the screenshot button.
You don't script at all to play videos as a cut-scene. You do need some script to play on a key press depending on your module design, but it's extremely simple (we're talking like one to three lines). Less complexity than you'll find just about anywhere else. You could try another engine, but you will never escape the need to do some amount of logic work. Honestly, I've come to believe you outhink yourself a bit and make things more complex in your mind than they are in reality.

What you're describing sounds a lot like the old Dragon's Lair games. Is that what you want? If we had a better idea what your end goal was, it might help the conversation.

DC
 
the thing is we will get a big file size when we use them?

Compared to the game assets, yes, it will be much larger. Just in case someone does not understand, OpenBOR has nothing to do with it. Video is video, it will be the same size no matter what you make it for.

It's important to note that in video, output quality makes huge difference, far more than audio. If size is important, then I suggest experimenting with the quality settings. With a bit of tuning, you can get a nice looking video without tons of space.

Also, don't make the mistake of thinking that turning a video into animated .gif files will save space compared WebM. It's very much the opposite. I've seen a couple of modules made before we supported video (Strider X comes to mind) with hundreds of megs of jerky .gif cut-scenes. If WebM were available then, the animation could have been smooth as silk for half the space.

DC
 
you outhink yourself a bit and make things more complex in your mind than they are in reality.
You're right. I started being like that when I discovered that "Bor" "easy coding" was not the only possible way, and when I started getting ambitious about adding some mechanics... -> and the wall of knowledge I cannot overcome because of the way my brain is made. (Sorry for strange sentence)

What I had in mind is more like creating some first person fighting game game using "precalculated 3D assets"
For now, I'm only try to imagine if it's accessible with my skills without having to get into massive learning of new coding etc.

Other engines are definitly too far from what I aim for.
Mugen would be perfect if it had video support.

Thanks to all of you. (particularly for the detailed technical elements)
I will try to make some tests.
 
What I had in mind is more like creating some first person fighting game game using "precalculated 3D assets"
For now, I'm only try to imagine if it's accessible with my skills without having to get into massive learning of new coding etc.

I think I see what you're after, but trying to kludge something like that with video isn't going to work. The best you can hope for is Dragon's Lair or Time Gal from a different point of view. This goes back to what I just said - you're over taxing yourself trying to avoid game logic. In the US, we have a saying for that: You're spending a dollar to make a dime.

For the record, OpenBOR could do an actual first person game, but it's not designed for it and you'd need to be an advanced creator to make it work.

Maybe instead you should look at ZDoom. It's a very basic first person engine meant for making Doom style games. @tontonMayonnaise switched to it a while back. From what I understand it's rather limited, but also easy to work with. Since it's built for first person perspective, it might be closer to what you want.

DC

Edit: @NED, I just recalled @kimono talking about ZDoom a while back in another thread (see below). He'd probably be able to tell you more about it than I can.

 
Last edited:
  • Like
Reactions: NED
As far as I am aware nothing can run over a video so the only way I can imagine you could pull this off is by splitting the animation into individual frames but that would take up too much ram and have super long loading times so you would need a update script to run the animation like I did with my new double dragon intro screen.

 
As far as I am aware nothing can run over a video so the only way I can imagine you could pull this off is by splitting the animation into individual frames but that would take up too much ram and have super long loading times so you would need a update script to run the animation like I did with my new double dragon intro screen.

Yes, this is what is done usually in Mugen like splitting videos into frames + adding sound to recreate video.
I could definitely do it with mugen, but yes, the size would be giant.

I'm not sure I will go ahead with this idea.
I literally have my head full of dozens of possible projects I will never make because I'm slow as f* for everything. ^^;
 
@NED, the only way i see the thing working is by using png sequences and using optimized pngs.

a while back i used avisynth and ffmpeg to optimize a bunch of frames for an N64 animated texture project experiment, where i used the surface of 2 flat triangles as a screen and the "video" would play on it.

the emulator and the plugin actually worked well with the optimized pngs (they where reduced to 45 to 50 % of the original sizes)

if openBOR does not reject optimized pngs , then you should be good.

Another trick is to divide the video frames by 4 (tiles) and using script bind them 4 things and such, but youll need a script master to provide script to sync those 4 entities....

and also - keep the project low res....

@DCurrent - does/would the old tile trick help in any way on openbor ?
 
  • Like
Reactions: NED
Video is streamed directly from the pak file, not played from memory
I have already created a topic about Webm out of memory.
If Webm videos are not stored in the memory, so why am I having problem with out of memory when playing alot of webm videos?
Please advise.
I was playing with it to test it out, but then after I played a few different webm videos over and over for about 8-12 times, then it froze.
The log said it was out of memory.
My webm videos more than 50MB each, and yes they are in high high bitrate in 1080P resolution.
Thank you
 
I have already created a topic about Webm out of memory.
If Webm videos are not stored in the memory, so why am I having problem with out of memory when playing alot of webm videos?
Please advise.
I was playing with it to test it out, but then after I played a few different webm videos over and over for about 8-12 times, then it froze.
The log said it was out of memory.
My webm videos more than 50MB each, and yes they are in high high bitrate in 1080P resolution.
Thank you

I don't know what your problem is, but if the video is 50MB, that's not it. Did you encode as VB8? VB9 is not supported.

DC
 
I don't know what your problem is, but if the video is 50MB, that's not it. Did you encode as VB8? VB9 is not supported.

DC
You were right it has nothing to do with the webm videos, DC.
I had the spawn01 function after play webm to spawn the special fx and these special fx contains .png sprites.
Somehow these .png sprites overload the memory which does not make any sense. I spawn them, no binding, so I don't know why it is overloading the memory
 
Compared to the game assets, yes, it will be much larger. Just in case someone does not understand, OpenBOR has nothing to do with it. Video is video, it will be the same size no matter what you make it for.

It's important to note that in video, output quality makes huge difference, far more than audio. If size is important, then I suggest experimenting with the quality settings. With a bit of tuning, you can get a nice looking video without tons of space.

Also, don't make the mistake of thinking that turning a video into animated .gif files will save space compared WebM. It's very much the opposite. I've seen a couple of modules made before we supported video (Strider X comes to mind) with hundreds of megs of jerky .gif cut-scenes. If WebM were available then, the animation could have been smooth as silk for half the space.

DC
This is so helpful!
I'll revisit this when I have to make a trailer and cutscenes later on but...
DC current!
With Openbor 4 you should consider releasing a game!
You way to knowledgeable but I get you have a lot on your plate and already explained the hassle you trying to avoid.
The goal of my game is to demonstration of what I can pull off with the basic if not bare minimum of knowledge I have but for you the possibilities could be endless.
But you done so much more behind the scenes.
Thank you and company for keeping the fire burning.
 
Back
Top Bottom