Skip to content

A live bird collage card for your Home Assistant dashboard.

Update livestream.sh

ehpersonal38ff9f3552712c
diff --git a/scripts/livestream.sh b/scripts/livestream.sh
index bdebba72..d081d538 100755
--- a/scripts/livestream.sh
+++ b/scripts/livestream.sh
@@ -4,8 +4,12 @@ source /etc/birdnet/birdnet.conf
if [ -z ${REC_CARD} ];then
echo "Stream not supported"
+elif [[ ! -z ${RTSP_STREAM} ]];then
+ ffmpeg -loglevel 52 -ac ${CHANNELS} -i ${RTSP_STREAM} -acodec libmp3lame \
+ -b:a 320k -ac ${CHANNELS} -content_type 'audio/mpeg' \
+ -f mp3 icecast://source:${ICE_PWD}@localhost:8000/stream -re
else
- ffmpeg -loglevel 52 -ac ${CHANNELS} -f alsa -i ${REC_CARD} -acodec libmp3lame \
+ ffmpeg -loglevel 52 -ac ${CHANNELS} -f alsa -i ${REC_CARD} -acodec libmp3lame \
-b:a 320k -ac ${CHANNELS} -content_type 'audio/mpeg' \
-f mp3 icecast://source:${ICE_PWD}@localhost:8000/stream -re
-fi
+fi
\ No newline at end of file