berka's Video script II reloaded!

@Vaulthas: Your syntax is right.
do you call the video in the fullscreen mode ?
Have you set the width&height of the video ?
I need more indications !

@PrinceEndymion88: the script does not support *.mov files

@Worldeditor: HD is maybe too much for the script. Try to reduce your video's resolution

thank to (try) to use my script

regards
berka
Yes, I call the video in fullscreen mode. I only use this script command to call the video:

  1. [film]
  2. film=NVEExport.avi
  3. full=true
Expand to see the code.


I even tried setting the width and height, but still the video resizes to the same size as every time.
Whilst playing a .avi file with this script, a few seconds (I would say 5-10?) into the video the screen turns white but sound continues to play.

Also with another .avi file I tested it did the same thing, but before that it flickered to the game screen for a hair of a second before going back to the movie and then going white after a few seconds.

I receive no errors or the like, simply awkward video play.

The call script I use is:

Content Hidden Spoiler
[film]
film = test.avi
aig = 999
bass = 0


Might there be a work around to fixing this per chance?

Thank you for your time! 🙂
I've tried to use a .avi file of 22 mb but when i call it, nothing happens.
If i do just the same but call another video (one of the vids you used) everything works just fine. any help?
hey, you do not think you video is too much big ?
Smaller videos run easier, so split you file !

berka
i thought that if it's to large it will lag or freeze. but now, just nothing happens i even can still enter the menu. I'll split the vid up, i hope it will help
it works fine when i converted the file from avi to mpg. Is it possible to play a video during the title screen?
Nope.
If you play a video, you cannot update scenes, graphics, and input. So you cannot update commands...
regards,
berka
Is it possible to add subtitle compatibility, like when loading a movie if there are subtitles of the same name to load them up too?
It would be great for in game movies if user could toggle subtitles on and off.

Also, is it real impossible to run a movie in a background, so it would not be responsive to input but some active windows would be? So it would act like a .gif or something.
It would be awesome if the engine could just make a layer with the movie and play it and update it, but have an active layer above it that responds to input.

Speaking of layers, is it possible to have something show above the movie while it is playing, like when it is paused to show -paused- image in the middle of the video?

My mind is bursting with possibilities right now XD
sorry if I'm bothering you
hey guys^^

i have a problem. whenever i want to play an avi file
with this player, the game crashes. has anyone an idea how
to fix that?

thx in advance
Zare

EDIT: Ok the same problem is when i put this script over main.
This should make the game start in fullscreen, but instead the
exe crashes and my keyboard stops to work with the normal
functions.

$showm = Win32API.new 'user32', 'keybd_event', %w(l l l l), ''
$showm.call(18,0,0,0) #ALT Down
$showm.call(13,0,0,0) #Enter Down
$showm.call(13,0,2,0) #Enter UP
$showm.call(18,0,2,0) #ALT UP

Please, could someone help me??
Ok i solved the problem with RGSS102E.dll ^^
This script works great for me unless I have the game in full-screen mode. When the game is in full-screen mode, the script will call the movie but after it's finished I find myself in whatever other program I had running (or at the desktop) and I have to alt-tab to get back to the game.

Any suggestions?

Thanks.
I have a problem. When my game window isnt set to full screen the video opens in full screen. When the game window IS set to full screen the video plays in a small window.

any suggestions?
Okay.
I'll fix the fullscreen bug.
Thanks

berka
I think its certain types of video. I used a WMV at it was fine.
hey again^^

the script is really great but it would be even better when someone
could change the "return to scene_map" so you can play videos in battle.
otherwise when you play a movie in battle the battle aborts and returns to scene_map.
can someone do this? or is this impossible?

Zare
Hourglass wrote:
I think its certain types of video. I used a WMV at it was fine.


Hmmm. Maybe it's my system config then... or maybe plain old user error. I get the error even on WMV's.

Thanks for checking it out, Berka. It's a great script.
great script, does it work for all types of .avi? Like xvid, divx, and such.
when i put an avi video in an event it did not work. it was a wmm video converted to a wmv with mediacoverter and i converted the wmv to an avi but it does not work .why?
Sorry for the semi necroposting but I had a problem with this script: if you play a video on full screen while you also have the full screen script running, the game would minimalize after the video is finished. Wazakindjes has now found a solution. In the end it was simple too :p

just comment line 77 out like this:

#@film.call("close FILE notify",0,0,handle)

It worked for me, hopefully it does for others too :)
bump

sorry to bring up this topic after its been years.
i've tried this script and its great. As always the full screen problem was not a simple fix as just commenting out line 77.
when I do that, only one video will play but when i attempt to play other videos in my project they don't play.
It's like the script still thinks that video 1 is playing and the handler to close the video didn't do its job since it was commented out.

any fix for this? once again sorry for bringing this topic back after 2 years lol

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=60944