Setting Properties in Directshow DMO "Constant FrameRate Conveter" in C#

918 Views Asked by At
Has anyone any code examples on how to set the properties of the 'Constant Framerate Converter' DMO filter.  I am using it in a graph and wish to programmatically control output framerate.  When I try to access IAMStreamConfig, it errors.
1

There are 1 best solutions below

1
Roman Ryltsov On

You perhaps mean Frame Rate Converter DSP. The thing is that it is not a full DirectShow filter, and is not basically a DirectShow component at all. It is a Digital Signal Processor with dual DMO/MFT interface.

DirectShow provides a wrapper to wrap DMOs and make them available in DirectShow environment, but these DMOs are made without this thought in mind. To use them in DirectShow you most likely need your own custom wrapper filter.

And there is no IAMStreamConfig interface available, you should be using IPropertyStore - this is behavior by design.