Skip to content

Replace pyfakewebcam with threading#222

Merged
fangfufu merged 2 commits intofangfufu:masterfrom
hoangtrann:replace-pyfakewebcam-with-threading
Nov 3, 2025
Merged

Replace pyfakewebcam with threading#222
fangfufu merged 2 commits intofangfufu:masterfrom
hoangtrann:replace-pyfakewebcam-with-threading

Conversation

@hoangtrann
Copy link
Contributor

@hoangtrann hoangtrann commented Nov 1, 2025

There is a known issue with pyvirtualcam with how it closes the webcam. The video output capability is somehow removed. I usually need to remove the modprobe and re-create it. If not doing sow, it will raise an error saying that the device is not an output one.

sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback devices=1 video_nr=10 max_buffers=2 exclusive_caps=1 card_label="Virtual Webcam"

fixes #219

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 1, 2025

@fangfufu fangfufu merged commit 5b0cd96 into fangfufu:master Nov 3, 2025
5 checks passed
@fangfufu
Copy link
Owner

fangfufu commented Nov 3, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace pyfakewebcam with something else.

2 participants