From 308109323a76b9dbf8b7150e886e10b0e9cfd948 Mon Sep 17 00:00:00 2001 From: Stephan Wendel Date: Tue, 23 May 2023 04:45:15 +0200 Subject: [PATCH] fix: fix error in ustreamer.sh Obviously start_param is missing device, this leads to not starting ustreamer Signed-off-by: Stephan Wendel --- libs/ustreamer.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/ustreamer.sh b/libs/ustreamer.sh index aa0140e..000d38d 100755 --- a/libs/ustreamer.sh +++ b/libs/ustreamer.sh @@ -45,6 +45,9 @@ run_ustreamer() { start_param=( --host 127.0.0.1 -p "${pt}" ) fi + # Add device + start_param+=( -d "${dev}" --device-timeout=2 ) + # Use MJPEG Hardware encoder if possible if [ "$(detect_mjpeg "${cam_sec}")" = "1" ]; then start_param+=( -m MJPEG --encoder=HW )