Giter Site home page Giter Site logo

Comments (5)

fangfufu avatar fangfufu commented on August 16, 2024

Could you tell me what command you use to run fake.py, please? and did you do any modification to the code? The code does set the default webcam resolution.

from linux-fake-background-webcam.

rpavlik avatar rpavlik commented on August 16, 2024

I have reverted all my changes to the code except for the signal changes in this diff.
changes.txt

I must have had things mixed up yesterday, or maybe some weird device state, since it's acting OK now, succeeding if I specify all of height, width, and FPS, and giving reasonable warnings if I specify less:

+ ./fake.py -w /dev/video0 -v /dev/video4 -F 25 --no-foreground -b chairs-2181960_1280.jpg -W 640 -H 480
Running...
PID: 13010
Please send SIGUSR1 to reload the background / foreground images
Please CTRL-C to exit

+ ./fake.py -w /dev/video0 -v /dev/video4 --no-foreground -b chairs-2181960_1280.jpg -W 640
Cannot set camera property 4 to 720, used value: 480.0
Running...
PID: 14885
Please send SIGUSR1 to reload the background / foreground images
Please CTRL-C to exit

I can't manage to reproduce the exception today.

That said, slightly smarter mode-selection parsing might be nice (e.g. if I only pass width, only try setting width, and use the height and fps implied by available modes).

Sorry for the noise!

from linux-fake-background-webcam.

fangfufu avatar fangfufu commented on August 16, 2024

Ah okay, I am glad that it is working for you! :)

from linux-fake-background-webcam.

brianrudolf-ep avatar brianrudolf-ep commented on August 16, 2024

Adding to this if anyone is stuck with the error as I was stumbled into it:

I encountered this error when Zoom was open and the setting "Original ratio" was unchecked. I imagine it was making a change to the video stream that was not entirely clear to fake.py

from linux-fake-background-webcam.

colemandatravelingnerd avatar colemandatravelingnerd commented on August 16, 2024

Also adding as I was struggling with this error. Same as above, make sure zoom is set to "Original Ratio," but also try to have the camera be uninitialized by Cheese, Zoom, etc. when starting up your terminal call for fake.py

Then you can change the webcam in Zoom or whatever app to the "fake-cam." While Zoom, Cheese, etc. is open and actively using the webcam, I got this error and couldn't for the life of me figure out why. Simply turning everything off and doing this from an unused state got me results.

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.