DEV Community

Anja
Anja

Posted on

Using your phone as a Webcam on Linux

Hi! You can use your Android phone as a webcam on different Operating Systems, Im showing you how I connected it on Manjaro.📱 Install Iriun on your phone and your PC and start it. On Manjaro you might get an error message saying you may want to run sudo modprobe v4l2loopback exclusive_gaps=1. When you run this command in your terminal and get an error message that it doesnt find v4l2loopback you might need to install that package. If the error is still there, for me it worked to install the linux-header matching my current kernel.

Find your current kernel with this command: uname -srm. In Manjaro I started pamac and searched for linux 56-headers (because my kernel is 5.6. (...)) I then installed the version of the headers matching to the kernel version(❗️make sure All the numbers of the kernel version and header version match because otherwise you might run into serious Operating system problems). Next I ran the command sudo modprobe v4l2loopback exclusive_gaps=1. When I then started Iriun on my phone and PC it worked. If you want to do e.g. Streaming you can open OBS and add the camera as a video resource. Have a nice day! :)

Oldest comments (0)