Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 VB DX7 and AVI's!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gravyboy
Neophyte

6 Posts

Posted - May 02 2003 :  06:35:06 AM  Show Profile  Reply with Quote
I can play avi's on a surface - using a 3rd party interface DLL - and I can display text on a surface. You'd think therefore that I can combine the two to show text on an AVI on a display surface.....

Nope, the problem I have (apart from not being able to code c/c+/c++) is that the DLL I have will only play the AVI on the front-surface - so no flipping the back to the front....

I need to find a way of pushing the avi a frame at a time to an offscreen surface, then putting the text on another offscreen surface, blitting one onto the other, and then flipping the lot to the front and starting again....

Like I said the stumbling block is the AVI....any help will be appreciated...

Amrazek
Squire

40 Posts

Posted - May 02 2003 :  08:26:21 AM  Show Profile  Reply with Quote
Which 3rd-party DLL are you using?

Go to Top of Page

gravyboy
Neophyte

6 Posts

Posted - May 02 2003 :  09:19:10 AM  Show Profile  Reply with Quote
Michael Braitmaier's . . . for dx7.

It writes single frames to the display surface...I really need to write to an off-screen plain surface to have the facility to blit the text onto it before flipping.
Go to Top of Page

gravyboy
Neophyte

6 Posts

Posted - May 02 2003 :  10:28:23 AM  Show Profile  Reply with Quote
I've just looked at the CAPS properties of the Video Renderer - PrimarySurface, VideoMemory, Visible . . . and I think that this is why the DLL writes to this surface....

If I set the surface as VideoMemory will this be invisible?

??:(??
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 02 2003 :  9:42:45 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
That library is just for playing a video, not for getting individual frames of the avi file. I'm not familiar enough with the DirectShow portion of DirectX to help, so you might want to consider DirectX8, which I'm not sure if it allows you to read an avi file frame by frame, its just something to consider. Also, could try contacting the author of the DLL and asking him questions.
Go to Top of Page

gravyboy
Neophyte

6 Posts

Posted - May 04 2003 :  10:24:54 AM  Show Profile  Reply with Quote
I can use D'show to manipulate the video ie get each frame - my problem is how to expose the frame to a d'draw surface for overlaying.... As far as I can see in VB there isn't an interface for displaying d'show as d'draw surfaces.... And I'd love for someone to prove me wrong.
Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 04 2003 :  10:39:40 AM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
The problem is that microsoft didn't put the direct show information into the VB directx 7 type library, which is probably why Michael Braitmaier created that DLL in the first place. I have never had a need to play a video in my game, or at least to extract individual frames, so I don't know that much about direct show. As far as I know, your only options, which you may not like, are to either find some C++ source code and create a DLL that can extract the frames, or like I said before contact Michael and ask for some help.

Game programming isn't easy, most of the time you'll have to find creative solutions to your problems, which for most people is why they like game programming; its a challenge. If you do succede with getting avi frames to a direct draw surface, you could write a tutorial on it or something describing what you had to do.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.14 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.