Expose Directshow transform filter as video capture device

I want to implement an on top filter for webcam to be used in third-parties streaming app such as Skype, Facebook Messenger.
My idea is creating a Drectshow transform filter and introduce it to the world as a video capture device.
When applications connect to my video capture device which actually is a transform filter, the filter will connect itself to the real webcam’s video source using IFilterGraph.

Is my approach correct?
I would be very grateful if you give me some ideas to do that.

Sort of. You CAN create a DirectShow source filter that reads from a web camera, does some manipulations, and offers it as a separate video source. However, some video-consuming applications (Skype chiefly among them) will only connect to camera devices backed by a kernel driver. So, the concept works in most circumstances, but not 100%.

The same is not true of audio.

1 Like