Closed selsta closed 9 years ago
https://github.com/selsta/mpv/commit/2314db6e334eb9945a3d1e850f459a948772f633 seemed to fix it for me and did not break 5.1 audio like it did before 4b65bd5086f832228303cd891a6abd231eeea790
The patch you posted is wrong because you always report back to mpv core that your hardware supports the requested channel layout, so you'd break 7.1 playback (it would not downmix) on broken 5.1 setups and mpv would not even complain (because you would report back you have 8 channels when it's not true and it would not downmix).
The problem in this case is AirPlay is not reporting a meaningful channel layout that can be converted to a bitmap. We could make the fallback to stereo a bit stronger. i.e.: if no channel maps where added to che chmap_sel add a stereo one. Can AirPlay do 5.1?
AirPlay can do 5.1 when the media file is in the .mp4 container. Not sure if it does support it when only the audio output on the Mac is set to play over AirPlay.
If anything, AirPlay can only do AC3/DTS (although the device doesn't seem to advertise an Encoded Audio mode). It most likely doesn't support discrete 5.1 channels. Assuming a Stereo layout should be pretty safe.
Though I know nothing about this issue and haven't looked into it at all, I would like to report that since this same commit, audio is silent when streaming from twitch.tv to mpv via livestreamer for me. No AirPlay involved, just internal speakers. I've since rolled back my installed version of mpv, but if any verbose logs would be helpful, I'll happily recompile head and report back.
Since 4b65bd5086f832228303cd891a6abd231eeea790 playing music over airplay does not work anymore:
Full log: http://a.pomf.se/pnqniz.txt
I'm running the latest git-master on OS X 10.10.1