简体   繁体   English

如何为Expression Encoder 4创建DirectShow筛选器? 或与GRF合作

[英]How to create directshow filter for Expression Encoder 4? or work with GRF

I have a digital tuner for cable , and i need to capture it with expression encoder the graph looks like in the picture : 我有一个用于电缆的数字调谐器,我需要用表达式编码器捕获它,图形如图所示: 在此处输入图片说明

My problem is that i'm not that good with c++ i know a little bit of c# and from what i understood i'm supposed either to create a directshow filter for expression encoder either to create a graph and pass it to expression encoder . 我的问题是我对c ++不太了解,但我了解一点c#,据我了解,我应该为表达式编码器创建一个DirectShow过滤器,或者创建一个图并将其传递给表达式编码器。 I don't know how to do neither of them. 我都不知道该怎么办。

Anyone have any advices? 有人有什么建议吗? over-all i'm a verry fast learner and good with c# but thats all. 总的来说,我是一个非常快速的学习者,并且对C#很好,但这就是全部。

Expression Encoder works with available video capture devices, which are capable to deliver video stream, typically in frames and and compressed, such as being capture by web camera. Expression Encoder可与可用的视频捕获设备配合使用,这些设备通常能够以帧形式传输并压缩视频流,例如通过网络摄像机捕获视频流。

You, on the contrary, build a chain of filters to produce a video stream. 相反,您构建了一系列过滤器以生成视频流。 It is not a device and instead it is a video stream generated by software. 它不是设备,而是由软件生成的视频流。 Expression Encoder is not flexible to take such feed. Expression Encoder不灵活地接受这种提要。

There is no easy way to connect the two. 没有简单的方法来连接两者。 A typical approach is to create a virtual device that wraps the custom filter graph (that you provided) and exposes video stream as it it is a capture device. 一种典型的方法是创建一个虚拟设备,该设备包装自定义过滤器图(您提供的)并在视频流作为捕获设备时对其进行公开。 Making such virtual device registered and available to applications, you have an option to select and use it from Expression Encoder. 使此类虚拟设备注册并可供应用程序使用,您可以从Expression Encoder中选择并使用它。

This kind of implementation would require you to write at least parts of code in C++ because the underlying APIs are all native. 这种实现需要您至少用C ++编写部分代码,因为基础API都是本地的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM