DirectShow wmv video - problem with desktop switch
Hello.
I have an intro in wmv format and use the directshow object to play the video.
Start of frame -> play video.
time = x seconds -> display some additional text
time = y -> jump to frame a
But when the frame jumps to another one everything switches to the desktop, minimized. How can I get rid of this?
Re: DirectShow wmv video - problem with desktop switch
Just found out that it works in normal mode (runtime options).
But the game uses 800x600 and "switch to fullscreen". I have 1024x768 as WinXP resolution. When the game is switched to 800x600 the hz of the monitor are bad...when I use directx for the display mode it works.
BUT I have the "switches back to desktop" problem.
Any ideas?
Re: DirectShow wmv video - problem with desktop switch
Re: DirectShow wmv video - problem with desktop switch
I had this exact same problem when working on Shooting Stars. The solution is to make sure you're not using Direct X mode for your game and just use the standard MMF display mode.
Re: DirectShow wmv video - problem with desktop switch
I can't. In normal mode the screen is set to 800x600 with really bad hertz...it's a pain for the eyes. I don't know if you can set the hertz in the event editor but even if it was possible the problem would be that I don't know what screen users have.
It works with a subapplication...but the pause between intro (app. 1) and actual game (app. 2) is not that good.
Re: DirectShow wmv video - problem with desktop switch
Shooting Stars uses the Change Resolution mode to set the games screen to 800 x 600 and I haven't seen any bad effects from the refresh rate of the monitor because of this.
The only other option I can think of is to convert your entire movie into an Active Object but if it's a long movie, the Active Object will be quite large.
Re: DirectShow wmv video - problem with desktop switch
How can I convert it? No, it is only 10 seconds in length.
Re: DirectShow wmv video - problem with desktop switch
I think you'd have to set each frame of the film as a frame of the active object. Then get it to run the Active object at a certain speed and it will play the film as though it were an animation
Re: DirectShow wmv video - problem with desktop sw
Quote:
Originally Posted by JoshHarris
I think you'd have to set each frame of the film as a frame of the active object. Then get it to run the Active object at a certain speed and it will play the film as though it were an animation
OW GOD NO!
http://www.brothersoft.com/d.php?soft_id=57090&url=http%3A%2F%2Fwww.any-video-converter.com%2Fany-video-converter-free.exe
That Will Convert Anything To... Anything.
Good Luck.
btw, JoshHarris is forgiven since he's 'new'
Re: DirectShow wmv video - problem with desktop sw
Actually, you should be able to Import Animation and have it read in an AVI file (not sure about WMV), converting each frame of the AVI into a frame of animation in the Active Object. I remember doing this in MMF 1.5 but haven't done it in MMF 2 but I'm sure it can do it too.
Just remember, each frame of your WMV will be a frame of animation in your Active Object. So if your WMV runs at 25 frams a second, a 10 second animation is 250 frames so that's quite large. Also, you'll need to take in the sound seperately and play it in line with the Active Object running.
Re: DirectShow wmv video - problem with desktop sw
try destroying the direct show object before switching frame and see if that makes a difference
Re: DirectShow wmv video - problem with desktop sw
Quote:
Originally Posted by raytrace
try destroying the direct show object before switching frame and see if that makes a difference
It doesn't. Yves confirmed this is a Direct X issue. Using MMF's own display mode is the way to resolve it.