Replies: 1 comment
-
The error is related to opencv, read e.g. https://forum.opencv.org/t/running-on-windows-10-cant-open-camera-by-index-on-windows-11/14432 You could try to open both cameras with e.g. VLC or any other app that can display video streams - this should work, assuming there's no error in pyvirtualcam/unitycam. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
First of all, thank you for the library, it's really awesome. I have a use case that I haven't been able to find a solution for.
I have 2 webcams and I am trying to set up a virtual webcam for each in order to run a variety of analysis scripts on the frames from both. The intent of using virtual cameras is to avoid blocking the camera by connecting to it directly with OpenCV, or having to broadcast the frames to different processes through some other means.
I'm on Windows, so it looks like my only option for a backend that supports multiple virtual cameras is UnityCapture.
I have been able to read the OBS virtual camera like so:
The same code does not work for the UnityCapture virtual cameras. I can see that they are correctly receiving frames by opening them as sources in OBS.
I get the following error when trying to grab frames with the above snippet:
I've tried experimenting with different values from your API docs but haven't been able to solve it.
Do you have any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions