Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Ubuntu 20.04: Device open failed #76

Open
gizmo69the2nd opened this issue Sep 30, 2020 · 8 comments
Open

Ubuntu 20.04: Device open failed #76

gizmo69the2nd opened this issue Sep 30, 2020 · 8 comments

Comments

@gizmo69the2nd
Copy link

/dev/video10 is dummy device
sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1

ffmpeg is able to sink data to /dev/video10
ffmpeg -loop -re -i 2020-09-30\ 14-39-10.mkv -f v4l2 /dev/video10

OBS fails to open the device.
OBS user is the same as ffmpeg user and has permissions to RW /dev/video10

v4l2loopback installed from source and via apt-get, both give the same error

image

Any help is appreciated.

@ramonfontes
Copy link

Same problem here. It stopped working after upgrading the kernel to 5.8.

@tyoc213
Copy link

tyoc213 commented Nov 17, 2020

IOn ubuntu with sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1

modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/5.4.0-53-generic

@ochen1
Copy link

ochen1 commented Nov 17, 2020

To solve modprobe: FATAL: Module v4l2loopback not found in directory

you have to recompile the v4l2loopback after upgrading kernels

cd ~/Downloads/v4l2loopback && make clean && make && sudo make install
(assuming you downloaded it to Downloads)

And then, you have to copy it or ln -s to /lib/modules, like this:

sudo cp *.ko /lib/modules/$(uname -r)

@ochen1
Copy link

ochen1 commented Nov 17, 2020

and, btw, @tyoc213 im pretty sure you have a totally different problem, not what the OP is having difficulty with. and your issue has already been adressed by others

@ochen1
Copy link

ochen1 commented Nov 17, 2020

@gizmo69the2nd I advise you to manually compile instead of using apt :)

@computer-wizard
Copy link

computer-wizard commented Nov 17, 2020

make installs installs the module in /lib/modules/$(uname -r)/extra
You have to run the command 'sudo depmod' afterwards, otherwise it doesn't see it!. (depmod creates modules.dep & map files)
Just copying to /lib/modules/$(uname -r)/ doesn't help. It has to be registered in modules.dep with the sub-directory it is in.
See the man page for depmod. (Tested at Ubuntu)

@ochen1
Copy link

ochen1 commented Nov 17, 2020

Haha, sorry my bad.

Forgot to mention to run a sudo depmod -a afterwards lol

@gizmo69the2nd
Copy link
Author

@gizmo69the2nd I advise you to manually compile instead of using apt :)

Can confirm that this works!
Thanks for the support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants