User:Nex/Droidcam

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. You can help by expanding it.


Droidcam is a tool to use a smartphone's cameras as webcam on a computer.

Installation

Kernel

Droidcam requires Video4Linux loopback support in the Kernel.

KERNEL Enable support for <Software_title>
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.

USE flags

Cannot load package information. Is the atom media-video/droidcam correct?

Emerge

Droidcam is available in nex-overlay.

root #emerge --ask media-video/droidcam

Usage

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.

Troubleshooting

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.

Removal

Unmerge

root #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:

user $rm ~/.config/droidcam

External resources