请教高手:encoderSDK中调用filter的问题
请问:
一般的filter在encoder中注册后,我们可以在encoderSDK中得到filter对应的plugin指针,这个plugin指针除了能返回filter的属性页之外,能不能得到filter的其它接口,怎么得到?
问题点数:100、回复次数:5Top
1 楼ablewindy(我是【风子】我怕谁)回复于 2005-10-25 23:28:38 得分 0
怎么在Encode中注册啊!
应该只要有接口的CLSID就能得到它提供的相应接口吧!Top
2 楼antzl(philozl)回复于 2005-10-26 13:13:44 得分 0
encoderSDK的文档中:
Using Transform Plug-Ins
The Windows Media Encoder 9 Series SDK enables developers to write transform plug-ins that customize and build upon encoding functionality. Windows Media Encoder supports Microsoft DirectShow® and Microsoft DirectX® Media Objects (DMO) transform filters by providing a wrapper plug-in.
At this time, you must register plug-ins using the Plug-ins tab in the Session Properties panel in Windows Media Encoder. Then the plug-ins can be used in the Windows Media Encoder SDK. IWMEncTransformPluginInfoManager manages the plug-ins that have been registered. Use IWMEncPluginInfo to retrieve information about a specific plug-in.
。。。。。。Top
3 楼antzl(philozl)回复于 2005-10-26 13:17:50 得分 0
但是文档中
IWMEncTransform::GetTransformPlugin的Remarks只是说:
You can use this method to retrieve the property pages supported by a specific transform plug-in.
所以我不知道别的接口怎么获得?
Top
4 楼ablewindy(我是【风子】我怕谁)回复于 2005-10-26 16:33:46 得分 100
可能只能获得获得属性页;
你写了这样的插件吗?它应该也是一个COM组件吧!你可以自己试试查询相应的接口啊!
你可以看看Windows Media编码器里的会话属性窗口的插件里面,它也就能调出插件的属性窗口。Top
5 楼antzl(philozl)回复于 2005-11-02 09:52:59 得分 0
组件是我自己写的,我也怀疑只能调出属性页,所以来这里提问。
最后,由于顾及项目进度,我已经绕过这个问题,用读写注册表的方式解决了这个问题。Top




