Skip to content
RealBlueVR edited this page Mar 21, 2021 · 7 revisions

OBS Studio 26.1 and above

You don't have to build a specific plugin anymore. Everything needed is available. You just have to load the v4l2loopback module

modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1

and press the "Start Virtual Camera" button in OBS Studio.

If you have multiple v4l2loopback devices, OBS take the first one as it's virtual camera. It looks like you cannot change that.

Installing on Manjaro for Virtual Camera

Install Linux headers first

$ sudo pacman -Syu linux-headers

Then choose the correct version for your Manjaro Kernel (System Information -> Kernel Version)

(e.g. for Kernel Version 5.9 choose linux59-headers)

Then reboot your system and install v4l2loopback-dkms via your Package Manager or Konsole.

Note: You don't need to install v4l2loopback-utils as you'll also get a conflict-error when trying to install utils and dkms

Without the correct Linux header you'll encounter a 'Missing kernel modules tree'-error upon installing v4l2loopback.

Then continue the installation for OBS Virtual Camera as stated on their github page. Don't use:

sudo apt -y install v4l2loopback-dkms v4l2loopback-utils

As you already have that installed now.

After configuring v4l2loopback and OBS with those commands, your Virtual Camera should be up and running!

OBS Studio 26.0 and below

To stream the output of OBS into a v4l2loopback device for use as a virtual webcam input in Skype, jitsi or any other videoconferencing solution follow these steps:

modprobe v4l2loopback devices=1 video_nr=10 card_label="OBS Cam" exclusive_caps=1

To add the video4l2 sink to OBS install this plugin:

First, add dependencies:

Debian

sudo apt install qtbase5-dev

Fedora

sudo dnf install qt5-qtbase-devel obs-studio-devel

Then build:

git clone --recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install

In OBS, go to Menu → Tools → V4lsinkProperties and activate the sink

Source