Don't use dkms v4l2loopback, build from source(guide for users) #17
Comments
Also, please check #14 if you find your plugin not appearing in toolbar out of the box.
|
Great project! |
@GammaPi Actually from DKMS is working OK on Debian Buster... I have only a minor issue with Firefox - it seems that the video is flipped vertically |
I guess v4l2loopback 0.12.2 does not support kernel 5.4+, therefore it will fail on some Systems. For example I am using Ubuntu 19.10 and have installed linux-kernel 5.5.8 in the repo of ubuntu 19.10 is only v4l2loopback, thus I also get this error. But if you install v4l2loopback 0.12.3 or install it from source this kernel is supported and everything works fine. Reference issues: |
This are the instructions I came up with. It works for Ubuntu 19.10 with Kernel 5.5.8
|
Besides all the noise in this ticket, I am here to back-up the original topic: I installed OBS from the Debian Buster package, but compiled obs-v4l2sink from source. I installed the v4l2loopback-dkms Debian package (version 12.1-1) and this in itself worked fine, once I had setup a loopback device. What did not work is exactly what the OP described: I could not choose output format YUV420, as described in the README. YUY2 did work, but quality was rather bad. So I did what is recommended here: get the newest version of the kernel module and build it myself (which was rather easy, git commit 0569340b0dfd85cbb26d4dabf8051cae461af443). Not changing anything else, YUV420 now works. It would be nice to know what exactly was the change that resolved this bug to be able to describe that in dependencies. The version I now used is 12.3 with whatever commits happened since that release. Also: please do not create "noise" here. Only post what is relevant to this particular bug report. The location of the obs plugin isn't relevant here (although I also think that documenting to put this into ~/.config/obs-studio/plugins/v4l2sink/bin/64bit/v4l2sink.so would be a good idea). The kernel version is also not relevant to this particular issue, since while the version of v4l2loopback is important (newer versions added support for newer kernel versions), this is not what triggers the "format error". Please use other tickets for those issues. |
This helped me on Ubuntu 18.04, thank you. |
For me, the instructions above did not work.
|
Hi @Banellica, I'm experiencing the same issue, I built from this github repo and it showed up in OBS but got the I'm not sure how to perform your step 3, so that might be the issue. My OS is Linux Lite (Ubuntu 18.04 LTS derivative) with kernel 5.2.11 and I`m running OBS 25.0.8. Thanks in advance! |
You unload and reload kernel modules using the "modeprobe" command.
|
Please try to build v4l2loopback from source, v4l2loopback-dkms makes this plug-in output "format error".
Create the devices with:
If you want to remove the dummy video output, use:
The text was updated successfully, but these errors were encountered: