Giter VIP home page Giter VIP logo

Comments (5)

hamidzr avatar hamidzr commented on June 15, 2024 1

adding the video device does require root access and I'm not sure how you can get around that off the top of my head. running the script however should not require root access.

you can set up your machine to add this virtual device on startup (https://askubuntu.com/a/1245223) . take the exact arguments from the Makefile for this project.

with this set up once the machine boots up you'll have the virtual device set up and should be able to use the project without root access. However, since I moved the project to use pyvirtualcam it seems to mess with the device (maybe I'm using it incorrectly) after the script shuts down so the next time you'd try to start the script you basically have to tear down and recreate the device this wasn't the case when I was directly using the v4l2 driver and I'm not sure how to fix this part.

from webcam-mods.

hamidzr avatar hamidzr commented on June 15, 2024 1

However, since I moved the project to use pyvirtualcam it seems to mess with the device (maybe I'm using it incorrectly) after the script shuts down so the next time you'd try to start the script you basically have to tear down and recreate the device this wasn't the case when I was directly using the v4l2 driver and I'm not sure how to fix this part.

this is now addressed on Linux by switching back to the previous v4l2loopback backend I was using.

from webcam-mods.

hamidzr avatar hamidzr commented on June 15, 2024

you shouldn't need to need root other than for setting up your webcam device and/or adding the kernel modules especially if you're not installing the python package globally. 🤔

from webcam-mods.

mozo78 avatar mozo78 commented on June 15, 2024

When it adds the video device (everytime you start the stream), it always asks for root permissions. For now I use it this way for I don't want my coleagues to enter a password manually:
cd "dirname "$0""/webcam-mods-master && pipenv run echo "1234" | sudo -S make add-video-dev pipenv run python entry.py bg-swap
1234 is the password.
But my boss have problems with the fact they have admin rights. They should be standard users and here comes the problem - they can't start the stream as a standard user.

from webcam-mods.

mozo78 avatar mozo78 commented on June 15, 2024

Thank you very much. I hope pyvirtualcam will be fixed :)

from webcam-mods.

Related Issues (13)

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.