Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: AmOrPhIsSs on Tue 24/09/2013 01:18:49

Title: PlayVideo() Sound Only Problem When using Direct3D
Post by: AmOrPhIsSs on Tue 24/09/2013 01:18:49
Hi Guys, I'm having a major problem here with the PlayVideo() function.

I'll start by explaining that I've released a demo for my game recently, some players had an issue that whenever they open the game the mouse doesn't move and it hangs (When using directdraw), but when they change it to (Direct3D) it works, but plays the video at the end of the demo with sound only (No Video).

But on my personal computer, I can run the game with directdraw perfectly with the video working flawlessly at the end, but today I tried to change the game to use Direct3D, it worked fine but the video played with only sound.
Please how can I fix this so that my game works with "Direct3D & The video plays fine with audio?"

Kindly note that the video is .avi extension saved using XVID codec with resolution (640x480) & the game's resolution is (640x480) in 32-bit colors.
Title: Re: PlayVideo() Sound Only Problem When using Direct3D
Post by: Khris on Tue 24/09/2013 01:45:06
Try converting the video to .ogv (OGG Theora).
Title: Re: PlayVideo() Sound Only Problem When using Direct3D
Post by: AmOrPhIsSs on Tue 24/09/2013 03:36:42
@Khris: It Worked!! Thank you so much, this is actually the first time for me to use that extension "but i'm sure it won't be the last" thnx to u :)
Title: Re: PlayVideo() Sound Only Problem When using Direct3D
Post by: Khris on Tue 24/09/2013 13:25:25
Glad to hear it; ogv is the best format to use because AGS has built-in support for it, while with other formats, there's always a chance of running into codec issues.