summaryrefslogtreecommitdiff
path: root/camera/stream_v4l2
diff options
context:
space:
mode:
authorIngar <ingar@telenet.be>2024-11-08 13:24:28 +0100
committerIngar <ingar@telenet.be>2024-11-08 13:24:28 +0100
commit3331f69dda835fc7714dc84c367d54523ed32e16 (patch)
tree939471c9f48a3e82a3a37d358311a8ec2a42b597 /camera/stream_v4l2
parentd54d95777dc4c1f3311ee6a43800223dc3580722 (diff)
Renamed v4l2 streaming script.
Diffstat (limited to 'camera/stream_v4l2')
-rwxr-xr-xcamera/stream_v4l220
1 files changed, 20 insertions, 0 deletions
diff --git a/camera/stream_v4l2 b/camera/stream_v4l2
new file mode 100755
index 0000000..bbf579f
--- /dev/null
+++ b/camera/stream_v4l2
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# video settings
+# v4l2-ctl --list-ctrls-menus
+
+#v4l2-ctl -c brightness=50
+#v4l2-ctl -c contrast=0
+#v4l2-ctl -c rotate=180
+#v4l2-ctl -c horizontal_flip=1
+#v4l2-ctl -c vertical_flip=1
+
+
+# stream address
+# rtsp://192.168.0.154:8554/unicast
+
+IP=`ip addr | grep "inet 192.168" | sed 's/ *inet //' | cut -d ' ' -f 1 | sed "s/\/24$//"`
+echo "\nrtsp://${IP}:8554/unicast\n"
+
+LD_PRELOAD=/usr/lib/libcamera/v4l2-compat.so v4l2rtspserver -Q 5 -W 1920 -H 1080 -F 1 /dev/video0,/dev/zero
+