This guide explains how to set up and use the virtual camera feature in LookPilot on Linux.
The virtual camera feature creates a virtual camera device that mirrors the input from your selected physical camera. This allows you to use your camera in multiple applications simultaneously - for example, you can use LookPilot for head tracking while also using the same camera feed in OBS for streaming or in video conferencing applications.
The virtual camera can be enabled in Settings > Camera.
Before enabling the virtual camera, you need to install the v4l2loopback kernel module and run the setup script.
Install the v4l2loopback kernel module for your distribution:
Ubuntu/Debian:
sudo apt-get install v4l2loopback-dkms
Fedora:
sudo dnf install v4l2loopback
Arch Linux:
sudo pacman -S v4l2loopback-dkms
After installing v4l2loopback, run the LookPilot virtual camera setup script:
sudo /path/to/LookPilot/data/static/scripts/virtualcam_linux.sh
Note: Replace /path/to/LookPilot/ with the actual path to your LookPilot installation. If you're unsure of the path, LookPilot will show it in the error message if you try to enable the virtual camera without running the setup first.
This script will:
/dev/video12Once the prerequisites are installed:
/dev/video12The virtual camera will appear as "VirtualCam" in other applications.
Once enabled, the virtual camera device is available system-wide:
Streaming and Recording:
Video Conferencing:
Multi-Application Camera Sharing:
If you see an error when trying to enable the virtual camera:
Check if v4l2loopback is installed:
modinfo v4l2loopback
If this command fails, install v4l2loopback using the commands in the Prerequisites section above.
Run the setup script:
sudo /path/to/LookPilot/data/static/scripts/virtualcam_linux.sh
If you get an error that /dev/video12 is already in use:
Check which processes are using the device:
sudo lsof /dev/video12
Close any applications shown in the output, then try enabling the virtual camera again.
If you get permission errors:
sudovideo group:groups $USER
sudo usermod -a -G video $USER
If the virtual camera device doesn't exist after rebooting:
Check if the module is configured to load:
cat /etc/modules-load.d/v4l2loopback.conf
This should contain v4l2loopback. If the file doesn't exist or is empty, run the setup script again:
sudo /path/to/LookPilot/data/static/scripts/virtualcam_linux.sh
Manually load the module (temporary until next reboot):
sudo modprobe v4l2loopback devices=1 video_nr=12 card_label='VirtualCam' exclusive_caps=1
If the virtual camera stops functioning:
If the issue persists: