2011-06-22 59 views
0
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

您的意思是Frame Rate Converter DSP。問題是它不是一個完整的DirectShow過濾器,根本不是一個DirectShow組件。這是一個帶雙DMO/MFT接口的Digital Signal Processor

DirectShow提供了一個封裝器來封裝DMO並在DirectShow環境中使用它們,但是這些DMO是在沒有考慮到這種想法的情況下製作的。要在DirectShow中使用它們,很可能需要您自己的自定義包裝過濾器。

並沒有IAMStreamConfig接口可用,您應該使用IPropertyStore - 這是行爲設計​​。

+0

即使我被困在如何在我的應用程序中使用它?我試圖用它與MediaFoundation執行3:2下拉(將24 fps轉換爲30 fps)。但是我找不到任何代碼示例/幫助證明它的使用。我如何以24 fps的速度輸入樣本並獲得30 fps的樣本輸出? –