Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration options for sox spectrogram creation #19

Open
wants to merge 2,420 commits into
base: main
Choose a base branch
from

Conversation

hoover67
Copy link

@hoover67 hoover67 commented Jun 29, 2022

This patch will add the possibility to add further arguments to sox' spectrogram creation, for instance to create grayscale images, change the spectrogram's size or use a different DFT window algorithm.

Right now this needs to be configured in /etc/birdnet/birdnet.conf using a shell variable, no GUI config possible yet. :-(
sox.zip

All the best, Uwe

Affected files:
o scripts/spectrogram.sh
o scripts/extract_new_birdsongs.sh
o birdnet.conf-defaults

EDIT: I had to put the tgz into a zip file because github refused the upload. Sorry for any trouble, it's the first time I contribute to a project using github :-)

@DD4WH
Copy link

DD4WH commented Jun 29, 2022

Uwe, are you sure you want to merge this into the BirdNET-Lite repo ? Or did you mean the BirdNET-Pi repo by Patrick ?

@hoover67
Copy link
Author

Yep, it was meant for Patrick's repo but my github-fu is too weak to create a proper pull request there, so sorry for the trouble and bothering you.

I created a comment / discussion over at Patrick's repo outlining the changes.

All the best, Uwe

ehpersonal38 and others added 25 commits June 5, 2023 14:15
Co-Authored-By: Datore7 <[email protected]>
Added net-tools to the needed packages.
Co-Authored-By: gutocarv <[email protected]>
Simplify handle_client loop / indent, check for EOF when reading from…
recordings, not necessarily the root filesystem
check for its own 'success' state and don't try to validate the
numbers
…end up

with low / no disk space and be unable to "escape." In the event of a backlog,
the loop in birdnet_analysis.sh runs continuously, which means analyzed files
do not get moved, which means in turn extract_new_birdsounds.sh cannot create
mp3 extractions and move the processed files again, which would allow them to
be cleaned up by the cron jobs.

This patch is the obvious fix, i.e. to just limit the maximum amount of files
birdnet_analysis.sh can process to 20. This should be a good trade off given
the small overhead of listing files etc before the main loop begins - note that
for the "normal" case of no backlog, birdnet_analysis usually exits after a
single analysis anyway.
Chunk analysis calls to facilitate recovery from stalls & low disk space
Check disk usage of filesystem hosting recordings
adding Rwanda to list of countries
and Omar, Belarus, and the Czech Republic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.