一个摄像头中的两个实例 [英] Two Instances from one Webcam

查看:85
本文介绍了一个摄像头中的两个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是DirectShow的新手,找到了一个示例捕获,当我运行此应用程序的两个实例时,它会抛出异常,例如已经在使用照相机。我要求两个应用程序共享同一照相机。

I am new at DirectShow and found one example to capture when i ran two instances of this app it throws exceptions like camera is already in use.I having a requirement that the same camera will be shared by two Applications.

是否可以使用任何过滤器来实现?

Is it possible to acheive this using any filters

预先感谢

推荐答案

DirectShow网络摄像机通常是专用资源,应用程序无法共享它们。一种解决方案是使用虚拟相机软件,该软件创建可用于许多应用程序的虚拟设备,并由真实设备支持。或者,您也可以自己实现共享。

DirectShow web cameras are typically exclusive use resources, applications cannot share them. One solution is to use a virtual camera software that creates a virtual device available to many apps, backed by real devices. Or, you can also implement the sharing yourself.

另请参见:

  • Why does Windows only allow one application to access the webcam?
  • Is there a way to create a duplicate device of webcam?

这篇关于一个摄像头中的两个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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