Skip to content

Instantly share code, notes, and snippets.

View SotchNam's full-sized avatar

Sotch Nam SotchNam

  • 20:52 (UTC +02:00)
View GitHub Profile
@SotchNam
SotchNam / phoneCam.md
Created November 26, 2023 18:03
Turning your android phone into webcam on linux:

Using a combination of open-source software tools like adb, v4l2, and scrcpy, it is possible to utilize an Android phone's camera as a webcam for various applications.

Installing dependencies:

Since I am using arch with pacman as package manager, my command would be:

sudo pacman -S scrcpy v4l2loopback-dkms ffmpeg android-tools

This will vary depending on your distrobution.

Connecting your phone using adb: