Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting virtual camera #1

Closed
michael135 opened this issue Jul 6, 2022 · 3 comments
Closed

Error starting virtual camera #1

michael135 opened this issue Jul 6, 2022 · 3 comments

Comments

@michael135
Copy link

michael135 commented Jul 6, 2022

When running:

sudo modprobe v4l2loopback video_nr=20 card_name="Virtual Camera 1" exclusive_caps=1

I'm getting:
modprobe: ERROR: could not insert 'v4l2loopback': Operation not permitted

@prabhakar-sivanesan
Copy link
Owner

Hi Micheal,

Please give some additional information to debug the problem like,

  1. OS type
  2. Commands used
  3. Also, information about previous version of v4l2loopback module installed, if any.

@michael135
Copy link
Author

Hi Prabhakar,

  1. Ubuntu 20.04
  2. Commans as in Readme.
  3. Regarding the v4l2loopback version:
apt -a list v4l2loopback-dkms
Listing... Done
v4l2loopback-dkms/focal-updates,focal-updates,focal-security,focal-security,now 0.12.3-1ubuntu0.4 all [installed]
v4l2loopback-dkms/focal,focal 0.12.3-1 all

@prabhakar-sivanesan
Copy link
Owner

prabhakar-sivanesan commented Jul 9, 2022

I personally didn't face this issues, but it looks like building the v4l2loopback module from source will solve this issue as suggested here here.
Step 1: Remove existing v4l2 module using sudo apt-get remove v4l2loopback-dkms
Step 2: Clone v4l2loopback module and build from source make && sudo make install and then run sudo depmod -a
Step 3: Create virtual camera using sudo modprobe v4l2loopback video_nr=20 card_name="Virtual Camera 1"

Please try these steps and let me know the whether the issue is solved.

P.S: I have also updated the readme with code to create virtual camera. Please refer that or clone the latest repo.

Edit 1 (23/07/2022): I encountered the same issue on couple of my friends machine. The above mentioned steps solved in one machine and not for the other. So I had to disable the Secure Boot option in the BIOS settings and it solved the issue finally on the other machine.

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

No branches or pull requests

2 participants