Skip to content

Navigation Menu

Sign in
Sign up

Virtual Cameras as input device #217

Answered by sandrist
chiragmerchant asked this question in Q&A
Discussion options

Is there a way to work with input from software/virtual cameras providers like OBS?

I am having some trouble getting input devices in the following situations:

  1. While running Windows via VMWare on a MacBook Pro laptop the PSI based app does not list any cameras. Other apps like Zoom and Unity are able to list and display the camera.

  2. While running on Windows on PC, other programs (Zoom and Unity) are able to list and display hardware and virtual cameras, but using PSI, I see only the hardware cameras.

Screenshot shows Zoom listing with the highlighted ones being the hardware webcams:
ApplicationFrameHost_sPVRvpLIua

Thank you.

You must be logged in to vote

I played around with some virtual cameras this week, and it seems like some virtual cameras show up as input devices, but not others. For example, I first tried the Snap Camera, and that showed up just fine in the list of possible devices available to \psi. But then I downloaded and tried OBS, and confirmed that its virtual camera does not show up.

The problem seems to be of Media Foundation vs DirectShow. Our MediaCapture component is built off of Media Foundation APIs and libraries, and does not support DirectShow devices (which virtual cameras like OBS are implemented as). This is also why, for example the OBS virtual camera doesn't show up in Windows 10's camera app

One solution would...

Replies: 1 comment 1 reply

Comment options

I played around with some virtual cameras this week, and it seems like some virtual cameras show up as input devices, but not others. For example, I first tried the Snap Camera, and that showed up just fine in the list of possible devices available to \psi. But then I downloaded and tried OBS, and confirmed that its virtual camera does not show up.

The problem seems to be of Media Foundation vs DirectShow. Our MediaCapture component is built off of Media Foundation APIs and libraries, and does not support DirectShow devices (which virtual cameras like OBS are implemented as). This is also why, for example the OBS virtual camera doesn't show up in Windows 10's camera app

One solution would be for someone to write a new MediaCapture component for \psi that supports DirectShow devices. That isn't on our team's roadmap, but we would welcome a community contribution on it if anyone wanted to try.

I don't have a setup that can replicate your VMWare question, but I suspect the answer might be the same. Perhaps VMWare also uses DirectShow to surface physical cameras in the VM? One thing you could check is if the Windows 10 Camera app sees any of the cameras.

You must be logged in to vote
1 reply
Comment options

I also created a 'help-wanted' issue (#218) and discussion idea (#219) on this topic.

Answer selected by chiragmerchant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /