Update birdnet_analysis.sh

This commit is contained in:
mcguirepr89
2021-10-10 18:09:40 -04:00
committed by GitHub
parent 8c26d46fd4
commit 93586405a8
+1 -1
View File
@@ -78,7 +78,7 @@ run_analysis() {
cd ${HOME}/Birding-Pi || exit 1
for i in "${files[@]}";do
echo "${1}/${i}" > ./analyzing_now.txt
[ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=12
[ -z ${RECORDING_LENGTH} ] && RECORDING_LENGTH=15
[ ${RECORDING_LENGTH} == "60" ] && RECORDING_LENGTH=01:00
FILE_LENGTH="$(ffmpeg -i ${1}/${i} 2>&1 | awk -F. '/Duration/ {print $1}' | cut -d':' -f3-4)"
[ -z $FILE_LENGTH ] && sleep 3 && continue