Update birdnet_recording.sh
This commit is contained in:
@@ -7,7 +7,7 @@ source /etc/birdnet/birdnet.conf
|
|||||||
if [ ! -z $RTSP_STREAM ];then
|
if [ ! -z $RTSP_STREAM ];then
|
||||||
while true;do
|
while true;do
|
||||||
for i in ${RTSP_STREAM//,/ };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
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user