Updated birdnet_recording.sh With a functional change around how ffmpeg is used to make use if it's functionality to accept multiple input streams and map each to a output file. Due to the original implementation generating a filename that contain the date/time streams would be writing to the same file - a small change was make each stream go to it's one file with unique filenames. Updated livestream.sh & spectrogram.php The Livestream service would fail if the RTSP stream setting was more than 1 stream (i.e comma separated list of streams) Made some improvements so streaming is possible from any of the URL's, The Spectrogram page received a new control and some Javascript that allows the user to change between streams, the setting gets saved and the livestream service restarted so it uses's the correct stream. This control is not visible if there are no RTSP streams configured By default the livestream service will stream the the first RTSP URL, if the setting is not set or invalid Updated advanced.php With a small GUI change around RTSP steam entry by providing a input field for each URL and a button to add more fields. In the background nothing changes as we use some Javascript to extract the valus entered and fill in the original rtsp_stream value with the correct comma separated string Updated server.py To work with the recording filename changes so that the correct filename is stored in the DB Updated update_birdnet_snippets.sh To support a new setting RTSP_STREAM_TO_LIVESTREAM on the Spectrogram page and in the livestream service
Review the license!!
You may not use BirdNET-Pi to develop a commercial product!!!!
BirdNET-Pi
A realtime acoustic bird classification system for the Raspberry Pi 4B, 400, 3B+, and 0W2
Icon made by Freepik from www.flaticon.com
Introduction
BirdNET-Pi is built on the BirdNET framework by @kahst using pre-built TFLite binaries by @PINTO0309 . It is able to recognize bird sounds from a USB microphone or sound card in realtime and share its data with the rest of the world.
Check out birds from around the world
- BirdWeather
- Johannesburg, South Africa
- Öringe, Tyresö, Sweden
- Berowra, New South Wales, Australia
- Dundas, Ontario, Canada
- Bungendore, New South Wales, Australia
- Rivers Bend, Ohio, United States
- Vienna, Virginia, United States
- Grevenbroich, Elsen, Germany
- Occoquan, Virginia, United States
- Cambridge, Massachusetts, United States
Share your installation!! Have a public installation not in the list above? Let me know!! I'd be happy to add it.
Currently listening in these countries . . . that I know of . . .
- The United States
- Germany
- South Africa
- France
- Austria
- Sweden
- Scotland
- Norway
- England
- Italy
- Finland
- Australia
- Canada
- Switzerland
- Romania
- Spain
- New Zealand
- Russia
- Croatia
- Belgium
- Israel
- Ireland
- Denmark
- Costa Rica
- The Philippines
- Hungary
- South Sudan
- Argentina
- Brazil
Features
- 24/7 recording and automatic identification of bird songs, chirps, and peeps using BirdNET machine learning
- Automatic extraction and cataloguing of bird sounds
- Tools to visualize your recorded bird data and analyze trends
- Live audio stream and spectrogram
- Automatic disk space management that periodically purges old audio files to manage disk space
- BirdWeather integration -- you can request a BirdWeather ID from BirdNET-Pi's "Tools" > "Settings" page
- Web interface access to all data and logs provided by Caddy
- GoTTY Web Terminal
- Tiny File Manager
- FTP server included
- SQLite3 Database
- Adminer database maintenance
- phpSysInfo
- Apprise Notifications supporting 70+ notification platforms
- Localization supported
Requirements
- A Raspberry Pi 4B, Raspberry Pi 400, Raspberry Pi 3B+, or Raspberry Pi 0W2 (The 3B+ and 0W2 must run on RaspiOS-ARM64-Lite)
- An SD Card with the 64-bit version of RaspiOS installed (please use Bullseye) -- Lite is recommended, but the installation works on RaspiOS-ARM64-Full as well. Downloads available within the Raspberry Pi Imager.
- A USB Microphone or Sound Card
Installation
A comprehensive installation guide is available here.
Please note that installing BirdNET-Pi on top of other servers is not supported. If this is something that you require, please open a discussion for your idea and inquire about how to contribute to development.
Raspberry Pi 3B[+] and 0W2 installation guide available here
The system can be installed with:
curl -s https://raw.githubusercontent.com/mcguirepr89/BirdNET-Pi/main/newinstaller.sh | bash
The installer takes care of any and all necessary updates, so you can run that as the very first command upon the first boot, if you'd like.
The installation creates a log in $HOME/installation-$(date "+%F").txt.
Access
The BirdNET-Pi can be accessed from any web browser on the same network:
- http://birdnetpi.local
- Default Basic Authentication Username: birdnet
- Password is empty by default. Set this in "Tools" > "Settings" > "Advanced Settings"
Please take a look at the wiki and discussions for information on
- BirdNET-Pi's Deep Convolutional Neural Network(s)
- making your installation public
- backing up and restoring your database
- adjusting your sound card settings
- suggested USB microphones
- building your own microphone
- privacy concerns and options
- beta testing
- and more!
Updating
Use the web interface and go to "Tools" > "System Controls" > "Update." If you encounter any issues with that, or suspect that the update did not work for some reason, please save its output and post it in an issue where we can help.
Uninstallation
/usr/local/bin/uninstall.sh && cd ~ && rm -drf BirdNET-Pi
Troubleshooting and Ideas
*Hint: A lot of weird problems can be solved by simply restarting the core services. Do this from the web interface "Tools" > "Services" > "Restart Core Services" Having trouble or have an idea? Submit an issue for trouble and a discussion for ideas. Please do not submit an issue as a discussion -- the issue tracker solicits information that is needed for anyone to help -- discussions are not for issues.
PLEASE search the repo for your issue before creating a new one. This repo has nothing to do with the validity of the detection results, so please do not start any issues around "False positives."
Sharing
Please join a Discussion!! and please join BirdWeather!! I hope that if you find BirdNET-Pi has been worth your time, you will share your setup, results, customizations, etc. HERE and will consider making your installation public.
Cool Links
- Marie Lelouche's Out of Spaces using BirdNET-Pi in post-sculpture VR! Press Kit
- Research on noded BirdNET-Pi networks for farming
- PixCams Build Guide
- Core-Electronics Build Article
- RaspberryPi.com Blog Post
- MagPi Issue 119 Showcase Article
Internationalization:
The bird names are in English by default, but other localized versions are available thanks to the wonderful efforts of @patlevin. Use the web interface's "Tools" > "Settings" and select your "Database Language" to have the detections in your language.
Current database languages include the list below:
| Language | Missing Species out of 6,362 | Missing labels (%) |
|---|---|---|
| Afrikaans | 5774 | 90.76% |
| Catalan | 544 | 8.55% |
| Chinese | 264 | 4.15% |
| Croatian | 370 | 5.82% |
| Czech | 683 | 10.74% |
| Danish | 460 | 7.23% |
| Dutch | 264 | 4.15% |
| Estonian | 3171 | 49.84% |
| Finnish | 518 | 8.14% |
| French | 264 | 4.15% |
| German | 264 | 4.15% |
| Hungarian | 2688 | 42.25% |
| Icelandic | 5588 | 87.83% |
| Indonesian | 5550 | 87.24% |
| Italian | 524 | 8.24% |
| Japanese | 640 | 10.06% |
| Latvian | 4821 | 75.78% |
| Lithuanian | 597 | 9.38% |
| Norwegian | 325 | 5.11% |
| Polish | 265 | 4.17% |
| Portuguese | 2742 | 43.10% |
| Russian | 808 | 12.70% |
| Slovak | 264 | 4.15% |
| Slovenian | 5532 | 86.95% |
| Spanish | 348 | 5.47% |
| Swedish | 264 | 4.15% |
| Thai | 5580 | 87.71% |
| Ukrainian | 646 | 10.15% |
Screenshots
🤔
Are you a lucky ducky with an extra Raspberry Pi 4B lying around? Here's an idea!


