-
Notifications
You must be signed in to change notification settings - Fork 515
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
[Bug]: Can't create second device #587
Comments
the however, once you have loaded the kernel module, you cannot just load it again: it's already loaded. prior to 0.13, you would have pass the maximum number of devices you expect during the lifetime of the running kernel at the time you load the module. since 0.13, you can dynamically create devices with the |
Hey @umlaeute The command I specified above is run at boot time, so it isn't an issue of the module needing to be unloaded. I didn't have |
Then I misunderstood your problem. Good that the issue had been resolved nevertheless. In any case: no, having |
Okay, well although the problem is solved, I may have encountered a bug with the module, as I haven't been able to have it create the device with the command I specified. |
Okay, I think there is some kind of bug with how v4l2loopback handles card_labels, or the documentation in the readme needs to be updated. If I add the following to
I get the following devices on startup:
The readme says the following, so I think I'm structuring correctly...
|
when running your command: rmmod v4l2loopback
modprobe v4l2loopback exclusive_caps=1 video_nr=89,99 card_label="Virtual Logitech","OBS Virtual Camera" i get (as expected): $ v4l2loopback-ctl list
OUTPUT CAPTURE NAME
/dev/video89 /dev/video89 Virtual Logitech
/dev/video99 /dev/video99 OBS Virtual Camera so i do not think there's a bug here. the quoting is POSIX compliant, so unless you are using some very exotic shell to issue the command there shouldn't be any problem. |
Hey @umlaeute TLDR My apologies for the confusion, I haven't communicated clearly enough; I realised that my original issue report was in error. I tried to approaches to setting up the virtual devices, the first was the shell command (my original issue post), and the second was using |
np. i'm confused all the time. |
Is there an existing issue for this?
Detail
I can successfully create a virtual device for OBS studio, but I have been unable to create a second device. Not sure what the issue is as its literally the same command, with the card label and number changed. My current command looks like:
v4l2loopback version
[ 24.947632] v4l2loopback driver version 0.13.1 loaded
kernel version
Linux desktop-0 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64 GNU/Linux
OS Version
Arch
Which CPU are you using?
amd64/x86_64 ("64bit Intel")
The text was updated successfully, but these errors were encountered: