From 755bb6cf7f8c69898c0fb55086c0b86510a03431 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 6 Jun 2025 17:29:27 +0200 Subject: checkpoint --- bin/extra/phone_cam | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/extra/phone_cam (limited to 'bin/extra/phone_cam') 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 -- cgit v1.2.3-70-g09d2