Increase ffmpeg thread queue size in recording script

This commit is contained in:
Alexandre
2025-12-19 11:36:00 +01:00
committed by Nachtzuster
parent 524d366023
commit 8b637e5640
+1 -1
View File
@@ -4,7 +4,7 @@ source /etc/birdnet/birdnet.conf
loop_ffmpeg(){
while true;do
if ! ffmpeg -hide_banner -xerror -loglevel $LOGGING_LEVEL -nostdin ${1} -i ${2} -vn -map a:0 -acodec pcm_s16le -ac 2 -ar 48000 -f segment -segment_format wav -segment_time ${RECORDING_LENGTH} -strftime 1 ${RECS_DIR}/StreamData/%F-birdnet-RTSP_${3}-%H:%M:%S.wav
if ! ffmpeg -hide_banner -loglevel $LOGGING_LEVEL -nostdin ${1} -thread_queue_size 512 -i ${2} -vn -map a:0 -acodec pcm_s16le -ac 2 -ar 48000 -f segment -segment_format wav -segment_time ${RECORDING_LENGTH} -strftime 1 ${RECS_DIR}/StreamData/%F-birdnet-RTSP_${3}-%H:%M:%S.wav
then
sleep 1
fi