xxxxx@gmail.com wrote:
> If you do that, who do you think is going to be feeding the input pin?
> Someone, somewhere, has to load a filter into the graph and hook it up
> to your transform filter’s input pin. AMCap is not going to do that.
So if I’ll run a user mode DirectShow application (kind of a proxy) that connects between my DirectShow filter and the AVStream driver (input pin) and feed the input pin (according to the media type defined by the driver) - that will do it?
Only within the same graph. That is, if you have an app that creates a
graph that looks like this:
[AVStream]
[Feeder] -> [Capture/Transform] -> [Render]
it would work, but that solution doesn’t cross applications. I think
YOU are thinking you could have application 1 feed the input pin, then
use those frames in standard capture application 2. That won’t work.
Is the AVStream transform filter driver (that registered as Image class device) is still going to be identified as real Camera by Metro applications?
That’s just registry stuff. At that point, the app doesn’t know source
vs transform vs sink. However, as I said, an unaware application is
going to expect to USE it like a source filter – it would create a
feeder filter.
If I’ll change my Directshow filter into Media foundation filter - can it be recognized as Image class device by Metro application? Is is actually possible to have Media foundation capture filter?
I know virtually nothing about Media Foundation. It has simply never
come up for any of my clients.
Can I connect my COM server to the AVStream driver (using user mode/KMDF driver communication) and deliver the real camera video into the “Fake” camera driver?
An AVStream driver can have ksproxy plugins that get loaded when the
driver is instantiated in a DirectShow graph. That ksproxy plugin is a
standard COM server that sits between the graph and the driver. That
plug-in could conceivably connect to your COM server and feed frames down.
Is there an option to add filter driver to the real camera AVStream driver and duplicate+direct the camera frames into the “Fake” camera driver?
I don’t know how that would help. If you’re writing an AVStream driver,
you already have a driver. A filter doesn’t add anything.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.