如何识别 DirectShowNet 过滤器引脚
我正在尝试实现我创建的图形编辑过滤器文件。我正在使用 3ivx 编码和压缩视频,然后将其保存为 .mp4。
在我的 graphedit 文件中,我有:
Mpeg4s Decoder DMO (out0) -> (XForm In) 3ivx MPEG-4 Video Encoder (XForm Out)->
但是,当我将其写入代码时,无法找到引脚(XForm In)和(XForm Out),因此无法连接。
我将运行图添加到 DsRot 以显示当前图,它显示了 (XForm In) 和 (XForm Out) 引脚未连接的滤波器。
我打电话
IEnumPins pinsx;
filter.EnumPins( out pinsx );
尝试获取可用的引脚,但它不将名称存储在 IEnumPins 中,而是存储对象。
我如何找到与此过滤器关联的引脚?
Im trying to implement a graphedit filter file i created. I am using 3ivx to encode and compress a video then save it to .mp4.
in my graphedit file i have:
Mpeg4s Decoder DMO (out0) -> (XForm In) 3ivx MPEG-4 Video Encoder (XForm Out)->
However when i put this to code, the pin (XForm In) and (XForm Out) cant be found, and therefor wont connect.
I added the running graph to DsRot to display the current graph and it showed the filter with (XForm In) and (XForm Out) pins unconnected.
I called
IEnumPins pinsx;
filter.EnumPins( out pinsx );
to try and get what pins are available but it doesnt store the names in IEnumPins, it stores object.
How can i find the pins associated with this filter?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 处的
FindPinByDirection
函数Splicer.Utilities.FilterGraphTools(codeplex)。还有一个 ConnectFilters 函数,您可能可以使用它:
Take a look at the
FindPinByDirection
function at Splicer.Utilities.FilterGraphTools (codeplex).There is also a ConnectFilters function, which you probably can use: