Open bendavis78 opened 3 years ago
What is the size of background.jpg
? Try to scale/crop it to the resolution of your webcam.
See also #62. Maybe you have the same issue?
I've experienced a similar issue and was able to fix it for myself. It turns out after creating the v4l2loopback device and using it once, you can't change the resolution without hitting this error.
My process for resolution changes is:
sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback devices=1 max_buffers=2 exclusive_caps=1 card_label="VirtualCam"
python virtual_webcam.py
Here's my config.yml:
When i run
./virtual_webcam.py
, I get the following error: