Zeus Video Player

Love the codec; Thanks!

(If anyone is curious, I'm rendering in .avi: Audio: 48,000 Hz, 16 Bit, Stereo, PCM; Video: 23.976 fps inserting 2-3-3-2 pulldown, 720x480 Progressive, NTSC DV and using the built in rescaler. Haven't had any issues)

Edit: I did notice that it had trouble playing apple .mp4 files (Audio: 128 Kbps, 48,000 Hz, 16 Bit, Stereo, AAC; Video: 30 fps, 640x480 Progressive, YUV, 1,350 Kbps)
I'm sorry to interrupt ^^
I have a question about this, i've been looking for a way to implement a movie at start. But every tut talks about the movies folder.

I DON'T HAVE A MOVIES FOLDER and it doesn't show up in my game database eighter. I can't manually add it can i? I've tried overwrite the way they do in some starterkitts but they all use image files and no actual movies so that didn't work.

The script i'm using right now for the movies that told me about the movies folder:

Spoiler
#===============================================================================# ** Scene_Movie class, created by SoundSpawn, fixed by Popper.
#-------------------------------------------------------------------------------
# Instruction
# 1) Movies must in in a new folder called Movies in your directory
# 2) If you call this script from and event, e.g.
# Call Script: $scene = Scene_Movie.new("INTRO")
# 3) Have fun playin movies with this script!!!
#===============================================================================
class Scene_Movie
def initialize(movie)
@movie_name = RTP.getPath("Movies\\"+movie+".avi").gsub(/\//,"\\")
end

def main
@temp = Win32API.pbFindRgssWindow.to_s
movie = Win32API.new('winmm','mciSendString','%w(p,p,l,l)','V')
x=movie.call("open \""+@movie_name+
"\" alias FILE style 1073741824 parent " + @temp.to_s,0,0,0)
@message = Win32API.new('user32','SendMessage','%w(l,l,l,l)','V')
@detector = Win32API.new('user32','GetSystemMetrics','%w(l)','L')
@width = @detector.call(0)
if @width == 640
#fullscreen
Graphics.update
sleep(0.1)
Graphics.update
sleep(0.1)
Graphics.update
sleep(0.1)
#fullscreen
end
status = " " * 255
x=movie.call("play FILE",0,0,0)
loop do
sleep(0.1)
@message.call(@temp.to_i,11,0,0)
Graphics.update
@message.call(@temp.to_i,11,1,0)
Input.update
movie.call("status FILE mode",status,255,0)
true_status = status.unpack("aaaa")
if true_status.to_s != "play"
break
end
if Input.trigger?(Input:: 😎
movie.call("close FILE",0,0,0)
$scene = Scene_Map.new
break
end
end
$scene = Scene_Map.new
end
end
Create the folder inside of your game's project.
Been there done that, just to be sure i've even put it in the mail folder and the graphics folder. Both ways don't work in the program. It doesn't show up. 
Been there done that, just to be sure i've even put it in the mail folder and the graphics folder. Both ways don't work in the program. It doesn't show up.
I'm not familiar with that script. This forum thread is for the excellent Zeus Video Player script, which I do use. My recommendation is to switch scripts to this one, and if you encounter issues, you can post them here since the author has been patching & supporting it, and there are active users of the script.
Sorry to bother you, but the video skip is based on enter and esc, but not on the game keys, in fact if I use the joypad on the same game key of enter and esc it doesn't stop the play and I have to use enter or esc on my keyboard.
it's possible to change that in stop the video on the pressing of any game key?

Thanks for your help in advance, and sorry for my bad english.
Indeed it'll be better that way, I've updated it :

https://www.dropbox.com/s/q933du4ix2r0cep/Zeus%20Video%20Player.rb?dl=0
First of, amazing script. This and Fullscreen++ are really spectacular, however, I have one problem that I would like to address.

I've been using a script by Tsukihime, Simple Audio Encryption. The script also contains encryption for movies, however, they won't load when using your script since it's a script call.

Is it possible to get these two script to work together?
You must place my script before hime's one and edit the line ~84 of hers : @@video_extensions = [".ogv"]

like that : @@video_extensions = ["", ".ogv", ".other extensions you're using"]
You must place my script before hime's one and edit the line ~84 of hers : @@video_extensions = [".ogv"]

like that : @@video_extensions = ["", ".ogv", ".other extensions you're using"]
It's not the codec that is the problem, cause the videos are already .ogv (for now at least)

The problem is that her script don't decrypt something until it's used, and your script call doesn't count, so when I try to script call something that is encrypted, it can't find the file.

Sorry if I was clear enough, and if it's not possible to script call something that is encrypted, then that's OK. I'll just have to leave the movies open, that's all. 🙂
I have understood what the point was about and if you followed my instructions it should be fine.
I have understood what the point was about and if you followed my instructions it should be fine.
Alright, but I tried and it didn't work so I guess I made a mistake. I'll check again, thanks for replying.

Edit: Omg, I'm such an idiot. I didn't notice the "" you had added. It works now, thanks a lot 🙂
Sorry to bother you, but it's possible to make that I can skip the video not with enter or esc, but an RPGMaker default buttons?
For example, I use joypad with rpgmaker games, but If I wanto to skip the video I need to use keyboard, every time I must leave the joypad for hit esc on the keyboard and that return on my joypad...

It would be more easy if the video stop on a classic button of the game...

Thank's for your time.
Wow. Great script I guess, I just have one question.

Can it run ogg video files or is it only for avi format?  🙁

I really wanna use ogg and avoid anything else.

Thanks for your time and for your script Zeus81!

Cheers. 🙂
Ops sorry for having reasked the same thing... ^^;;; I didn't see your answer.

Really sorry.
Yes the latest version already support gamepads.

Can it run ogg video files or is it only for avi format?  🙁
Unless you've enabled the OldAviMode you can play any video format but it will require codecs to be installed.
Hi Zeus, this is a great script!

The only problem i have with it is that when i tried playing the movie, it doesn't close by itself when the movie ends. I have to turn the "cancellable"  to "true" to be able to close the movie properly or else it would just freeze on the last screen. Is this normal? I was expecting it to behave like the default play movie function. 

The same thing happened when i tried it with a new project so i'm sure its not clashing with other script. I'm using it on VXAce. 

Thanks for your help.
Send me your video so I could test it.
Thank you for this script Zeus, but i have something to ask.

I use your video script as the opening intro for my game. It work perfectly show the video but when i press button or wait for it till it done, the game just disappear instead of jumping to the load screen.

I test ingame with an event and it jump to the load screen but using it as the intro it doesnt >< So i need your help with it.

Thanks in advance. xD
Hey there, Zeus! I'm new to the forums, but I really need some help! I've been working on my new game, but I've tried to implement your video script into the game. I've used your most recent version, which you can use for all 3 versions of the RGSS'. The audio will play perfectly fine, and it'll end either if I click the according button or when it's done, which is good. But, the video won't show. It'll only be black. Any help?

Original thread: https://forums.rpgmakerweb.com/threads/zeus-video-player.6392/