summaryrefslogtreecommitdiff
path: root/bin/extra/phone_cam
diff options
context:
space:
mode:
Diffstat (limited to 'bin/extra/phone_cam')
-rwxr-xr-xbin/extra/phone_cam15
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