Droidcam is a tool to use a smartphone's cameras as webcam on a computer.
Droidcam requires Video4Linux loopback support in the Kernel.
Device Drivers ---> <M> Multimedia support ---> [*] Cameras/video grabbers support [*] Media Controller API [*] V4L2 sub-device userspace API
When building as a module, the
v4l2loopback module needs to be loaded in order for Droidcam to work.
Droidcam is available in nex-overlay.
emerge --ask media-video/droidcam
To use Droidcam, a smartphone with the Droidcam app installed is needed. The smartphone and the computer need to be able to reach each other over the network. Alternatively, a USB connection can be used. Depending on the operating system, this might require setting further options on the smartphone (e.g. enabling USB debugging).
Connect via Wi-Fi/LAN
After starting Droidcam on the smartphone, the smartphone app shows the IP address and port for the computer to connect to.
After starting the app on the computer,
WiFi / LAN needs to be selected and the WiFi IP and port, which are shown on the smartphone, need to be entered in the appropriate field on the computer.
After that, the two apps should be able to establish a connection.
The phone's camera is then available like any other webcam connected to the computer.
Droidcam/v4l2loopback device not found
If droidcam shows a message like this on startup, it is very likely that the kernel hasn't been configured properly or that the required modules haven't been loaded. Please make sure the kernel is configured properly and necessary modules have been loaded.
emerge --ask --depclean --verbose media-video/droidcam
Remove user configuration
User configuration is stored as a simple text file in the user's config directory. To remove the configuration: