Archived

This topic is now archived and is closed to further replies.

wrice

DirectShow and TextOut over AVI

Recommended Posts

Hi all, Now, i can play AVI file by DirectShow (using of IGraphBuilder and ...) But, then.. I want to display some text over the AVI when play movie. How can i? thank u for answer -wrice-

Share this post


Link to post
Share on other sites
Hi, i''m not really good at DirectX, but I am trying to learn it well, anyway, how about taking the device context and just set them equal to the avi function and the font function, i think that may render both to the same window. just a thought, i''m not great with directx yet but who knows.

Share this post


Link to post
Share on other sites
I hate to say it, but if you're rendering an AVI to a window using DirectShow (not to some sort of off-screen surface) you may have trouble putting text over it.

The reason is that your video card is likely to put the AVI frame memory in an overlay surface, so it can use hardware to assist the AVI decoding, and this buffer is not copied to the actual primary buffer that you are dealing with.

Of course, it IS possible - DVD player apps do this, but I don't know how at the moment.

- Pete

Edited by - siaspete on February 10, 2002 9:20:49 AM

Share this post


Link to post
Share on other sites
The best thing to do is render the AVI file on a surface and display it with D3D. Then you can use 3D objects if you want or text or any other graphical items. Take a look at the Texture 3D sample in the SDK. HTH!

Arcus

Share this post


Link to post
Share on other sites