-
Hi folks: I'm down a weird rathole but feel like I'm so close to making this actually work. How did I get here? Well... TLDR, I have a Windows Dev Kit 2023 box that's running a Snapdragon 8cx Gen 3 processor and has 32GB RAM and a 512GB NVME SSD built in; it's essentially the guts of a Microsoft Surface Pro X. It's running Windows 11 for ARM, which is MSFT's native aarch64 build of Win11. On top of Win11, via Windows Subsystem for Linux 2 (WSL2), I'm able to run (via Hyper-V under the hood) an aarch64-native VM of Debian on top of Windows. Yes really: https://i.imgur.com/6zetODQ.png https://i.imgur.com/QHjzzA7.png So within said VM I have run the birdnet-pi install script, and I feel like I'm getting close to making the install functional... https://i.imgur.com/5LUj3ql.png But not without a couple challenges:
I had to fight my way through figuring out how to make ffmpeg + mediamtx/simple-rtsp-server work, but TLDR the config I am using is as follows:
^ This reflects I have put the ffmpeg.exe binary in the Windows directory with mediamtx.exe; I have validated that with the above RTSP server running on the Win11 ARM host, I can use VLC on my Win11/Intel desktop on the same network and hear the stream albeit with a couple seconds of delay. On the Windows side of the equation I set up a Hyper-V virtual switch in bridge mode so I could get an external IP to the WSL2 Debian VM. In my setup it's getting 192.168.1.11. The Windows host is getting an IP of 192.168.1.110. Network seems to be generally working fine. However: BirdNET-Pi isn't yet working properly. In the logs I'm not seeing it attempt to record the stream; unlike when I was testing this on my Pi3B I'm not seeing it ingest the stream nor can I use the Spectrogram link (broken image, browser console indicates 404) so I think I'm not yet either running all services properly. Here's a few diag screenshots: https://i.imgur.com/MFmKfyI.png https://i.imgur.com/qfdKS49.png arecord not running seems like a tell-tale, but I'm not quite sure what to do about it. What I do see is BirdNET-Pi repeatedly open and then destroy the RTSP stream according to mediamtx: https://i.imgur.com/cE5G6rg.png Unfortunately it doesn't seem like much of anything is happening per the log (I do have config set to debug): https://i.imgur.com/yu7LBvg.png TLDR I feel like I'm super close to making this work! This Win Dev Kit 2023 box has a huge amount of potential, especially with its superior I/O & RAM available to it versus even the best RPis out there, so I'd like to get to the point where I can demonstrate this proof of concept as a success. :) Any and all help appreciated - thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 12 replies
-
The sheer absurdity of this post gave me a good laugh 😆. Thanks for that. So BirdNET-Pi has a script that prints a ton of debug info, you can run it with the following command. You can paste the output back here and I can have a look to see if I get any ideas.
|
Beta Was this translation helpful? Give feedback.
-
Absurdity is my jam, so I'm glad at the very least another human also appreciates this ridiculousness. Thanks for your help @ehpersonal38 ! Here's the output of bash ./print_diagnostic_info.sh - `● caddy.service - Caddy May 21 18:21:37 birdnet-win11 caddy[112]: {"level":"info","ts":1684714897.0652905,"msg":"autosaved config (load with --resume flag)","file":"/var/lib/caddy/.config/caddy/autosave.json"} ========== birdnet_analysis status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET Analysis. ========== birdnet_log status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET Analysis Log. ========== birdnet_recording status ========== May 21 18:24:27 birdnet-win11 birdnet_recording.sh[2104]: [auto_resampler_0 @ 0xab878ad24210] [SWR @ 0xab878ad243a0] FL: FC:0.707107 ========== birdnet_server status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET Analysis Server. ========== birdnet_stats status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET Stats. ========== chart_viewer status ========== ========== extraction status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET BirdSound Extraction. ========== web_terminal status ========== May 21 18:21:36 birdnet-win11 systemd[1]: Started BirdNET-Pi Web Terminal. ========== spectrogram_viewer status ========== May 21 18:24:36 birdnet-win11 spectrogram.sh[2179]: cat: /home/dorashan/BirdNET-Pi/analyzing_now.txt: No such file or directory ========== livestream status ========== May 21 18:21:37 birdnet-win11 livestream.sh[152]: [AVFilterGraph @ 0xaad185db8ff0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed ========= Syslog snippet ========== ========== Memory Usage ========== ========== Load Averages ========== ========== CPU Info ========== processor : 1 processor : 2 processor : 3 ========== System Temperature ========== ========== Extra Info ========== SHELL=/bin/sh 17 * * * * root cd / && run-parts --report /etc/cron.hourly ========== Connected Microphone Devices ========== null ========= Date and Time ========== |
Beta Was this translation helpful? Give feedback.
-
I have BirdNET-Pi set up in a proxmox container to a RPi 0W running a VLC audio stream. For some reason RTSP and RTP did not work but a HTTP stream did?? I googled and found this on StackExchange. I didn't have time to dig in and find out why but Hope that helps. |
Beta Was this translation helpful? Give feedback.
-
Just found an interesting series of pages around tensorflow & Debian indicating the So just in case I followed these instructions to update the package: Alas, no difference. I'm guessing your install script did this anyway. I also verified pandas was up to date via pip. |
Beta Was this translation helpful? Give feedback.
-
Hi again @ehpersonal38 - new random problem. I had to wait for parts to create a weather-resistant housing so I could put the mic outside... https://i.imgur.com/LxCyYqa.jpg https://i.imgur.com/ojSy8PE.jpg https://i.imgur.com/0xRYfoj.jpg However, now that I have the mic outside and the stream restarted, every analysis is coming back as Human: https://i.imgur.com/pkVGoq9.png I'm also listening to the stream from VLC and I can definitely hear birds, and not hear any talking. Any thoughts? I noticed this and then restarted the WSL2 Debian VM - same results over the past 10 minutes. It's a little windy outside but listening to the stream, I definitely hear birds. |
Beta Was this translation helpful? Give feedback.
My amateur sleuthing through this led me to realize
netstat -tulpn
above isn't working because ...netstat
wasn't present.apt install net-tools
and voila - the script appears to be churning through the backlog...