TL;DR
--Create a virtual camera device on Arch Linux. --OBS combines video captures and screen captures into a single video. The composite video is sent to the virtual camera on the OS. --Set the virtual camera image as the Zoom camera device and distribute it. --Not limited to Zoom, it can be used for camera output such as Discord and Google Meet.
--Arch Linux (other distributions such as ubuntu are also available) --The procedure is different on Windows.
Set up a virtual camera using v4l2loopback. Below, the installation work is done using the AUR helper yay. Package names etc. may be different for other distributions.
First, install the following packages.
$ yay -S v4l2loopback-dkms
If you are using a standard kernel, you need to install the kernel header files and compile the kernel modules.
$ yay -S linux-headers
Load the v4l2loopback module. video_nr = 42
specifies the device number. If ʻexclusive_caps = 1` is specified, the virtual camera will be recognized on the browser such as Google Chrome.
sudo modprobe v4l2loopback video_nr=42 devices=1 exclusive_caps=1
After loading the module, check it by following the steps below. It is OK if video42
is created.
$ ls /dev | grep video
video42
$ v4l2-ctl --list-devices
Dummy video device (0x0000) (platform:v4l2loopback-000):
/dev/video42
If you want to load the kernel module at startup, write it in the configuration file.
conf:/etc/modprobe.d/v4l2loopback.conf
options v4l2loopback video_nr=42 devices=1 exclusive_caps=1
conf:/etc/modules-load.d/modules.conf
v4l2loopback
Install OBS. Also, install a plug-in to stream OBS video to v4l2. ʻObs-studio` has a community version, but it doesn't have a browser function, so install the Git version if necessary. For details, please refer to this article.
$ yay -S obs-studio obs-v4l2sink
If you start OBS with the plugin installed, you will find more choices for v4l2sink
under the Tools tab in the menu.
When you open the settings, a screen like the screenshot below will be displayed. Specify / dev / video42
in ** Device Path ** and click ** Start **.
Test the virtual camera using Zoom. You can install it from AUR.
$ yay -S zoom
Start Zoom and start the meeting appropriately. You can set your own camera image as it is, but this time I will specify a virtual camera and display it when sharing the screen. When selecting the screen sharing window, select ** Content from 2nd Camera ** from the ** Advanced ** tab. If another camera is connected, click ** Switch Camera ** displayed in the upper left to switch to the virtual camera.
Since the OBS screen can be played, I think that if you use sources and scenes, you will be able to do more advanced things than normal screen sharing.
-Create a virtual camera / microphone for Zoom on Arch Linux -Stream the video synthesized by OBS Studio on Linux using obs-v4l2sink to Skype or Zoom
Recommended Posts