Home>

I'm thinking of distributing OBS Studio video on ZOOM.
As a result of referring to various sites, I decided to use a module called "v4l2loopback" that creates a virtual video device to project the OBS window.

I cannot install v4l2loopback.
(To be exact, it cannot be added to the kernel.)

environment
  • OS: Ubuntu 18.04
  • Kernel: 5.4.0
What I tried

I tried 3 major methods, but none of them worked.

1.apt-get

I ran the following command.

sudo apt install v4l2loopback-dkms
sudo modprobe v4l2loopback


Then I got the error below.

modprobe: ERROR: could not insert'v4l2loopback': Bad address


Apparently, it must be the one that matches the kernel and OS version.
I can't seem to add it to the kernel successfully.

2.Herethe method of

Since some people have the same OS, I tried the same method.
I ran the following command.

git clone https://github.com/umlaeute/v4l2loopback.gi
make&&sudo make installt
cd v4l2loopback&&git checkout v0.12.2
sudo depmod -a
sudo modprobe v4l2loopback devices=2 exclusive_caps=1


Then I got the error below.

modprobe: ERROR: could not insert'v4l2loopback': Operation not permitted


Does this have any authority...?

3.Herethe method of

The site referred to in 2. mentioned the above page as the recommended installation method.
Based on that, I executed the following command.

sudo apt-get install build-essential checkinstall
wget https://github.com/umlaeute/v4l2loopback/archive/master.zip
unzip master.zip
cd v4l2loopback-master
make
sudo checkinstall --pkgname=v4l2loopback --pkgversion="$(date +%Y%m%d%H%M)-git" --default
sudo modprobe v4l2loopback


Then I got the error below.

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

I'm sorry for the inconvenience.
If i have knowledge about other methods that you should try, I would appreciate it if you could comment.

  • Answer # 1

    The error that occurred in the second method,

    modprobe: ERROR: could not insert'v4l2loopback': Operation not permitted


    I was able to solve this.

    Cause

    Ubuntu kernel 4.4.0-20 or later seems to stop loading unsigned driver when UEFI secure boot is enabled.

    Solution

    Disable Secure Boot in BIOS (UEFI)

    However, the above solution may prevent dual boot windows from starting.
    Therefore, I'm trying to find out how to change the settings in the kernel so that it can load unsigned drivers.

    reference

    https://hmcomm.slack.com/archives/DRYJ4437D/p1596358181000500

    https://qiita.com/9sako6/items/1555ff38e90ad3ecace1