Update birdnet_recording.sh

This commit is contained in:
Patrick McGuire
2022-05-05 10:37:17 -04:00
committed by GitHub
parent 52981d421c
commit 50f0ed8616
+1 -1
View File
@@ -7,7 +7,7 @@ source /etc/birdnet/birdnet.conf
if [ ! -z $RTSP_STREAM ];then
while true;do
for i in ${RTSP_STREAM//,/ };do
ffmpeg -i ${i} -t 15 -vn -acodec pcm_s16le -ac 2 -ar 48000 file:${RECS_DIR}/$(date "+%F")-birdnet-$(date "+%H:%M:%S").wav </dev/null > /dev/null 2>&1 & sleep 1;
ffmpeg -i ${i} -t 15 -vn -acodec pcm_s16le -ac 2 -ar 48000 file:${RECS_DIR}/$(date "+%F")-birdnet-$(date "+%H:%M:%S").wav
done
done
else