关于“在DirectShow之外使用DirectShow过滤器?”; [英] About "Using DirectShow filters outside DirectShow?"

查看:67
本文介绍了关于“在DirectShow之外使用DirectShow过滤器?”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下链接中,我有完全相同的问题,
在DirectShow之外使用DirectShow过滤器?
我是一个直接上演的新鲜人,那对我来说还不够清晰。而且我找不到与作者联系以询问他是否解决了他的问题的方法。有没有办法做到?



或者,有人可以提供更多有关这两个答案的详细信息吗?

解决方案

我无法评论手动方法(坏主意,IMO),但是使用DirectShow的一种选择是将整个过滤器图包装在Media Foundation对象中。因此,是的,在Media Foundation对象中将是一个完整的DirectShow图,以及您感兴趣的过滤器。



当然,这不是-平凡-对于DirectShow图,您需要一些输入过滤器,然后可能需要一个样本采集器过滤器才能从图中获取样本。您的图形如下所示:



源过滤器->一些DMO解码器-> Sample Grabber-> Null Renderer



如果您的解码器过滤器是DMO,那么它将变得更加容易。我认为您不使用DMO过滤器?


I have exactly the same question in the following link, Using DirectShow filters outside DirectShow? I am a fresh to direct show and the two answers in that stack is not clear enough to me. And I can not find a way to contact with the author to ask if he solved his problem. Is there a way to do this?

Or, could some one give more detail explain about these two answers? What does it means about " "by hand" call the various filter " and what does it means about "wrap the entire filter graph"?

解决方案

I can't comment on the "by-hand" method (bad idea, IMO), but one option for using DirectShow is to wrap the entire filter graph in your Media Foundation object. So yes, inside the Media Foundation object would be a full directshow graph, along with the filter(s) that you were interested in.

This, of course, is non-trivial--for the directshow graph, you'd need some input filter, and then probably a sample grabber filter to get samples out of the graph. Your graph would look something like:

Source Filter -> Some DMO Decoder -> Sample Grabber -> Null Renderer

...and the sample grabber would call a callback every time a sample passed through.

If your decoder filter is a DMO, then it becomes much easier. I take it you're not using a DMO filter?

这篇关于关于“在DirectShow之外使用DirectShow过滤器?”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆