Anton__

Hello

I'm using VMR9 interfaces to mix and play 2 videos. Everything is good so far, but one of my videos contains an alpha channel. Though in the output the alpha channel is not accounted - I see a black rectangle instead of the background video. The transparent is in quicktime format.

So my question is: how to play videos containing alpha channel correctly
And how to apply an alpha mask to the video without alpha channel.

Thanks
Anton


Re: DirectShow Development VMR9: mixing videos with alpha channel

Bowljoman

VMR9 does color key but not argb as far as I know.
Read RGBFilters sample 'alpha renderer' and impliment your own solution.
Im in that boat, and the water is fine. However, Im rendering into a sourcefilter buffer instead of a screen device context, and Im using sample grabbers in independant graphs instead of pin conections. The blending is the same. Adding alphamasks is as easy as a do while loop. Composting in devicecontext.

looks somethinlike this
http://myspacetv.com/index.cfm fuseaction=vids.individual&videoid=11498513





Re: DirectShow Development VMR9: mixing videos with alpha channel

Anton__

I'm having problems with using the sample filters from Platform SDK. I've compiled them - everything's cool. Now I'm trying to import the com objects into my application using #import "RGBFilters.tlb" named_guids raw_interfaces_only
but I'm getting the following error.
Error 5 error C2061: syntax error : identifier 'PAPCFUNC' c:\program files\microsoft platform sdk for windows server 2003 r2\include\mmstream.h 668
Could anyone tell me how to use the sample filters correctly please I'm new to DS.. so please sorry my ignorance.

Thanks
Anton