GithubHelp home page GithubHelp logo

Comments (4)

fangfufu avatar fangfufu commented on May 18, 2024

Try pip3 install requests_unixsocket

from linux-fake-background-webcam.

sxiii avatar sxiii commented on May 18, 2024

@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.

AwesomeKenP avatar AwesomeKenP commented on May 18, 2024

@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.

fangfufu avatar fangfufu commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.