mikebrady / shairport-sync

AirPlay and AirPlay 2 audio player
Other
7.16k stars 569 forks source link

shairport stdout 8 bit rate 8000 Hz Mono #1301

Closed CarlBernard closed 2 years ago

CarlBernard commented 2 years ago

F2256622-667F-415C-8937-776CE699E389

Is it normal that if I send via airplay from iPad in lossless format to shairport-sync + stdout I have this output with aplay when I play the raw file (see screenshot)?

I have compared the file on Audition to the original one and there are obvious differences

mikebrady commented 2 years ago

Thanks for the post. There are a couple of things here.

Firstly, the output from the stdout is not a WAV file. It’s simply the raw frames sequence.

Secondly, it has been established that iTunes does transmit losslessly in AirPlay1 to Shairport Sync. However, we don’t know what the iPad may do before transmitting the audio.

[Update] added that this is true for AirPlay 1 only.

CarlBernard commented 2 years ago

Hello Mike,

the problem is not with stdout which regularly creates a raw file via shairport-sync. The "real problem" is that tvOS on Apple TV 4K, unlike iOS, is not bit perfect after the tests I did comparing the tracks with Audition.

I have compared two tracks and unfortunately they do not cancel each other out. The sound is partially reduced, however both in listening and in frequency analysis it is evident that the tracks are not the same.

Mine was just a doubt.

Anyway thanks for the quick reply and thanks again for all your work on shairport-sync.

P.S: news for Airplay 2? :-)) Is there already a version in development?

Have a good evening

mikebrady commented 2 years ago

Thanks. There is an AirPlay 2 version on the development branch, yeah. It offers limited capabilities, but we would like to hear what you think of it.

CarlBernard commented 2 years ago

Airplay 2 could also manage 24/48 if only Apple decided to use this protocol .. we'll see. Meanwhile, I take a look at the devolpment version and let you know ;-))

github-actions[bot] commented 2 years ago

This issue has been inactive for 60 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.