Open mnhn-paul opened 9 months ago
Yesterday evening I set the overlap to "0" and deleted the contents of StreamData and restarted everything, it did work again, but only till early this morning...
also gave the VM (a LSC container actually) more resources (cores and ram) but that does not seem to help.
Did some more investigations, it seem that the issues comes from recordings which are being created and are to short (less then 3 seconds). This seems to be coming from connection issues with the streaming camera I'm using. here are some of the files which are created and then are not being processed correctly. StreamData_231129_054833.zip
did you ever get to the bottom of this? I am having the exact same issue (well same symptoms) I just removed the streamdata folder so cant check for the short recordings. Out of curiosity what camera are you using for the mic? I have Reolink cameras setup and i am using the sub RTSP stream to pickup the audio
@Ralphy140 unfortunately I did not solve the issue, ..
in the end I installed "official" birdnetpi on an Pi4 and migrated the data, since then I only got the issue about 2 or 3 times. At that point there was a series of very short or corrupted audio files which were analyzed, I think one takes about 15min before moving to the next, if there are hundreds this will basically block birdnet and recordings are accumulating.
When encountering the issue, I connected to the pi and deleted all the extracted files to be analyzed below 2MB or so, then I restarted the services and the backlog was being processed.
I'm also using a Reolink 510WA over WIFI, maybe WIFI connection issues are at the origin of the bad recordings?
Ahh bugger, Can i ask what you mean by "Offical" ? And also interesting on the reolink camera, I am using Reolink cameras but the 822 and the are wired in. I wonder if it has something to do with the way they process the RTSP stream
With official I meed the one in this repo, in opposite the the one from here https://github.com/MatthewBCooke/BirdNET-Pi which I used in my initial install on a VM, I'm not to sure in how may they actually differ.
Concerning the camera I was sort of able to reproduce the issue by turning off or rebooting the camera, birdnetpi probably then does not relay know how to handle the lack of stream and creates these file that it is not able to analyze.
I had a similar problem (sometimes my files from my RTSP stream are too long, and birdnet chokes.) To work-around the issue, I had chatgpt write a script that simply deleted the oldest file in the StreamData-Analyzed dir if it was older than 30 seconds. (Birdnet only takes 0.3 seconds to analyze my sounds.) This has kept the problem from re-occurring, at the cost of losing a handful of recordings (generally no more than 2-3 on a bad day.)
(Save this file with a .sh extension in your /root and chmod 755 it to make it executable)
Then I put a line in my crontab to run it once every 5 minutes, and redirect the output and stderr to null: (If you don't, you get an error message about there being no files for stat to evaluate.)
5 * /root/csv_cleanup.sh > /dev/null 2>&1 &
I seemed to have resolved this issue by running the RTSP from the Camera through go2rtc (https://github.com/AlexxIT/go2rtc) this lets you ingest the HTTP stream from the camera and then output a clean RTSP stream. I think the issue is caused by the way the Reolink Camera generates the RTSP stream combined with poor error handling in the BirdNet backend. I suspect that if you do both as above and this you will be golden. Ideally the birdnet error handling would be uplifted but this is a good enough workaround for now.
Describe the bug
My BirdNetPi installation on a Proxmox VM was now running fine some a week, but today it simply stopped detecting new occurrences. I check the logs and nothing is really happening over there .
I did try the usual thing, reboot, stopping/restarting services but nothing seems to really help. It simply seems to be stuck at an old recoding but nothing really happens.
Live audio stream also seems to work fine.
Restarting
birdnet_server.service
seem to sort of help, as afterwards a new file was being analysed, However only one before stopping again.I restarted the
birdnet_server.service
here:And Then nothing happens again...
I noticed that the
BirdSongs/StreamData
folder is filling up with files that are not being processed.So I simply deleted all the files in the folder to see what happens, I thought maybe the files are corrupted or there is a backlog. After deleting I restarted all core services, this seems to help and the logs show what is to be expected:
but only for a short time, as only a few minutes later its getting stuck again:
My build I'm running birdnet on a proxmox VM following this tutorial. The audio comes from a security camera stream.
hope someone can help out