This guide helps you diagnose and fix common issues with Linucast.
Symptoms: Linucast is running, but the virtual camera doesn't appear in your applications.
Solutions:
-
Check if the v4l2loopback module is loaded:
lsmod | grep v4l2loopbackIf it's not listed, load it manually:
sudo modprobe v4l2loopback video_nr=10 card_label="Linucast" exclusive_caps=1 -
Verify the virtual device exists:
ls -l /dev/video10
If it doesn't exist, there might be an issue with the v4l2loopback module installation.
-
Check permissions on the device:
sudo chmod 666 /dev/video10
-
Ensure pyvirtualcam is installed:
pip3 list | grep pyvirtualcamIf not, install it:
pip3 install pyvirtualcam
-
Restart Linucast with the virtual camera option explicitly:
cd python_core python3 linucast_simple.py --virtual-cam
Symptoms: The virtual camera appears in applications but shows a black screen.
Solutions:
- Make sure Linucast is running with the
--virtual-camoption - Check terminal output for any errors related to the virtual camera
- Try restarting the application using the camera
- Verify the camera device number matches the v4l2loopback device:
v4l2-ctl --list-devices
Symptoms: Terminal shows "Failed to create virtual camera" error.
Solutions:
- Check if another application is using the virtual camera
- Try restarting the v4l2loopback module:
sudo rmmod v4l2loopback sudo modprobe v4l2loopback video_nr=10 card_label="Linucast" exclusive_caps=1 - Verify pyvirtualcam is installed correctly:
pip3 uninstall pyvirtualcam pip3 install pyvirtualcam
Symptoms: Linucast uses a lot of CPU and runs slowly.
Solutions:
- Try a lower resolution:
python3 linucast_simple.py --resolution 640x360
- Disable features you don't need:
- Turn off face landmarks: remove
--landmarksoption - Use a simpler background mode:
--mode blurinstead of--mode replace
- Turn off face landmarks: remove
- Lower the FPS target:
python3 linucast_simple.py --fps 30
Symptoms: Video is choppy or delayed.
Solutions:
- Check your system's resources (CPU, memory) during operation
- Close other resource-intensive applications
- Reduce the resolution or disable complex features
- If face tracking causes lag, adjust the smoothing factor:
python3 linucast_simple.py --face-tracking --smoothing 0.3
Symptoms: Face tracking jumps around or is unstable.
Solutions:
-
Adjust the smoothing factor:
python3 linucast_simple.py --face-tracking --smoothing 0.4
- Higher values (0.3-0.5) = smoother but slower response
- Lower values (0.05-0.2) = quicker response but may be jittery
-
Improve lighting conditions in your room
-
Try a lower zoom ratio if tracking is unstable:
python3 linucast_simple.py --face-tracking --zoom-ratio 1.5
Symptoms: Parts of your face disappear at the edges of the frame.
Solutions:
- Decrease the zoom ratio:
python3 linucast_simple.py --face-tracking --zoom-ratio 1.5
- Position yourself more centrally to the camera
- Increase your distance from the camera
Symptoms: Installation script shows "command not found" errors.
Solutions:
- Make sure you have basic development tools installed:
sudo apt update sudo apt install build-essential cmake pkg-config git python3-dev
- Try running the installation with sudo:
sudo ./install/install.sh
Symptoms: Errors during the C++ build process.
Solutions:
- Install required development packages:
sudo apt install build-essential cmake pkg-config
- Check CMake version:
You need at least version 3.10
cmake --version
- Try building manually:
cd cpp_core mkdir -p build cd build cmake .. make
Symptoms: Can't find Linucast in applications menu or start script doesn't work.
Solutions:
- Check if the desktop entry was installed:
ls -l /usr/share/applications/linucast-virtual-camera.desktop
- Try running Linucast directly:
cd /path/to/Linucast ./start_virtual_camera.sh - If start script doesn't work, check its permissions:
chmod +x start_virtual_camera.sh
Symptoms: v4l2loopback module doesn't load automatically after reboot.
Solutions:
- Check if configuration files were created:
cat /etc/modules-load.d/v4l2loopback.conf cat /etc/modprobe.d/v4l2loopback.conf
- Try loading the module manually after boot:
sudo modprobe v4l2loopback video_nr=10 card_label="Linucast" exclusive_caps=1 - Add the commands to your system startup scripts
If you've tried the solutions above and still have problems:
- Gather information about your system:
uname -a lsb_release -a python3 --version pip3 list | grep -E "pyvirtualcam|opencv|numpy|mediapipe"
- Note the exact error messages you're seeing
- Open an issue on the Linucast GitHub repository with these details