Page 1 of 1

ability to play .AVI/video files?

PostPosted: Tue Aug 19, 2008 4:59 pm
by DarkParadox
i often find myself, when remaking a real game, cutscenes are often found as a video file, i really want to put them in but game editor won't allow it, i would like this as a feature, unless somebody can come up with a better way...

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 19, 2008 11:33 pm
by feral
GE CAN PLAY MOVIE FILES :D

normal AVI's are simply a series of BMP files...

grab any utility that converts AVI to BMP and convert your video out to a series of BMP files.

then load them into GE as an animation... and... BINGO ! the same thing :D

you can also adjust the size of the playback screen by playing your animation off the screen, then use an onscreen canvas ( as large as you want)

then in the canvas draw event use drawfrom ( and drawfrom the actor with the animation) then scale up or down..

provided the "movie" canvas is the only thing playing at the time ( as in a cutscene) then it plays fine even scaled at 10 times the size :D

i just tried it myself.. works well..

warning: big movies will make your exe very large.. i sugggest shrinking the "size" of the movie image size ( the screen size) and using drawfrom to scale it back up live during runtime.

eg if your movie is 800 by 600 pixels, resize all the bitmaps using a batch convertor ( or resize the movie in a movie editor before exporting to BMPs).. if you resize to 1/2 size, or 1/4 size, you usually get best results ( ie: resize evenly), then simply use the drawfrom to resize back up to fill the screen... you will lose resolution , but it will make your final game exe much smaller

note.. not an advertisement, but I should post the application I used... seeing how its demo file is the one i used in in my demo... but you can download any number of these.... there is many - google for avi2bmp

this is simply the first one I found..
http://www.softpedia.com/get/Multimedia ... 2Bmp.shtml

and it is good for small movies, as it converts the movie to what is basically a single "sprite sheet".. but for larger movies you will want to convert it to a series of separate BMP files
movies.zip
demo movie
(103.49 KiB) Downloaded 223 times


in my demo the original movie is the small one on the right

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 19, 2008 11:47 pm
by feral
PS: should this demo be left in feature requests or should I move it to demo section ?

EDIT: I did a full tutorial and placed it here
viewtopic.php?f=6&t=6060

Re: ability to play .AVI/video files?

PostPosted: Wed Aug 20, 2008 9:05 am
by feral
Sound ??

yes, before anyone asks... I am planning on doing a full tutorial on how to create videos in GE, WITH sound.

and yes, the sound will be synchronized.. stay tuned

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 26, 2008 5:48 am
by summer_goth
Wow, impressive feral. I'll definitely stay tuned. :D

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 26, 2008 6:22 am
by feral
summer_goth wrote:Wow, impressive feral. I'll definitely stay tuned. :D


already done.. i posted the link to the full tutorial a few posts up, but you may have missed it.

check viewtopic.php?f=6&t=6060

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 26, 2008 9:19 am
by summer_goth
Ah thanks. :D That'll teach me to read things properly.

Great work.

Re: ability to play .AVI/video files?

PostPosted: Tue Aug 26, 2008 12:19 pm
by feral
summer_goth wrote:Ah thanks. :D That'll teach me to read things properly.

Great work.


actually...err sorry.. that wasn't the full tutorial, just the page I was planning posting it on, after I gave the examples..I just checked it gain.. and...um... I thought I did post it.., but apparently it didn't stick.. probably something i did...

I will post it all again as soon as I get a chance to write it all...again.. :( sorry..

but it should be easy to work out as it is.. but i will post the tut again soon..my bad..

Re: ability to play .AVI/video files?

PostPosted: Wed Aug 27, 2008 12:27 am
by feral
tutorial has now been reposted at the above link..

Re: ability to play .AVI/video files?

PostPosted: Thu Aug 28, 2008 12:52 pm
by Bee-Ant
Why dont you just make the cutscene yourself anyway???
you're a good spriter right?

Re: ability to play .AVI/video files?

PostPosted: Wed Sep 03, 2008 6:53 am
by Spidy
Bee-Ant wrote:Why dont you just make the cutscene yourself anyway???
you're a good spriter right?


yeah he is right 8)

Re: ability to play .AVI/video files?

PostPosted: Fri Oct 30, 2009 11:12 am
by corr
mmm... As for me I resize video with Vidcrop PRO