3 ms·
Weird, worked pretty out of the box here besides some of the v4l2 parameters for application compatibility. My system is a bit outdated though, v4l2loopback-dkm
by tastroder 7y ago
Weird, worked pretty out of the box here besides some of the v4l2 parameters for application compatibility. My system is a bit outdated though, v4l2loopback-dkms 0.9.1-4ubuntu0.1 and OBS 24.0.3 (64 bit, installed through whatever the quickstart guide suggested for Ubuntu).
I'm using this to initialize the loopback device:
#!/bin/bash
set -e
if lsmod | grep "v4l2loopback" &> /dev/null ; then
echo "v4l2loopback is loaded"
lsmod | grep "v4l2loopback"
sudo rmmod v4l2loopback
fi
sudo modprobe v4l2loopback devices=1 video_nr=2 exclusive_caps=1
lsmod | grep "v4l2loopback"
- joecot 7y agoI think you led me to the problem. I updated the original comment, but I think the issue was that v4l2loopback was being loaded without any options and screwing me up, so rmmod ing it and reloading it seems to help
- nybble41 7y agoYou can set default module options through a file in /etc/modprobe.d/. If you're using systemd, it can also be configured to load the module automatically on startup. This is what I'm using: /etc/modprobe.d/v4l2loopback.conf: options v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1 /etc/modules-load.d/v4l2loopback.conf: v4l2loopback Working flawlessly so far in Hangouts and Zoom using OBS Studio and the obs-v4lsink plugin.