Closed KochC closed 3 years ago
Try using delay=0
in the Camera constructor. The minimum actual delay of the camera buffer is 10 frames. I'm currently adding support for the new built-in virtual camera of OBS (not the plugin), which reduces that to 3 and should help further.
Could you retry with the latest release of pyvirtualcam (0.4.0)?
tried the old version with delay 0
, then the whole system crashes. Using delay 1
works with quite a low delay.
I will try the new version later today and report the outcome.
works nicely. No crashes anymore so far. Almost no delay.
camera = pyvirtualcam.Camera(width=640, height=480, fps=10, delay=0)
I am sending data from C++ to Python in order to stream on a webcam. The streaming itself, without data from C++, works great and without big delay using this code.
So it seems like the streaming is not the issue. With the following code, I can stream data from C++ with almost the same minimal delay to Python and display it using opencv.
But the webcam feed has a delay of around 2 seconds.