Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sun 07/03/2004 12:35:18

Title: avi/mpeg plays but minimizes
Post by: on Sun 07/03/2004 12:35:18
i play a avi/mpeg file using 640-480 resolution, i am in full screen mode yet when the video has finished it the game always minimizes itself
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Sun 07/03/2004 18:59:33
Strange... does this also happen if you run the game in a window?
Title: Re:avi/mpeg plays but minimizes
Post by: on Sun 07/03/2004 19:56:16
no it works fine in windowed mode. I have tried changing the resolutions aswell with no success....Any ideas ?
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Mon 08/03/2004 20:45:29
If you skip the video by pressing ESC, does it still do the same as if you let it run to the end?

Do you have DirectX 9 installed?
Title: Re:avi/mpeg plays but minimizes
Post by: on Tue 09/03/2004 08:08:34
yes it does the same if i press escape. i have tried different videos and still the same. yes i have the latest direct x installed
Title: Re:avi/mpeg plays but minimizes
Post by: Gilbert on Tue 09/03/2004 08:18:47
Hmmm what is the colour depth of your game?
*I am just guessing* maybe Direct Play needs to play the video in some other colour depths (most likely if the game was 256 colours), so there're some mode swithings, so for some reasons after playing the video, it failed to switch back to the original mode immediately?
Title: Re:avi/mpeg plays but minimizes
Post by: on Tue 09/03/2004 18:14:56
the game is 32bit true colour so im confused !
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Tue 09/03/2004 21:03:19
Strange, I've never had reports of this before. When the game minimizes, if you click the game icon in the taskbar, does it resume and continue as normal?
Title: Re:avi/mpeg plays but minimizes
Post by: on Thu 11/03/2004 11:28:39
yes continues as normal !
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Thu 11/03/2004 21:22:35
What version of Windows are you running?
Title: Re:avi/mpeg plays but minimizes
Post by: on Fri 12/03/2004 10:22:19
xp
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Fri 12/03/2004 16:27:57
Bizarre ... has anyone else experienced anything like this?
Title: Re:avi/mpeg plays but minimizes
Post by: Robert Eric on Sun 14/03/2004 22:59:33
Yes.  It happened with an AVI file I made with flash.  Same stuff as mentioned above.
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Mon 15/03/2004 20:15:36
Do other videos work ok for you - is it just that one AVI file that causes a problem?
Title: Re:avi/mpeg plays but minimizes
Post by: Robert Eric on Mon 15/03/2004 21:11:20
I tried an MPEG, and a WMV.  Same.  I have DirectX9.0b, and I'm running Windows 2000 Server.
Title: Re:avi/mpeg plays but minimizes
Post by: Pumaman on Wed 17/03/2004 21:02:11
What video card do you guys have?
Title: Re:avi/mpeg plays but minimizes
Post by: on Thu 18/03/2004 16:49:14
mine is nvidia geforce 4
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Fri 13/02/2009 16:37:23
The thread is very old, but the problem is not solved yet. I have the same problem and i don't know the reason for this.

If I change the Graphic Driver in the Setup to Direct 3D 9 it doesn't minimize anymore, but the Videoquality is very bad than  :-[

Please help me  :'(
Title: Re: avi/mpeg plays but minimizes
Post by: Pumaman on Fri 13/02/2009 18:12:17
My best guess is that you have some sort of video driver or codec installed that is causing this behaviour, but I'm not sure what is might be.

Are you having the problem with a game you made, or a game you downloaded? If you made it, what codec is the video using?
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Fri 13/02/2009 18:30:37
It's a game I made and it uses DivX 6.8.4 Codec , I created this Video with Macromedia Flash Professional 8
Title: Re: avi/mpeg plays but minimizes
Post by: Pumaman on Fri 13/02/2009 19:07:11
If you play the video in Windows MEdia Player, does it minimize that when it finishes?
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Fri 13/02/2009 21:06:54
No it doesn't minimize in media player
Title: Re: avi/mpeg plays but minimizes
Post by: Pumaman on Fri 13/02/2009 23:41:48
If you create the video with a different codec such as XVid or WMV, does the problem still happen?
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Sat 14/02/2009 01:35:10
With Flash we can only create XVid, but the quality is very bad.

We took DivX 6.8.4 (4 Logical CPUs) with this the quality is perfekt, is there another codec wich gives the same quality?
Title: Re: avi/mpeg plays but minimizes
Post by: Trent R on Sat 14/02/2009 01:44:33
You can google for a video converter/encoder. Then just find and try some out until you get the preferred quality.

But since you're trying to debug why this problem is occuring, I'd say just make an XVid from Flash (even if it's crappy) and try it. If it doesn't minimize, it's probably a codec problem. If it does, it might be something else.


~Trent
Title: Re: avi/mpeg plays but minimizes
Post by: Dualnames on Sat 14/02/2009 16:52:16
Does the video play with a good quality in an external video player?
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Sat 14/02/2009 17:39:13
All codecs looked good in other players. Now we decided for Xvid created from Flash with maximum quality. I think it's the best we can do, it works. We will never take DivX again. It only brings problems and doesn't work.

Thank for your help everybody  ;)
Title: Re: avi/mpeg plays but minimizes
Post by: Pumaman on Sat 14/02/2009 18:40:04
So just to confirm, when you encode it with XVid instead of DivX, the minimizing problem goes away?
Title: Re: avi/mpeg plays but minimizes
Post by: Miori on Sat 14/02/2009 19:36:14
Yes, it doesn't minimize. With Xvid we have no problems anymore. But you should take maximum quality, otherwise the quality is bad and cloudy.
Title: Re: avi/mpeg plays but minimizes
Post by: Pumaman on Sun 15/02/2009 13:36:14
That's good news, thanks for the feedback.
Title: Re: avi/mpeg plays but minimizes
Post by: Shane 'ProgZmax' Stevens on Sun 15/02/2009 14:28:02
I don't think this is an ags issue but a DivX player issue.  After the last two DivX packages, some games will minimize during video playback to play the DivX video in a separate window (I've encountered this with one game in particular).  What you should try is to check the DivX settings and make sure it isn't set to launching the video in an external player or anything else that would cause it to take the focus away from another program.