Two Instances from one Webcam

假如想象 提交于 2019-12-11 12:52:08

问题


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

Thanks in advance


回答1:


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.

See also:

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


来源:https://stackoverflow.com/questions/28605444/two-instances-from-one-webcam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!