Problems launching OBS Virtual Camera

ralmond

New Member
I've solved this problem, but didn't see the solution online, so I thought I would share.

I'm running Pop OS 24.04 (downstream from Ubuntu 24.04) and had this problem using both gnome/wayland and Cosmic/wayland.

The symptom is that I would press on the "start virtual camera button" and get an error message about v4l2loopback. The error message said it was having difficulty running the command
```
sudo /usr/sbin/modprobe v4l2loopback exclusive_caps=1 card_label="OBS Virtual Camera"
```
Running this in the terminal returns the error `modprobe: ERROR: could not insert 'v4l2loopback': Exec format error`.

Running `dmesg` gives more useful feedback:
```
$ sudo dmesg | fgrep v4l2loopback
[ 941.378342] v4l2loopback: disagrees about version of symbol module_layout
[ 1121.966683] v4l2loopback: disagrees about version of symbol module_layout
```

This indicates that the v4l2loopback kernel module was compiled against a different version of the kernel and so needs to be reinstalled.

In a Debian-based distro, the key comand is
```
sudo apt reinstall v4l2loopback-dkms
```

This then works. Hope this helps somebody else.
 
Top