added files

This commit is contained in:
cpu
2024-02-06 22:00:48 +01:00
parent f6ab5c4f61
commit 6b28c54491
3 changed files with 174 additions and 0 deletions

35
webcam-streamer.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
# To run this as a service:
# sudo systemctl start webcam-streamer
# see logs:
# journalctl -fu webcam-streamer
PEERTUBE_LIVE="rtmp://peertube.virtonline.eu:1935/live/b3f26a2f-24f1-4f81-a3d4-d539acf4b401"
VIDEO_BITRATE="700000"
VIDEO_RES_HEIGHT="480"
VIDEO_RES_WIDTH="640"
#VIDEO_RES_HEIGHT="972"
#VIDEO_RES_WIDTH="1296"
VIDEO_FRAMERATE="10"
VIDEO_DURATION=0
rpicam-vid --inline \
-n \
-t ${VIDEO_DURATION} \
--width ${VIDEO_RES_WIDTH} \
--height ${VIDEO_RES_HEIGHT} \
--nopreview \
--exposure long \
--sharpness 1.2 \
--contrast 1.4 \
--brightness 0.2 \
--saturation 1.0 \
--awb auto \
--denoise auto \
--rotation 0 \
--autofocus-mode auto \
--codec libav \
--libav-format flv \
--framerate ${VIDEO_FRAMERATE} \
-b ${VIDEO_BITRATE} \
-o ${PEERTUBE_LIVE}