summaryrefslogtreecommitdiff
path: root/camera/stream_v4l
blob: bbf579f0ec9460087fdca3332093c19cbafdd480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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