https://github.com/lomartins/ip-webcam-usb
Simple script for Linux to use Android device with "IP Webcam" app as USB Webcam
https://github.com/lomartins/ip-webcam-usb
android-device ip-webcam ipwebcam linux
Last synced: 2 days ago
JSON representation
Simple script for Linux to use Android device with "IP Webcam" app as USB Webcam
- Host: GitHub
- URL: https://github.com/lomartins/ip-webcam-usb
- Owner: lomartins
- License: mit
- Created: 2021-04-03T01:03:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-08T01:34:25.000Z (about 4 years ago)
- Last Synced: 2023-12-24T16:24:39.247Z (over 2 years ago)
- Topics: android-device, ip-webcam, ipwebcam, linux
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ip-webcam-usb
Simple script for Linux to use Android device with "IP Webcam" app as USB Webcam
## Dependencies:
**adb:**
```
sudo apt install adb
```
**v4l2loopback:**
```
sudo apt install v4l2loopback-utils v4l2loopback-dkms
```
## Note:
You'll need Ip Webcam server started on your Android device and connected on USB. Then start the script.
If you're with multiple devices connected, you'll need to specify the device serial number.
## Usage:
```webcam_script.py [-h] [-s SERIAL] [-hp HOSTPORT] [-dp DEVICEPORT] [-n VIDEONUMBER]```
```
optional arguments:
-h, --help show this help message and exit
-s, --serial use device with given serial (overrides $ANDROID_SERIAL)
-hp, --hostport host port
-dp, --deviceport android device port
-n, --videonumber number of virtual webcam
```