aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAnthony Wang2024-08-04 02:36:54 +0000
committerAnthony Wang2024-08-04 02:36:54 +0000
commitf9c1472802f80b5eb83840d7f3c51fac67dabfe7 (patch)
treefa9d1d4a59025c945820b69d00566729f4962877 /README.md
parente7f51477d847793432b2410d74a9784d06a0eaf0 (diff)
Add installation instructions for scrcpy
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index f33fb50..6a33666 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,8 @@ If you get an error about importing `creedsolo`, try running:
pip install --upgrade reedsolo --no-binary "reedsolo" --no-cache --config-setting="--build-option=--cythonize" --use-pep517 --isolated --pre --verbose --force-reinstall
```
+If you're using your phone as a webcam, install scrcpy with `pacman -S v4l2loopback-dkms scrcpy linux-headers` on Arch Linux or the equivalent command for your distro. Also, remember to install the correct headers for your kernel. Then, run `sudo modprobe v4l2loopback`.
+
## Usage
Encode: `python encoder.py -i in`
@@ -22,4 +24,4 @@ Copy the flags printed by the encoder and pass them to the decoder: `python deco
Formatting: `black -l 120 *.py`
-Use phone as webcam for higher quality video: `scrcpy --v4l2-sink=/dev/video4 --video-source=camera --no-video-playback --camera-size 1920x1080 --camera-fps 60`
+Use phone as webcam for higher quality video: `scrcpy --no-audio --v4l2-sink=/dev/video4 --video-source=camera --no-video-playback --camera-size 1920x1080 --camera-fps 60`