问题
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.
回答1:
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
来源:https://stackoverflow.com/questions/23265420/set-properties-of-filter-in-directshow-net