Question

How can I set properties of a DirectShow filter in c#? For example I want to set resolution of a webcam or the clippings of a cropping filter.

Was it helpful?

Solution

Filters typically have their "private interfaces", custom filter specific interfaces to control the filter in specific way, such as to set it up and/or alter its runtime behavior. There is no universal interface because filters are different. You normally know in advance what filter you are dealing with, so you QueryInterface its interface of interest and then set it up in desired way.

For certain specific tasks such as choosing capture format (video resolution) there are well known universal approaches, e.g. Get/set video resolution when capturing image

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top