From be4e387193adb299fb5ff8713403ddfa4a47b2e9 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Fri, 1 Oct 2021 19:49:43 -0400 Subject: [PATCH] fixed default time --- scripts/birdnet_analysis.sh | 2 +- scripts/birdnet_recording.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/birdnet_analysis.sh b/scripts/birdnet_analysis.sh index ef1fc48..2f4e3e2 100755 --- a/scripts/birdnet_analysis.sh +++ b/scripts/birdnet_analysis.sh @@ -47,7 +47,7 @@ run_analysis() { FILE_LENGTH="$(ffmpeg -i ${1}/${i} 2>&1 \ | awk -F. '/Duration/ {print $1}' \ | cut -d':' -f3-4)" - [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=9 + [ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=12 [ ${RECORDING_LENGTH} == "60" ] && RECORDING_LENGTH=01:00 [ "${FILE_LENGTH}" == "00:${RECORDING_LENGTH}" ] || continue diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.sh index 8a2c3a3..45f6d81 100755 --- a/scripts/birdnet_recording.sh +++ b/scripts/birdnet_recording.sh @@ -8,7 +8,7 @@ else STAMP="%H:%M:%S" fi -[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=9 +[ -z RECORDING_LENGTH ] || RECORDING_LENGTH=12 if pgrep arecord &> /dev/null ;then echo "Recording"