summaryrefslogtreecommitdiff
path: root/bin/extra/phone_cam
blob: df7630581f3cf630ae813d3b687cf044b3d5a342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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