Zeus Video Player

Discussion in 'RGSS Scripts (RMXP)' started by Zeus81, Nov 20, 2012.

  1. F117Landers

    F117Landers Veteran Veteran

    Messages:
    63
    Likes Received:
    5
    First Language:
    English
    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)
     
    Last edited by a moderator: Jun 25, 2014
  2. Wasbakbrand

    Wasbakbrand Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    Dutch
    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:

    #===============================================================================# ** 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:: B)
    movie.call("close FILE",0,0,0)
    $scene = Scene_Map.new
    break
    end
    end
    $scene = Scene_Map.new
    end
    end
     
    Last edited by a moderator: Jul 3, 2014
  3. BlackLodgeGames

    BlackLodgeGames Villager Member

    Messages:
    19
    Likes Received:
    4
    Location:
    Spokane, WA, USA
    First Language:
    English
    Create the folder inside of your game's project.
     
  4. Wasbakbrand

    Wasbakbrand Warper Member

    Messages:
    2
    Likes Received:
    0
    First Language:
    Dutch
    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. 
     
  5. BlackLodgeGames

    BlackLodgeGames Villager Member

    Messages:
    19
    Likes Received:
    4
    Location:
    Spokane, WA, USA
    First Language:
    English
    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.
     
  6. Kenshin

    Kenshin Veteran Veteran

    Messages:
    33
    Likes Received:
    4
    Location:
    Italy
    First Language:
    Italian
    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.
     
  7. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
  8. Daniel B

    Daniel B Hidden Kitten Veteran

    Messages:
    64
    Likes Received:
    14
    Location:
    Sweden
    First Language:
    Swedish
    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?
     
  9. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    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"]
     
  10. Daniel B

    Daniel B Hidden Kitten Veteran

    Messages:
    64
    Likes Received:
    14
    Location:
    Sweden
    First Language:
    Swedish
    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. :)
     
  11. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    I have understood what the point was about and if you followed my instructions it should be fine.
     
  12. Daniel B

    Daniel B Hidden Kitten Veteran

    Messages:
    64
    Likes Received:
    14
    Location:
    Sweden
    First Language:
    Swedish
    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 :)
     
    Last edited by a moderator: Oct 28, 2014
  13. Kenshin

    Kenshin Veteran Veteran

    Messages:
    33
    Likes Received:
    4
    Location:
    Italy
    First Language:
    Italian
    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.
     
  14. Dreadshadow

    Dreadshadow Lv 38 Tech Magician Moderator

    Messages:
    3,835
    Likes Received:
    2,483
    First Language:
    Greek
    Primarily Uses:
    RMMV
    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. :)
     
  15. Kenshin

    Kenshin Veteran Veteran

    Messages:
    33
    Likes Received:
    4
    Location:
    Italy
    First Language:
    Italian
    Ops sorry for having reasked the same thing... ^^;;; I didn't see your answer.

    Really sorry.
     
  16. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    Yes the latest version already support gamepads.

    Unless you've enabled the OldAviMode you can play any video format but it will require codecs to be installed.
     
  17. Dr. Strawberry Tart

    Dr. Strawberry Tart Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    mandarin
    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.
     
  18. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    149
    First Language:
    French
    Send me your video so I could test it.
     
  19. Aljen

    Aljen Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    VietNam
    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
     
    Last edited by a moderator: Jan 2, 2015
  20. SBlakeGames

    SBlakeGames Warper Member

    Messages:
    1
    Likes Received:
    0
    First Language:
    English
    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?
     

Share This Page