From c914c645a8525ed6df612a0644e3c6b54f2df725 Mon Sep 17 00:00:00 2001 From: frederik Date: Sat, 23 Apr 2022 18:40:50 +0200 Subject: [PATCH] avoid using ffmpeg: the loop is faster now, so slow down again --- scripts/birdnet_analysis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh index a031245..a2e755f 100755 --- a/scripts/birdnet_analysis.sh +++ b/scripts/birdnet_analysis.sh @@ -97,9 +97,9 @@ run_analysis() { echo "RECORDING_LENGTH set to ${RECORDING_LENGTH}" a=0 until [ -z "$(lsof -t ${1}/${i})" ];do - sleep 1 + sleep 2 [ $a -ge ${RECORDING_LENGTH} ] && rm -f ${1}/${i} && break - a=$((a+1)) + a=$((a+2)) done if ! grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;then