Skip to content

Conversation

@esaltzm
Copy link
Contributor

@esaltzm esaltzm commented Dec 16, 2025

Description
This PR improves the user experience when running file analysis by:

Wrapping the analyze_file multiprocessing pool with a tqdm progress bar when show_progress is True, providing real-time feedback on processing progress.
Suppressing standard output from worker processes when show_progress is enabled, resulting in a cleaner progress display.
No changes were made to the analysis logic or results.

Motivation
I decided to open this PR after running the analyzer on a directory with ~50,000 audio files and found the CLI output overwhelming and hard to follow. These changes make it easier to monitor progress and keep the output informative and manageable for large-scale analyses.

@esaltzm
Copy link
Contributor Author

esaltzm commented Dec 16, 2025

Also this is my first open source contribution! If I did anything wrong please let me know I would love to help out with this project 🕊️

One question I have for the maintainers is whether this should stop all prints within analyze_file or maybe keep errors printed as they are less common / more significant than just "Analyzing x file" or "Completed x file"

@esaltzm esaltzm changed the title Add tqdm progress bar option Add tqdm progress bar option for CLI Dec 16, 2025
@Josef-Haupt
Copy link
Member

Thanks for contributing! LGTM
I'll merge this PR, but there is a big update on the way that might revert some of your changes.
(We are exchanging the BirdNET-Analyzer core for the very fast birdnet package, which also comes with a progress bar)

@Josef-Haupt Josef-Haupt merged commit 7c249aa into birdnet-team:main Dec 18, 2025
8 checks passed
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.

2 participants