A downloadable asset pack

Download NowName your own price

Video Player for Game Maker Studio 2.3+ and 2.2

usage
#create

video = new video(videoPath)

//with audio
audio = new Audio();
audio.setSound(videoPath);

#draw
video.computeFrame()
video.draw(x, y)
video.frame += video.getFrameRate() *  (delta_time / 1000000);

performance test (Ryzen 5 2600)
360 60fps video = 60 fps
720 60fps video = 60 fps
1080 60fps video = 30fps
1080 30fps video = 35-45fps

P.S.
for video decode i use this
for audio defaul WMPdll

Download

Download NowName your own price

Click download now to get access to the following files:

gmvideo 2_3.yymps 47 MB
gmvideo 2_2.yyz 21 MB

Comments

Log in with itch.io to leave a comment.

ERROR in

action number 1

of Create Event

for object o_video_audio:

Can't create a surface with either a width or height with a value less than or equal to zero

 at gml_Script_Video (line 18) -        __surface = surface_create(__videoWidth, __videoHeight);

############################################################################################

gml_Script_Video (line 18)

gml_Object_o_video_audio_Create_0 (line 10)

I see this (FFMediaToolkit from github is MIT Licenced for commercial use, doe's it mean we can use your example in our projects?

MIT License and we can

i think yes

https://github.com/radek-k/FFMediaToolkit/blob/master/LICENSE
 

what about the error above?

(1 edit)

i dunno why you want to use it because gms already has own video functopns https://manual.yoyogames.com/GameMaker_Language/GML_Reference/Drawing/Videos/Vid...

also the extension is x32 and it wont work in current versions

hey, do u guys know how to import a video???

I'm having issues with your system when importing it into my game - upon adding the assets and compiling to YYC, the game gets an error upon booting up the compiled version saying:

{}

and that's it. I'm not too sure exactly what I'm doing wrong but removing all assets relating to GM Video returned the game to normal. This happens regardless of which room the instance starts in.

Did you try to check demo? it works?

You can also DM me in discord Fataliti // Reifshneider#3923

Hi, I've tried using your system but when I start my game I get an error saying:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'FFMediaToolkit, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
   at FFmpegDll.Class1.Open(String path)

Could you explain what am I doing wrong(or is this a bug perhaps), I'm using gms 2.3.

i think you are trying to run project in IDE via VM, VM wont work (YYC only while in IDE)

Yep, that's the problem, thanks!