Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JRock on Tue 17/01/2006 00:22:14

Title: Help with videos??? (Solved)
Post by: JRock on Tue 17/01/2006 00:22:14
A few questions about video for anyone who can help:

Can I use movies created with Windows Movie Maker in my AGS game?

The AGS help file says:
Quote
PlayVideo (string filename, int skip, int flags)

Plays an AVI or MPG file, or any other file type supported by Media Player.

Well, movies created in Windows Movie Maker ARE supported by Media Player, so why won't the video I created work in AGS?

And what folder in AGS do I put the movie in after I create it?

Thanks!
Title: Re: Help with videos???
Post by: xenogia on Tue 17/01/2006 03:06:59
put the movie file in the compiled directory and it should run.  It should be able to display WMV files or any other movie files except maybe quicktime and real, it will play MPG, XVID, DIVX, OGM and even MATROSKA as long as you have the codecs :P
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 03:34:48
Ok.  I put it in Compiled and it still don't work.  A message pops up saying "Unable to load video or format not supported". When I click "properties" for the video itself it says its a "Windows Media Audio/Video File".   Is this file type supported by AGS? Or am I still doing something wrong?

Thanks a bunch!!!  ;D
Title: Re: Help with videos???
Post by: Gilbert on Tue 17/01/2006 03:55:15
It's just a matter on whether the current Mplayer supports it (and if the computer has the codec), was it a WMV file?
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 04:13:58
Well, I created the video with Windows Movie Maker, so I would assume so.  ??? 
Title: Re: Help with videos???
Post by: Candle on Tue 17/01/2006 04:16:48
Did have the code like this as you didn't show the code you use, unless I missed it?
Example:

PlayVideo ("intro.mpg", 1, 1);

will play the video Intro.mpg, allowing the player to skip with ESC if they've seen it before.
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 04:19:08
well, i had put:

PlayVideo ("intro.wmv",3,11);

to play it at full screen with no audio and give the player the option to skip with key or mouse click.

(and it didn't work  >:( )
Title: Re: Help with videos???
Post by: Candle on Tue 17/01/2006 04:20:32
Try it with 1,1 and see if it plays , then you know something is wrong. and where to start fixin
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 04:25:30
Tried it with 1,1

Still saying:  "Video load error.  file not found or format not supported"  >: :(
Title: Re: Help with videos???
Post by: Candle on Tue 17/01/2006 04:31:18
How big is the video ? Could send it to me and let me try it.
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 04:55:17
The video is 20 seconds long , resolution 320 x 240, and the file size is 1.05 MB

(thats why I dont understand why I am having problems getting it to play in my game.  It isn't even that big.  ??? )
Title: Re: Help with videos???
Post by: Gilbert on Tue 17/01/2006 04:59:54
Check also if the default (crap) hide extension option is activated in your file manager, that it might be possible the file was named intro.wmv.wmv instead.
Title: Re: Help with videos???
Post by: Candle on Tue 17/01/2006 05:01:18
You can send it there if you have cable fast internet
removed
Title: Re: Help with videos???
Post by: JRock on Tue 17/01/2006 05:11:30
YES!!!  Thank you Gilbot!  That's what the problem was.
The file extensions!  It was reading it as intro.wmv.wmv.
I changed the settings, now it works.

Thank you very much!  And thanks GBC for your help too!!!

;D
Title: Re: Help with videos??? (Solved)
Post by: Candle on Tue 17/01/2006 05:18:20
Glad you got it working.. good luck with the rest of your game.