mpv is unable output surround sound on alsa/pipewire
Version, Distribution, Desktop Environment: 0.3.22.r96.g302282ef-1, Arch (pipewire-git), KDE
Description of Problem: Surround sound output in mpv stopped working a few days ago. It was working last week.
How Reproducible: always
Steps to Reproduce:
- Set profile to surround (e.g. HDMI 5.1), confirm that all channels are working.
mpv -v --audio-device="alsa/pipewire" --audio-channels="5.1(alsa)" surround_media.mp4
Actual Results: mpv audio is output in stereo.
Expected Results: mpv audio is output in 5.1 surround.
api.alsa.use-chmap = true with the same result, but stereo channels copied to back speakers.
mpv still reports
snd_pcm_query_chmaps() returned NULL.
pipewire config (everything else as default):
api.acp.auto-profile = false api.acp.auto-port = false
default.clock.rate = 96000 default.clock.quantum = 256
[ao] Trying audio driver 'alsa' [ao] Using preferred device 'pipewire' [ao/alsa] requested format: 48000 Hz, 5.1(alsa) channels, s32p [ao/alsa] using ALSA version: 1.2.4 [ao/alsa] opening device 'pipewire' [ao/alsa] trying format s32/10 [ao/alsa] snd_pcm_query_chmaps() returned NULL [ao/alsa] channel map reported by ALSA: FL FR [ao/alsa] which we understand as: stereo