diff options
| author | Ingar <ingar@telenet.be> | 2024-11-08 13:23:34 +0100 |
|---|---|---|
| committer | Ingar <ingar@telenet.be> | 2024-11-08 13:23:34 +0100 |
| commit | d54d95777dc4c1f3311ee6a43800223dc3580722 (patch) | |
| tree | fea296c2249e5dc8deb751819259a78ea439a0c9 /camera/stream_v4l | |
| parent | 716948890133c07cefea6eed8789bc85859137d2 (diff) | |
Added v4l2 streaming script.
Diffstat (limited to 'camera/stream_v4l')
| -rwxr-xr-x | camera/stream_v4l | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/camera/stream_v4l b/camera/stream_v4l new file mode 100755 index 0000000..bbf579f --- /dev/null +++ b/camera/stream_v4l @@ -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 + |
