HomePod Mini audio does not play
Hi,
I'm trying to get HomePod Mini to work, but there is an authentication error, refer to the log below. Command lines tried: ./cliraop-linux-aarch64 -debug 10 -volume 50 -alac 192.168.2.147 t.wav ./cliraop-linux-aarch64 -debug 10 -volume 50 192.168.2.147 t.wav raop_play also fails with .mp3 and .wav files, see 2nd log
` [15:40:13.923] main:447 Binding to 192.168.2.140 [eth0] with mask 0xffffff00 [15:40:13.923] main:483 Listening for commands on named pipe /tmp/raop-ap5918800d [15:40:13.923] raopcl_create:715 [0x55681cf050]: using PCM coding [15:40:13.924] main:529 Connecting to player: 192.168.2.147 (192.168.2.147:5000) [15:40:14.159] raopcl_connect:1003 [0x55681cf050]: local interface 192.168.2.140 [15:40:14.160] exec_request:645 [0x55681d3430]: ----> : write POST /auth-setup RTSP/1.0 Content-Type: application/octet-stream Content-Length: 33 CSeq: 1 User-Agent: iTunes/7.6.2 (Windows; N;) Client-Instance: 22c408aaa774ffc1 DACP-ID: 1A2B3D4EA1B2C3D4 Active-Remote: ap5918800d
ZK▒▒]hH▒6▒ ▒g▒▒▒T▒AsO▒▒6E▒▒▒w [15:40:14.166] exec_request:663 [0x55681d3430]: <------ : request failed, error RTSP/1.0 [15:40:14.166] rtspcl_auth_setup:523 [0x55681d3430]: auth-setup failed [15:40:14.166] exec_request:645 [0x55681d3430]: ----> : write ANNOUNCE rtsp://192.168.2.147/1197283352 RTSP/1.0 Content-Type: application/sdp Content-Length: 184 CSeq: 2 User-Agent: iTunes/7.6.2 (Windows; N;) Client-Instance: 22c408aaa774ffc1 DACP-ID: 1A2B3D4EA1B2C3D4 Active-Remote: ap5918800d
v=0 o=iTunes 1197283352 0 IN IP4 192.168.2.140 s=iTunes c=IN IP4 192.168.2.147 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100
[15:40:14.166] exec_request:663 [0x55681d3430]: <------ : request failed, error Content-Length: [15:40:15.167] exec_request:645 [0x55681d3430]: ----> : write FLUSH rtsp://192.168.2.147/1197283352 RTSP/1.0 RTP-Info: seq=17768;rtptime=1 CSeq: 3 User-Agent: iTunes/7.6.2 (Windows; N;) Client-Instance: 22c408aaa774ffc1 DACP-ID: 1A2B3D4EA1B2C3D4 Active-Remote: ap5918800d
[15:40:15.168] exec_request:663 [0x55681d3430]: <------ : request failed, error Server: [15:40:15.168] exec_request:645 [0x55681d3430]: ----> : write TEARDOWN rtsp://192.168.2.147/1197283352 RTSP/1.0 CSeq: 4 User-Agent: iTunes/7.6.2 (Windows; N;) Client-Instance: 22c408aaa774ffc1 DACP-ID: 1A2B3D4EA1B2C3D4 Active-Remote: ap5918800d
[15:40:15.168] exec_request:663 [0x55681d3430]: <------ : request failed, error CSeq: [15:40:15.168] main:532 Cannot connect to AirPlay device 192.168.2.147:5000, check firewall & port [15:40:15.168] main:613 exiting...
`
` ./raop_play -v 50 192.168.2.147 test.mp3 DBG: ----> exec_request : write OPTIONS * RTSP/1.0 CSeq: 1 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: 335d94134a6e8695
DBG: <------ : exec_request: request ok (200) DBG: <------ : Date: Mon, 06 Jan 2025 14:44:25 GMT DBG: <------ : Content-Length: 0 DBG: <------ : Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER, POST, GET, PUT DBG: <------ : Server: AirTunes/835.19.2 DBG: <------ : CSeq: 1 DBG: <------ : X-Apple-ProcessingTime: 2 DBG: <------ : X-Apple-RequestReceivedTimestamp: 72212902 DBG: ----> exec_request : write ANNOUNCE rtsp://192.168.2.140/342016454 RTSP/1.0 Content-Type: application/sdp Content-Length: 571 CSeq: 2 User-Agent: iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3) Client-Instance: 335d94134a6e8695 Apple-Challenge: Qmh/6jlTceWeOUJgFksSzQ
v=0 o=iTunes 342016454 0 IN IP4 192.168.2.140 s=iTunes c=IN IP4 192.168.2.147 t=0 0 m=audio 0 RTP/AVP 96 a=rtpmap:96 AppleLossless a=fmtp:96 352 0 16 40 10 14 2 255 0 0 44100 a=rsaaeskey:VxRrEmA5kAVuM3G6hcNNCVgdMeptrszakfMswG2J6a41lIzVbVAmNlPfEeCWiq7tbVZwrmB61KFfx2esZ/JQnxPJHp7xm/s3ReFcasHuu+gBB5fKQj4bQfAwdDS87QJAcqhneHBySMCf4UcRz17GM/FBGN1QF95dRPH5z2pt55LHRE1NWdh5hzmyKrkt2OPL816EVVD4BbRuSOMemAXnnQdLztyy2T3AZ6O9yhzhN3anSQZZY1O6Vs4nHp0tk6jOpLvgnB5z84aTwZ6AhfuTf55pkn7BZW7S7O/jb4iMakK6kc7pmgG5JyIR4bnkZqFqaVPkUIX/FWhKgcsiUhXPtA a=aesiv:SROeAU1TN2f2Yp7A+G6XmA
ERR: <------ : exec_request: request failed, error RTSP/1.0
`
I am facing same issue. I also tried on port 7000, The log is below
./libraop/build/raop_play-linux-x86_64 -e -d 10 -p 5000 192.168.0.104 sample.mp3
[02:44:36.821] raopcl_create:715 [0x5e4988b64fe0]: using PCM coding
[02:44:36.928] raopcl_connect:1003 [0x5e4988b64fe0]: local interface 192.168.0.162
[02:44:36.929] exec_request:645 [0x5e4988b5e750]: ----> : write ANNOUNCE rtsp://192.168.0.104/0895645462 RTSP/1.0
Content-Type: application/sdp
Content-Length: 525
CSeq: 1
User-Agent: iTunes/7.6.2 (Windows; N;)
Client-Instance: a007a921d889c09b
v=0
o=iTunes 0895645462 0 IN IP4 192.168.0.162
s=iTunes
c=IN IP4 192.168.0.104
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 L16/44100/2
a=rsaaeskey:PZoBrwZ42cLLSWeCXfcpKlu37akE7plY1DMCgb0ZM1UqcV+zFmoKcT3+WTKeUGzRkZ1Jff0cTy3yGBmJArgFYUhcaHM71geVvgrRMEWkmdVIfZW4eV6ITIXelx2wyXYrcvfLRsyw1Kg7fNOMZrvo83sA9lhdRT/EHC65385EQx9kuwS58LxkTosjjHUc66YMuOgYjZyzEuaP6w4hKyYDcrS/BK/DCW/SdlnN6dLeEbmPgW/kUpSd3FXZREPtpkn2+XFsQt4sKsJJzdcpuoykaTDEy7syqtevndyUmc9KmoAYox+uVxFl7QmuvECjHdFe9JKWjuqEvJu5dbraqTd6Kg
a=aesiv:WR2vObQaeUoquPfk41iVYw
[02:44:36.942] exec_request:663 [0x5e4988b5e750]: <------ : request failed, error RTSP/1.0
[02:44:37.930] exec_request:645 [0x5e4988b5e750]: ----> : write FLUSH rtsp://192.168.0.104/0895645462 RTSP/1.0
RTP-Info: seq=17768;rtptime=1
CSeq: 2
User-Agent: iTunes/7.6.2 (Windows; N;)
Client-Instance: a007a921d889c09b
[02:44:37.930] exec_request:663 [0x5e4988b5e750]: <------ : request failed, error Content-Length:
[02:44:37.930] exec_request:645 [0x5e4988b5e750]: ----> : write TEARDOWN rtsp://192.168.0.104/0895645462 RTSP/1.0
CSeq: 3
User-Agent: iTunes/7.6.2 (Windows; N;)
Client-Instance: a007a921d889c09b
[02:44:37.930] exec_request:663 [0x5e4988b5e750]: <------ : request failed, error Server:
[02:44:37.930] main:291 Cannot connect to AirPlay device 192.168.0.104:5000, check firewall & port
I have fixed the issue on my side. It was not because of libraop, but my local network issue. Need to allow playback from local network in HomeKit app
It worked out for me as well. I had to disable ufw firewall for the ip address of the HomePod Mini