How do I play a .wmv video file in my AGS game?

Started by RyeGuy83, Tue 20/09/2011 20:46:57

Previous topic - Next topic

RyeGuy83

How do I play a .wmv file in my AGS game?   I have made an intro video to my game and can't figure out where to place it or add it, so that I can call the PlayVideo(); function.   Someone please help!!  Trying to figure it our for our class.

pcj

It's just
Code: ags
PlayVideo("filename.wmv",VideoSkipStyle, int flags);
Space Quest: Vohaul Strikes Back is now available to download!

dbuske

Get a utility to convert the wmv to avi.
Put the avi video in the games document folder under the compiled directory.
What if your blessings come through raindrops
What if your healing comes through tears...

pcj

You don't have to convert to AVI - PlayVideo can play anything a DirectShow player can - which includes WMV.
Space Quest: Vohaul Strikes Back is now available to download!

Arjunaz78

Really? but i got an error when try to run my games that includes the .avi format,the screen becomes blank with black screen and then hangs up,why?

But i success when running .wmv file that i put on my games..currently i've a current K-Lite codec installed on my PC & Media Player Classic that can running DirectShow filters video/audio decoding,what's wrong?
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

pcj

Arjunax, it sounds like you have a problem with a particular codec.  I prefer to use OGG Theora video for AGS anyway since it's integrated into the game files.  But WMV and AVI should play fine.
Space Quest: Vohaul Strikes Back is now available to download!

Dualnames

I'd prefer wmv over avi any day. And frankly scrap wmv and avi, and just use .ogv. Those are bundled with the exe, and also get converted to like at least 50% of the size, so you save up size and also protect the video. It's a win-win situation.


I may suggest the following program that I've been using. You just drag a wmv over it, and it converts it.
Download
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

arj0n


Rez

I'm on the team with RyeGuy here for senior P. I felt it was worth mentioning that when we were in direct9 mode we could not see our video when we ran the compiled exe. We switched to D. Draw and everything was coo. Not to versed in the ways of video cards so anyone know why that may happen? We got our movie playing and honestly direct9 isn't really important for our game but I feel this may be an issue for some. Maybe just us lol. All 3 of our laptops had the issue.  And Mine is a suped up XPS.

RyeGuy83

Yeah.  We got it working, once we changed it off Direct9

SMF spam blocked by CleanTalk