在Directshow DMO中设置属性”;“恒定帧速率转换器”;在C#中

本文关键字:帧速率 转换器 属性 DMO Directshow 设置 | 更新日期: 2023-09-27 17:59:53

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.

在Directshow DMO中设置属性”;“恒定帧速率转换器”;在C#中

您可能是指帧速率转换器DSP。问题是,它不是一个完整的DirectShow过滤器,基本上根本不是一个DirectShow组件。它是一个具有双DMO/MFT接口的数字信号处理器。

DirectShow提供了一个包装器来包装DMO并使其在DirectShow环境中可用,但这些DMO是在没有考虑到这一点的情况下制作的。要在DirectShow中使用它们,您很可能需要自己的自定义包装筛选器。

而且没有可用的IAMStreamConfig接口,您应该使用IPropertyStore——这是设计的行为。