Fakecam
Fake background for your webcam for use in streaming and video conferencing.
The app provides the ability to either blur your surroundings or replace them with an image of your choosing. There is also a feature to apply a Star Wars holograph-syle effect to make it appear that you are talking from a galaxy far away. The app will make this cut-out version of your Webcam feed available as a second webcam feed to use in any webcam-supporting app such as Zoom or Skype - while fakecam is running, simply choose the "Fakecam" video input device in a third-party app to use the output of fakecam as your video feed for that app.
[Based on the work of Ben Elder](https://elder.dev/posts/open-source-virtual-background/)
## v4l2loopback
To use this app you need to install the v4l2loopback
kernel module. In Debian and Ubuntu derivatives this is supplied in the v4l2loopback-dkms
package in their archives. There is a script included at the bottom of this page that you may use to understand the simple steps.
### Step by step instructions
On Debian and Ubuntu install the package with:
sudo apt install v4l2loopback-dkms
You will also need to configure the kernel module with some non-default options. Do this by adding the following line into /etc/modprobe.d/fakecam.conf
and then run sudo modprobe -r v4l2loopback; sudo modprobe v4l2loopback
:
options v4l2loopback devices=1 video_nr=20 card_label="fakecam" \
exclusive_caps=1
The kernel module is not loaded at bootup so we also need to add a configuration to make it load automatically. On Debian and Ubuntu this is done via adding v4l2loopback
as a single word on a new line in a new file called /etc/modules-load.d/fakecam.conf
.
## TL;DR Script for Debian and Ubuntu derivatives
sudo apt-get install v4l2loopback-dkms
echo options v4l2loopback devices=1 video_nr=20 \
card_label="fakecam" exclusive_caps=1 | sudo tee -a \
/etc/modprobe.d/fakecam.conf
echo v4l2loopback | sudo tee -a /etc/modules-load.d/fakecam.conf
sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback
## Credits