Help with videos??? (Solved)

Started by JRock, Tue 17/01/2006 00:22:14

Previous topic - Next topic

JRock

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!

xenogia

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

JRock

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

Gilbert

It's just a matter on whether the current Mplayer supports it (and if the computer has the codec), was it a WMV file?

JRock

Well, I created the video with Windows Movie Maker, so I would assume so.  ??? 

Candle

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.

JRock

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  >:( )

Candle

Try it with 1,1 and see if it plays , then you know something is wrong. and where to start fixin

JRock

Tried it with 1,1

Still saying:  "Video load error.  file not found or format not supported"  >: :(

Candle

How big is the video ? Could send it to me and let me try it.

JRock

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.  ??? )

Gilbert

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.

Candle

#12
You can send it there if you have cable fast internet
removed

JRock

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

Candle

Glad you got it working.. good luck with the rest of your game.

SMF spam blocked by CleanTalk