Comments (4)
Try pip3 install requests_unixsocket
from linux-fake-background-webcam.
@fangfufu same - requirements already satisfied.
But I've just tried to recompile v4l2loopback kernel module. Seems I need a reboot & modprobe:
[sw@t490s fakecam]$ python3 -u fake.py
Cannot set camera property 3 to 1280, used value: 640.0
Cannot set camera property 5 to 30, used value: 10.0
Traceback (most recent call last):
File "fake.py", line 379, in <module>
main()
File "fake.py", line 352, in main
cam = FakeCam(
File "fake.py", line 114, in __init__
self.fake_cam = pyfakewebcam.FakeWebcam(v4l2loopback_path, self.width, self.height)
File "/home/sw/.local/lib/python3.8/site-packages/pyfakewebcam/pyfakewebcam.py", line 54, in __init__
fcntl.ioctl(self._video_device, _v4l2.VIDIOC_S_FMT, self._settings)
OSError: [Errno 22] Invalid argument
from linux-fake-background-webcam.
@sxiii i had the same issue and what fixed it was specifying the video device path after loading v4l2loopback module:
python3 fake.py --v4l2loopback-path=/dev/videoN
, where N was 4 in my case.
from linux-fake-background-webcam.
This is no longer relevant, as I am using Mediapipe as the backend. Please check out the latest commit.
from linux-fake-background-webcam.
Related Issues (20)
- Unable to launch program - "Invalid argument" error HOT 16
- [feature request] background color keying HOT 1
- Insane CPU usage HOT 3
- background image overlapping too much of person HOT 3
- "Descriptors cannot not be created directly" HOT 5
- OSError: [Errno 22] Invalid argument HOT 1
- line 71, in get_frame_rate ... ValueError: cannot convert float NaN to integer HOT 2
- effect of --threshold ?
- ondemand does not work for WebEx HOT 14
- Debian Bullseye HOT 1
- Static file
- Don't understand modprobe config HOT 1
- TypeError: 'numpy._DTypeMeta' object is not subscriptable HOT 4
- Google Meet switching from real cam to fake cam results in black screen HOT 1
- Errno 22 when video-call app (or on browser) is opened before running fake.py. (Resolved by system reboot) HOT 6
- Suggestion: switch to new async interface for segmentation (>50% drop in CPU usage) HOT 2
- Overload resolution failed HOT 3
- Someone please write some sort of CI workflow for testing this stuff.
- requirements.txt missing HOT 1
- IDEA: Support Pipewire camera source, as an alternative to v4l2loopback HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux-fake-background-webcam.