Determine ALAC or AAC used for stream #2007
-
|
Is there a way to determine whether ALAC lossless or AAC 256K is being used to encode the stream? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
|
Thanks for the question. Yes indeed, a metadata There is a similar This is somewhat from memory, so you might need to check. (I must update the metadata reader example...) |
Beta Was this translation helpful? Give feedback.
-
|
Fantastic :-) I had a quick look at the reader source and there is a case statement for `sdsc' But it does not appear in the metadata pipe. Does it need to be added upstream in shairport-sync? Here's some sample output. |
Beta Was this translation helpful? Give feedback.
-
|
Using 4.3.6. |
Beta Was this translation helpful? Give feedback.
-
|
Got it. Thx and looking forward to v5 :-) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Hi Tim. Thanks for the post. If the source device is an iPhone, iPad or macOS, then Buffered Audio is 48K on recent OSes, 44.1k on older OSes, 24-bit floating point ("F24"), stereo, AAC, irrespective of what Apple Music says. If it's Realtime Audio (e.g. from free-tier Spotify and from macOS "System Audio"), it's 44.1K, 16-bit signed integer ("S16") stereo ALAC, as before. (BTW, this means that Shairport Sync will switch output rates going between Buffered Audio and Realtime Audio if allowed.) If the source is a HomePod mini or an Apple TV4k (and possibly other similar devices) and if you have enabled lossless reception, then Shairport Sync will receive 48k 24-bit signed integer ("S24") ALAC, i.e. lossless audio. We don't know how to decipher higher resolutions. On the same devices, if audio is encoded in Dolby Atmos, Shairport Sync will decode it as F24 AAC Surround Sound 5.1 or 7.1, depending on what the source is. It does not see the Atmos additions. You can disable Surround Sound on Shairport Sync if you wish. Encoding (AAC/ALAC/F24/S24/S16/Stereo/Surround Sound) is dynamic, in that the feed can switch from lossy to lossless dynamically. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
|
Just noticing that your macOS is quite a bit back, and it's supplying Buffered Audio at 44.1k AAC rather than 48k AAC that more recent versions use... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.



Thanks. These metadata tokens are a new feature of version 5.