Last active
August 25, 2023 05:07
-
-
Save neverkas/4c9a3123ba682e8ccbe4114adf41afc2 to your computer and use it in GitHub Desktop.
Linux Webcam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cheese | |
cheese-install: | |
sudo aptitude install cheese | |
cheese-run: | |
cheese | |
# v4l2loopback | |
# | |
# - This module allows you to create "virtual video devices". | |
# - https://unix.stackexchange.com/questions/644591/how-to-install-droidcam | |
# - https://github.com/umlaeute/v4l2loopback | |
video-configure-modules: | |
sudo aptitude install v4l2loopback-dkms v4l2loopback-utils \ | |
&& sudo modprobe -v v4l2loopback | |
# adb driver | |
adb-driver-install: | |
sudo aptitude install adb | |
adb-driver-list-devices: | |
adb devices -l | |
# droidcam | |
# | |
# https://www.dev47apps.com/droidcam/linux/ | |
droidcam-run: | |
cd /tmp/droidcam \ | |
&& ./droidcam | |
droidcam-download: | |
cd /tmp/ \ | |
&& wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_2.0.0.zip \ | |
&& unzip droidcam_latest.zip -d droidcam | |
droidcam-install: adb-driver-install video-configure-modules droidcam-download | |
cd /tmp/droidcam \ | |
&& sudo ./install-client \ | |
&& sudo ./install-sound \ | |
&& sudo ./install-video |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment