Update ffmpeg command to include xerror option
This commit is contained in:
@@ -4,7 +4,7 @@ source /etc/birdnet/birdnet.conf
|
||||
|
||||
loop_ffmpeg(){
|
||||
while true;do
|
||||
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
|
||||
if ! ffmpeg -hide_banner -xerror -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
|
||||
|
||||
Reference in New Issue
Block a user