-
Notifications
You must be signed in to change notification settings - Fork 531
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
Document the max. number of v4l2loopback devices or how to increase it #367
Comments
patches welcome |
I'd do that if I were sure whether this limit exists in the v4l core itself or only in the v4l2loopback driver or somewhere else and whether it can be raised by simply changing a magic constant somewhere (in the source or can it be changed at runtime?) and what the disadvantages of such a change would be. But at least tell the users about this limit would be easy for everyone with write access to this project. :-) |
so far, it's documented in the source-code (only): Lines 183 to 191 in 99cc296
however, the new dynamic device management kind of obsoletes this, as you can (dynamically) create as many devices as you want to. e.g. i just created 128 additional loopback devices using: for i in $(seq 128); do
v4l2loopback-ctl add
done |
to answer your question more specifically:
there's a hard limitation in the kernel, where the minor device number is an unsigned 8bit value. given that
(iirc) the main reason for the hardcoded limit to 8 devices is to prevent the innocent user to shoot themselves in their knees. |
@umlaeute : Thank you for your detailed answers! :-) |
well they don't really have to read the kernel source, just the module source.
not sure i understand that. where do you think there is a misinterpretation? the |
Step 2: Describe your environment
v4l2loopback
version: Version: 0.12.1-1kernel version: 4.19.0-10-amd64 gstreamer v4l2sink support #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux
Distribution (+version): Debian 10.5
Step 3: Describe the problem:
I tried to load the v4l2loopback kernel module with more than 8 video devices. Only 8 devices are created.
No error message is emitted.dmesg
tells:This limit is not mentioned on the v4l2loopback documentation and also whether it is possible to increase that limit and if yes, how to increase it and if there are any disadvantages when set this limit to a far too high number etc.
The text was updated successfully, but these errors were encountered: