Operating System: Windows 11
Python Version: 3.12.2
pyvirtualcam Version: Latest
Virtual Camera Used: UnityCapture
Virtual Camera Version: Latest
Describe the bug
I'm encountering a bug when using pyvirtualcam with multiple UnityCapture devices. Specifically, after installing 10 UnityCapture devices and attempting to select and use a device other than the first one through pyvirtualcam, none of the devices function as intended. Instead, all UnityCapture devices mirror the output designated only for the first device.
with pyvirtualcam.Camera(width=640, height=480, fps=20, backend="unitycapture", device="Unity Video Capture #2") as cam:
print(f'Using virtual camera: {cam.device}')
while True:
cam.send(frame)
cam.sleep_until_next_frame()
3. Running a script intended for the first UnityCapture device subsequently affects all devices:
```py
frame = np.zeros((480, 640, 3), np.uint8)
frame[:] = (255, 0, 0) # red
with pyvirtualcam.Camera(width=640, height=480, fps=20, backend="unitycapture", device="Unity Video Capture") as cam:
print(f'Using virtual camera: {cam.device}')
while True:
cam.send(frame)
cam.sleep_until_next_frame()
Environment
Operating System: Windows 11 Python Version: 3.12.2 pyvirtualcam Version: Latest Virtual Camera Used: UnityCapture Virtual Camera Version: Latest
Describe the bug
I'm encountering a bug when using pyvirtualcam with multiple UnityCapture devices. Specifically, after installing 10 UnityCapture devices and attempting to select and use a device other than the first one through pyvirtualcam, none of the devices function as intended. Instead, all UnityCapture devices mirror the output designated only for the first device.
To Reproduce
with pyvirtualcam.Camera(width=640, height=480, fps=20, backend="unitycapture", device="Unity Video Capture #2") as cam: print(f'Using virtual camera: {cam.device}') while True: cam.send(frame) cam.sleep_until_next_frame()