Note: Only standard 64-bit binaries are provided. You’ll need to compile the client from source if you are running a 32-bit or ARM based system.
If droidcam is already installed, make sure it’s not open.
Download and install latest client:
cd /tmp/
wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_1.8.2.zip
# sha1sum: d1038e6d62cac6f60b0dd8caa8d5849c79065a7b
unzip droidcam_latest.zip -d droidcam
cd droidcam && sudo ./install-client
On Ubuntu 21, use sudo apt install libappindicator3-1.
On Fedora 33, use sudo dnf install libappindicator-gtk3
You can use the standard v4l2loopback
module, or the DroidCam version v4l2loopback-dc
.
The main difference is that you’ll see “DroidCam” in the list of webcams, it works with Skype+Chrome without needing exclusive_caps=1
, and the install scripts will make sure the module stays loaded after reboot.
For v4l2loopback-dc,
1. Install these packages: linux-headers-`uname -r` gcc make.
For example: sudo apt install linux-headers-`uname -r` gcc make
2. Run sudo ./install-video
以上为DroidCam官网给出的安装步骤。下面是本人在遇到DroidCam unable to find dev/video 时所使用的解决办法:
执行下列命令,完成依赖安装。
$ sudo apt install v4l2loopback-utils v4l2loopback-dkms cmake nasm yasm pkg-config libgtk2.0-dev
$ sudo modprobe v4l2loopback
$ v4l2-ctl --list-devices
cd ~/Downloads
git clone https://github.com/libjpeg-turbo/libjpeg-turbo.git
cd libjpeg-turbo
mkdir build && cd build
cmake -G"Unix Makefiles" ../
make && sudo make install
运行成功!
https://www.dev47apps.com