postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
880 stars 95 forks source link

White light but no audio when streaming to HomePod Mini #2479

Open sverrirarnors opened 1 month ago

sverrirarnors commented 1 month ago

What do you need help with?

I've been trying this package using the following command on a HomePod Mini

ffmpeg -i http://netradio.ruv.is:80/ras1.mp3 -f mp3 - | atvremote -n <name> stream_file=-

What happens is that a white glowing light appears on the HomePod, but no audio plays. If I check in the Home app, it says that the HomePod is playing, but there isn't really anything going on.

I've also tried passing the path directly in the stream_file argument, as well as streaming a local file, but the same thing happens. I also tried to factory reset the HomePod, but to no avail.

Do you have any pointers about how I can proceed with this? Is there anything more I could try?

xXxNIKIxXx commented 1 month ago

I am encountering the same problem. I have a Python application that streams an FFmpeg stream to the HomePod. After the latest update, it broke. However, downgrading the library version back to 0.14.5 makes it work again.

postlund commented 1 month ago

That's interesting, will have to check that. I haven't made any changes to AirPlay streaming, maybe is related to some external library (like miniaudio). Is it the same with local files?

xXxNIKIxXx commented 1 month ago

For me using an local file with the Path also doesen't work.

sverrirarnors commented 1 month ago

Using the 0.14.5 version worked for me as well @xXxNIKIxXx

postlund commented 3 weeks ago

This should be fixed in 0.15.1, please give it a try!