A live bird collage card for your Home Assistant dashboard.
on flakey rtsp streams, ffmpeg sometimes gets stuck, add a 10s timeout to make ffmeg error out and restart
frederika7eacee3fc4f
diff --git a/scripts/birdnet_recording.sh b/scripts/birdnet_recording.shindex 5f952688..92087e58 100755--- a/scripts/birdnet_recording.sh+++ b/scripts/birdnet_recording.sh@@ -42,7 +42,7 @@ if [ ! -z $RTSP_STREAM ];then# Make sure were passing something valid to ffmpeg, ffmpeg will run interactive and control our loop by waiting ${RECORDING_LENGTH} between loops because it will stop once that much has been recordedif [ -n "$FFMPEG_PARAMS" ];then- ffmpeg -hide_banner -loglevel $LOGGING_LEVEL -nostdin $FFMPEG_PARAMS+ ffmpeg -hide_banner -loglevel $LOGGING_LEVEL -nostdin -rw_timeout 10000000 $FFMPEG_PARAMSfidone