我的 DirectShow 过滤器没有引脚
我通常使用 GraphEdit 构建过滤图。
我可以正确添加我的过滤器。该过滤器来自WinDDK 制作的驱动程序。它有1个输入引脚和1个输出引脚。
当我尝试使用本教程以编程方式执行此操作时< /a>,过滤器加载,但没有引脚。引脚枚举失败,当我使用 graphedit 连接到远程图形时,它不显示任何引脚。
如何确保我的驱动程序导出正确的 DirectShow 过滤器?
关于创建 DirectShow 过滤器的 MSDN 教程和 GraphEdit“插入过滤器”功能之间的根本区别是什么?
I usually build filter graphs with GraphEdit.
I can add my filter correctly. This filter comes from a Driver made from WinDDK. It has one input pin and one output pin.
When I try to do it programatically using this tutorial, the filter loads, but it has no pins. Pins enumeration fails and when I connect to my remote graph with graphedit, it doesn't show any pins.
How can I make sure that my driver exports the correct DirectShow filter?
What is the fundamental difference between the MSDN tutorial about creating DirectShow filters and GraphEdit "Insert Filter" function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果我理解正确的话,您已经创建了自己的源过滤器?
需要仔细检查:
我对WinDDK开发不熟悉,但是你能在那些方法中放置断点看看发生了什么吗?
If I understand you correctly, you have created your own source filter?
Point to double check:
I am not familiar with WinDDK development, but can you put breakpoints in those methods to see what is happening?
某些过滤器在插入图表时可能没有引脚(尤其是没有输出引脚)。这些过滤器通常根据某些条件动态创建其引脚:例如,我知道一些 BDA 驱动程序仅在连接输入引脚后才创建其输出引脚。
这允许根据连接到输入引脚的内容来决定输出引脚的媒体类型。
也许你可以检查一下你是否遇到类似的情况。
银杏
Some filters may have no pins (especially no output pins) when inserted to graph. These filters usually create their pins dynamically depending on certain conditions: for example, I know some BDA drivers that create their output pin only once their input pin have been connected.
This allow deciding the output pin's media type according to what will have been connected to the input pin.
Maybe you could check if you are not in a similar situation.
Gingko