diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-06-06 17:29:27 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-06-06 17:29:27 +0200 |
| commit | 755bb6cf7f8c69898c0fb55086c0b86510a03431 (patch) | |
| tree | ddcdca2ef03466d82b138189bdf477654d646936 /bin/extra/phone_cam | |
| parent | c3c2050d2a6dda58f2ecaaa95da5855e7ca4a264 (diff) | |
checkpoint
Diffstat (limited to 'bin/extra/phone_cam')
| -rwxr-xr-x | bin/extra/phone_cam | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/extra/phone_cam b/bin/extra/phone_cam new file mode 100755 index 0000000..df76305 --- /dev/null +++ b/bin/extra/phone_cam @@ -0,0 +1,15 @@ +#!/bin/sh +which v4l2-ctl scrcpy > /dev/null || exit 1 + +V4L2_Sink="$(v4l2-ctl --list-devices | grep 'Virtual Webcam' -A 1 | tail -n 1 | awk '{print $1}')" + +scrcpy --video-source=camera \ + --no-audio \ + --no-window \ + --camera-facing=front \ + --v4l2-sink="$V4L2_Sink" \ + --camera-fps=60 \ + --video-codec=h265 \ + --camera-ar=4:3 \ + -m1920 \ + --capture-orientation=flip90 |
