FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.93k stars 353 forks source link

Streaming audio only gives aacDecoder_DecodeFrame errors #181

Closed formatc1702 closed 3 years ago

formatc1702 commented 3 years ago

Running RPiPlay with:

./rpiplay -n PiPlay -a analog

Result:

Setup:

Am I doing something wrong? Does something need to be changed? Thanks!

pallas commented 3 years ago

Thanks for the thorough bug report. Those error codes correspond to AAC_DEC_PARSE_ERROR, AAC_DEC_INVALID_CODE_BOOK, & AAC_DEC_TNS_READ_ERROR, which means the received bitstream is likely corrupt. I don't know if that's happening in the sender or in RPiPlay, but I can attempt to try this setup over the weekend, however I assume it's a duplicate of Issue #2. Apple uses ALAC for audio-only mirroring, while screen mirroring uses AAC.

formatc1702 commented 3 years ago

Thanks for the quick reply and interesting insight! I shall try Shairplay later today. If it turns out this is a duplicate of #2, let's close this issue. Will report back.

formatc1702 commented 3 years ago

Update: After messing around with Shairplay without success, I stumbled upon shairport-sync that does just what I want, and works wonderfully. Thanks to the RPiPlay folks anyway! Have a good one.