From d9c80c52310fab0f45ccc365a61aeeb85cc6cff1 Mon Sep 17 00:00:00 2001 From: David Lamkin Date: Fri, 27 May 2022 10:52:32 +0100 Subject: [PATCH] reduce excessive ffmpeg logging In livestream.sh logging is set to 52 which seems excessive a value of 32 (the default): 'Show informative messages during processing. This is in addition to warnings and errors.' would seem to be more appropriate. --- scripts/livestream.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/livestream.sh b/scripts/livestream.sh index d081d53..077f479 100755 --- a/scripts/livestream.sh +++ b/scripts/livestream.sh @@ -5,11 +5,11 @@ 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 \ + ffmpeg -loglevel 32 -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 32 -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 \ No newline at end of file +fi