philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.53k stars 218 forks source link

No sound output on Busch & Jäger iNet radio #367

Closed benschi11 closed 3 years ago

benschi11 commented 3 years ago

Hello, thanks for your work - it is really amazing. I have one problem with my iNet radio as upnp receiver. It displays that it is playing from airplay but no sound is coming.

Following was found in the logs:

[21:04:26.576330] http_thread_func:1087 [0x7fdb7c006d80]: got HTTP connection 32 (silent frames 0)
[21:04:26.576647] handle_http:1272 [0x7fdb7c006d80]: received GET HTTP/1.0
Host: 192.168.xxx.xxx
User-Agent: BJE_Radio_iNet1.0/02.05.00

[21:04:26.576702] handle_http:1318 [0x7fdb7c006d80]: responding: HTTP/1.0 200 OK
Server: HairTunes
Content-Type: audio/flac
Connection: close

[21:04:26.576763] _buffer_get_frame:988 [0x7fdb7c006d80]: drain [level:292 gap:-35150719] [W:54847 R:54555] [R:0 S:0 F:0]
[21:04:28.330170] buffer_put_packet:648 [0x7fdb7c006d80]: fill [level:248] [W:55067 R:54820]
[21:04:32.360943] buffer_put_packet:648 [0x7fdb7c006d80]: fill [level:760] [W:55579 R:54820]
[21:04:36.299025] send_data:1031 Error sending data 2412
[21:04:36.299064] http_thread_func:1222 [0x7fdb7c006d80]: spent 9719 ms in send for 2412 bytes (sent -1)!
[21:04:36.299098] http_thread_func:1226 [0x7fdb7c006d80]: HTTP send() unexpected response: -1 (data=2412): Connection reset by peer
[21:04:36.299115] http_thread_func:1106 HTTP close 32
[21:04:36.448084] buffer_put_packet:648 [0x7fdb7c006d80]: fill [level:1272] [W:56091 R:54820]

Any idea what am I doing wrong?

philippe44 commented 3 years ago

This player has a problem with the flac format I'm sending. Without entering into details, streaming flac have some issues that poorly design player's software don't handle well. It's not an issue with the flac spec itself, but rather how people use flac libraries. Try coding to mp3 or to pcm.

benschi11 commented 3 years ago

Thank you for the fast reply. Maybe a dumb question - but how does that work? I try to stream Amazon music over AirPlay to the player. Edit: I think I found it - I have to use the codec keyword in the settings - right? Edit2: Thanks a lot - it works! Keep up the great work

benschi11 commented 3 years ago

I had to change the settings from flac to mp3 - than it works with this player.