读取USB摄像机的输入编辑内容,并将输出发送到Windows上的虚拟摄像机 [英] Read USB camera's input edit and send the output to a virtual camera on Windows

查看:50
本文介绍了读取USB摄像机的输入编辑内容,并将输出发送到Windows上的虚拟摄像机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个项目,需要读取USB摄像机的输入,对其进行一些处理,然后将该数据发送到虚拟摄像机,以便Skype等可以访问它.

I am working on project where I need to read a USB camera's input, put some effects on it and then send that data to a virtual camera so it can be accessed by skype etc.

我已经编译并使用了 vcam过滤器.我还能够对FillBuffer方法进行一些更改.现在,我需要知道是否可以将数据从另一个应用程序发送到vcam过滤器,还是我需要编写另一个过滤器.

I have compiled and used the vcam filter. I was also able to make a few changes in FillBuffer method. I now need to know that is it possible to send data to vcam filter from another application or do I need to write another filter.

推荐答案

您目前作为模板的vcam项目是其他视频消耗应用程序(如Skype)的接口,这些应用程序使用DirectShow API来访问视频捕获设备并进行匹配平台/位数与您的过滤器.

The vcam project you currently have as a template is the interface to other video consuming applications like Skype, those which use DirectShow API to access video capture devices and match in platform/bitness with your filter.

您负责开发其余的假定过滤器:您可以直接在过滤器中访问真实设备(大大简化了任务,这就是您用 FillBuffer 填充代码的原因)视频(来自另一个来源的视频),或者您也可以实现进程间通信,以使 FillBuffer 实现可以从另一个应用程序传输数据.

You are responsible for developing the rest of the supposed filter: you either access real device right in your filter (simplifying the task greatly, this is what you fill your FillBuffer with, the code that generates video from another source), or alternatively you are to implement interprocess communication so that FillBuffer implementation could transfer data from another application.

Nethier vcam或任何标准DriectShow示例都提供了覆盖进程间通信的功能,您可能还需要处理其他复杂问题:一个应用程序和多个实例的过滤器会消耗视频,平台不匹配等.

Nethier vcam nor any of standard DriectShow samples offer functionality to cover interprocess communication, and you might also need to deal with other complications: one application and multiple instances of filters to consume video, platform mismatch etc.

另请参阅:

  • How to implement a "source filter" for splitting camera video based on Vivek's vcam?

这篇关于读取USB摄像机的输入编辑内容,并将输出发送到Windows上的虚拟摄像机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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