Closed handcc closed 2 years ago
Thanks for the post. It does look like a separate issue alright. I edited your message for format. It's quite puzzling, because both SoundCloud on iOS uses a Realtime stream, not a Buffered Audio stream as in your logs. Here are examples from my system just now.
Source: SoundCloud on iOS.
79.316401205 "rtsp.c:2644" Connection 1: AP2 PTP connection from 192.168.5.248:53237 to self at 192.168.5.53:7000.
14.386785340 "rtsp.c:2976" Connection 1. AP2 Realtime Audio Stream.
0.008242667 "audio_alsa.c:528" alsa: output format chosen is "S32".
0.000041375 "audio_alsa.c:571" alsa: output speed chosen is 44100.
0.085275208 "rtp.c:1216" Connection 1: Set Anchor Clock: 90e17b32a58b0008.
0.001487125 "rtp.c:1322" Connection 1: Clock 90e17b32a58b0008 is now the new anchor clock and master clock. History: 14120.417048 milliseconds.
0.000017750 "rtp.c:1407" Connection 1: NQPTP new master clock 90e17b32a58b0008.
7.854345920 "player.c:2641" Large negative sync error of: -2340 frames (-0.053061 seconds), with frame: 71325351.
1.986266210 "player.c:2460" sync error ms net sync ppm all sync ppm packets missing late too late resend reqs min DAC queue min buffers max buffers received fps output fps (r) output fps (c)
8.005294921 "player.c:2460" -1.85 34.0 34.0 9027 0 351 0 39 7694 208 232 44107.36 N/A. N/A
8.005100212 "player.c:2460" -1.48 0.0 0.0 10030 0 368 0 39 7635 210 232 44104.15 44092.47 44093.33
8.004806879 "player.c:2460" -1.30 0.0 0.0 11033 0 388 0 39 7703 209 232 44106.04 44093.36 44094.18
8.005008754 "player.c:2460" -1.12 0.0 0.0 12036 0 396 0 40 7701 211 232 44103.08 44094.00 44094.78
Spotify on iOS:
27.835662763 "rtsp.c:2976" Connection 1. AP2 Realtime Audio Stream.
0.001931625 "audio_alsa.c:528" alsa: output format chosen is "S32".
0.000024333 "audio_alsa.c:571" alsa: output speed chosen is 44100.
0.050042000 "rtp.c:1429" Connection 1: No Clock Anchor.
0.022079792 "rtp.c:1407" Connection 1: NQPTP new master clock 90e17b32a58b0008.
9.861896005 "player.c:2460" sync error ms net sync ppm all sync ppm packets missing late too late resend reqs min DAC queue min buffers max buffers received fps output fps (r) output fps (c)
0.000063750 "player.c:2460" -22.91 1001.3 1001.3 1003 0 16 0 0 6680 208 232 44109.45 N/A N/A
8.005238337 "player.c:2460" -44.22 2840.9 2840.9 2006 0 20 0 0 6336 192 231 44097.99 44159.81 44158.85
8.019034420 "player.c:2460" -16.30 2430.2 2430.2 3009 0 56 0 1 6971 168 232 44094.74 44092.41 44091.44
8.005967338 "player.c:2460" 3.24 -1940.2 1940.2 4012 0 86 0 1 7678 208 233 44097.78 44060.68 44059.70
8.008574045 "player.c:2460" 2.93 -1373.7 1373.7 5015 0 107 0 1 7678 210 233 44102.16 44057.71 44056.72
7.998392921 "player.c:2460" 1.85 -153.0 153.0 6018 0 130 0 1 7700 210 233 44097.94 44067.15 44066.15
(The timings are very poor because Shairport Sync is running here in a virtual machine.)
The "No Clock Anchor" in this example is harmless -- it simply means that SPS is waiting for clock information which arrives 22 milliseconds later.
So, overall, the mystery is to try to determine why you are not seeing Realtime streams. Is it correct that you are sending from an iOS device, or is it something else?
Yes, I am streaming from an iPhone XR running iOS 15.2.1.
I upgraded to iOS 15.3 and everything appears to be working now. Perhaps an iOS bug. I'll wait a day or 2 before closing this to be sure, but so far so good.
Hello - I reported my troubles in https://github.com/mikebrady/shairport-sync/issues/1404. My problem appears to be unrelated.
I am unable to stream in AP2 mode from Spotify or SoundCloud. On the client side, it looks like the connection is successful and the music appears to be playing, but there is no audio. When it fails, sometimes I see something like
0.006229704 "rtp.c:1429" Connection 3: No Clock Anchor.
See below.Sometimes I see the initial connection, but nothing else until I disconnect (no errors):
Thanks.