For example, here is a simple snippet to reproduce the error
import pyvirtualcam
with pyvirtualcam.Camera(640, 480, 20, 0, print_fps=True) as cam:
print("Everything works fine")
with pyvirtualcam.Camera(640, 480, 20, 0, print_fps=True) as cam:
print("Here it throws the error")
This outputs as follows:
Everything works fine
virtual camera output already started
Traceback (most recent call last):
File "d:\vcam\ultra-virtual-cam-filter\test.py", line 6, in <module>
with pyvirtualcam.Camera(640, 480, 20, 0, print_fps=True) as cam:
File "C:\Users\rahat\.conda\envs\vcam\lib\site-packages\pyvirtualcam\camera.py", line 86, in __init__
_native_windows.start(width, height, fps, delay)
RuntimeError: error starting virtual camera output
For example, here is a simple snippet to reproduce the error
This outputs as follows:
So, my guess is, maybe it is not calling the below function at all? https://github.com/letmaik/pyvirtualcam/blob/d88dd87c46d5c700378a882e78e8c61ae02eac9e/pyvirtualcam/native_windows/controller/controller.cpp#L67