No High Res Audio Playback using HTPC

Server Version#: 1.29.0.6219
Player Version#: 1.25.1.3248

I thought I’d give Plex HTPC but seems that when playing FLAC content it doesn’t configure the output and remains at the default resolution for playback making the sound quality low and dull.

This is with Audio in configured to HDMI and all relevant decoder options (all) selected.

Plex Media Player doesn’t suffer from the same problem producing nice crisp and where available multi channel audio.

Would you consider uploading a sample file and HTPC log?
What computer is running HTPC?

Here’s a sample file sample.zip (20.0 MB)

Machine is standard PC running Windows 10 connected to a Denon Receiver via HDMI.

Here’s the HTPC log Plex HTPC.zip (15.6 KB) as the forums wouldn’t let me upload both files to one reply for some reason.

The relevant section from the log seems to be this:

Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] af: [in] 176400Hz 5.1 6ch s32
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] af: [userspeed] 176400Hz 5.1 6ch s32
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] af: [userspeed] (disabled)
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] af: [convert] 176400Hz 5.1 6ch s32
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] ao: Trying audio driver 'wasapi'
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] ao: Using preferred device '{602e80d7-994e-430d-b84a-1c79ad0c6a76}'
Sep 21, 2022 09:23:31.899 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: requested format: 176400 Hz, 5.1 channels, s32
Sep 21, 2022 09:23:31.901 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Selecting device by id: '{602e80d7-994e-430d-b84a-1c79ad0c6a76}'
Sep 21, 2022 09:23:31.901 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Selecting device '{602e80d7-994e-430d-b84a-1c79ad0c6a76}' (DENON-AVRHD (NVIDIA High Definition Audio))
Sep 21, 2022 09:23:31.902 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Monitoring changes in device {0.0.0.00000000}.{602e80d7-994e-430d-b84a-1c79ad0c6a76}
Sep 21, 2022 09:23:31.907 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.1 float (32/32 bits) @ 48000hz (shared) -> close
Sep 21, 2022 09:23:31.907 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Closest match is 7.1 float (32/32 bits) @ 48000hz
Sep 21, 2022 09:23:31.907 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Accepted as 7.1 float @ 48000hz -> 7.1 float (32/32 bits) @ 48000hz (shared)
Sep 21, 2022 09:23:31.908 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Device period: 10 ms
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: Buffer frame count: 2400 (50 ms)
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: IAudioClock::GetFrequency gave a frequency of 1536000.
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: device buffer: 2400 samples.
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] ao/wasapi: using soft-buffer of 9600 samples.
Sep 21, 2022 09:23:31.917 [7496] INFO - [MPVEngine/mpv] cplayer: AO: [wasapi] 48000Hz 7.1 8ch float
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] cplayer: AO: Description: Windows WASAPI audio output (event mode)
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] autoconvert: inserting resampler
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] swresample: format change, reinitializing resampler
Sep 21, 2022 09:23:31.917 [7496] DEBUG - [MPVEngine/mpv] swresample: 176400Hz 5.1 s32 -> 48000Hz 7.1 float
Sep 21, 2022 09:23:31.918 [7496] DEBUG - [MPVEngine/mpv] swresample: Remix: 5.1 -> 7.1
Sep 21, 2022 09:23:31.919 [7496] DEBUG - [MPVEngine/mpv] af: [out] 48000Hz 7.1 8ch float

Plex Media Player log snippet trying to play the same file, which you can see succeeds in 175400Hz playback instead of converting to 48Hz.

2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad: Codec list: 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad:     flac - FLAC (Free Lossless Audio Codec) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad:     flac - FLAC (Free Lossless Audio Codec) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad: Opening audio decoder flac 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad: Requesting 1 threads for decoding. 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ad: Selected audio codec: flac (FLAC (Free Lossless Audio Codec)) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - cplayer: Starting playback... 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - af: Audio filter chain: 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - af:   [in] 176400Hz 5.1 6ch s32 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - af:   [out] 176400Hz 5.1 6ch s32 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - af:   [ao] 176400Hz 5.1 6ch s32 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao: Trying audio driver 'wasapi' 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: requested format: 176400 Hz, 5.1 channels, s32 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: No device specified. Selecting default. 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Selecting device '{602e80d7-994e-430d-b84a-1c79ad0c6a76}' (DENON-AVRHD (NVIDIA High Definition Audio)) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Monitoring changes in device {0.0.0.00000000}.{602e80d7-994e-430d-b84a-1c79ad0c6a76} 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 5.1 s32 (32/32 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/32 bits) @ 48000hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 48000hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 44100hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 96000hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 88200hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 192000hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 32000hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 22050hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 11025hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 8000hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 16000hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 352800hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying stereo s32 (32/24 bits) @ 384000hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 5.1 s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 7.1 s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 6.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying mono s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 2.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 4.0 s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 5.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 3.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 3.0(back) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying quad s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying quad(side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 3.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 5.0(side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 4.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 5.1(side) s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 6.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 6.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 6.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 6.1(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 7.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 7.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 7.1(wide) s32 (32/24 bits) @ 176400hz (exclusive) -> ok 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying 7.1(wide-side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying empty s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying octagonal s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Channel layouts: 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - stereo 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 5.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 7.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 4.0 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - quad 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 5.1(side) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 7.1(wide) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: result: 5.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Accepted as 5.1 s32 @ 176400hz -> 5.1 s32 (32/24 bits) @ 176400hz (exclusive) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Device period: 10 ms 
2022-09-21 09:50:06 [ ERROR ] PlayerComponent.cpp @ 604 - ao/wasapi: Error initializing device: AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED (0x88890019) 
2022-09-21 09:50:06 [ WARN  ] PlayerComponent.cpp @ 602 - ao/wasapi: This appears to require a weird Windows 7 hack. Retrying. 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Device period: 10 ms 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Buffer frame count: 1776 (10 ms) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: IAudioClock::GetFrequency gave a frequency of 176400. 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: device buffer: 1776 samples. 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: using soft-buffer of 35280 samples. 
2022-09-21 09:50:06 [ INFO  ] PlayerComponent.cpp @ 600 - cplayer: AO: [wasapi] 176400Hz 5.1 6ch s32 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - cplayer: AO: Description: Windows WASAPI audio output (event mode) 

Ok so spotted the difference, HTPC wasn’t using exclusive mode. Selecting that in settings now has the right range but it’s now converting to stereo.

Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] af: [userspeed] 176400Hz 5.1 6ch s32
Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] af: [userspeed] (disabled)
Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] af: [convert] 176400Hz 5.1 6ch s32
Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] ao: Trying audio driver 'wasapi'
Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] ao: Using preferred device '{602e80d7-994e-430d-b84a-1c79ad0c6a76}'
Sep 21, 2022 09:54:18.833 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: requested format: 176400 Hz, 5.1 channels, s32
Sep 21, 2022 09:54:18.835 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Selecting device by id: '{602e80d7-994e-430d-b84a-1c79ad0c6a76}'
Sep 21, 2022 09:54:18.835 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Selecting device '{602e80d7-994e-430d-b84a-1c79ad0c6a76}' (DENON-AVRHD (NVIDIA High Definition Audio))
Sep 21, 2022 09:54:18.836 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Monitoring changes in device {0.0.0.00000000}.{602e80d7-994e-430d-b84a-1c79ad0c6a76}
Sep 21, 2022 09:54:18.843 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.1 s32 (32/32 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.843 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/32 bits) @ 48000hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.843 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 48000hz (exclusive) -> ok
Sep 21, 2022 09:54:18.844 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 44100hz (exclusive) -> ok
Sep 21, 2022 09:54:18.844 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 96000hz (exclusive) -> ok
Sep 21, 2022 09:54:18.844 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 88200hz (exclusive) -> ok
Sep 21, 2022 09:54:18.844 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 192000hz (exclusive) -> ok
Sep 21, 2022 09:54:18.844 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.845 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 32000hz (exclusive) -> ok
Sep 21, 2022 09:54:18.845 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 22050hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.845 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 11025hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.845 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 8000hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.845 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 16000hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.846 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 352800hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.846 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying stereo s32 (32/24 bits) @ 384000hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.846 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.1 s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.846 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 7.1 s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.846 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 6.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying mono s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 2.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 4.0 s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 3.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.847 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 3.0(back) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying quad s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying quad(side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 3.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.0(side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 4.1 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.848 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 5.1(side) s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 6.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 6.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 6.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 6.1(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 7.0 s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.849 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 7.0(front) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 7.1(wide) s32 (32/24 bits) @ 176400hz (exclusive) -> ok
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying 7.1(wide-side) s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying empty s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying octagonal s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Disabling multichannel output.
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Channel layouts:
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - stereo
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 5.1
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 7.1
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 4.0
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - quad
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 5.1(side)
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 7.1(wide)
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: result: stereo
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Accepted as stereo s32 @ 176400hz -> stereo s32 (32/24 bits) @ 176400hz (exclusive)
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Device period: 10 ms
Sep 21, 2022 09:54:18.874 [4088] ERROR - [MPVEngine/mpv] ao/wasapi: Error initializing device: AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED (0x88890019)
Sep 21, 2022 09:54:18.874 [4088] WARN - [MPVEngine/mpv] ao/wasapi: This appears to require a weird Windows 7 hack. Retrying.
Sep 21, 2022 09:54:18.874 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Device period: 10 ms
Sep 21, 2022 09:54:18.904 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Buffer frame count: 1776 (10 ms)
Sep 21, 2022 09:54:18.904 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: IAudioClock::GetFrequency gave a frequency of 176400.
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: device buffer: 1776 samples.
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: using soft-buffer of 35280 samples.
Sep 21, 2022 09:54:18.905 [4088] INFO - [MPVEngine/mpv] cplayer: AO: [wasapi] 176400Hz stereo 2ch s32
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] cplayer: AO: Description: Windows WASAPI audio output (event mode)
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] autoconvert: inserting resampler
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] swresample: format change, reinitializing resampler
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] swresample: 176400Hz 5.1 s32 -> 176400Hz stereo s32
Sep 21, 2022 09:54:18.905 [4088] DEBUG - [MPVEngine/mpv] swresample: Remix: 5.1 -> stereo
Sep 21, 2022 09:54:18.906 [4088] DEBUG - [MPVEngine/mpv] af: [out] 176400Hz stereo 2ch s32

Looks like Plex Media Player is picking a better match as it didn’t disable multi channel output:

Plex Media Player

2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Trying octagonal s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Channel layouts: 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - stereo 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 5.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 7.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 4.0 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - quad 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 5.1(side) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi:  - 7.1(wide) 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: result: 5.1 
2022-09-21 09:50:06 [ DEBUG ] PlayerComponent.cpp @ 598 - ao/wasapi: Accepted as 5.1 s32 @ 176400hz -> 5.1 s32 (32/24 bits) @ 176400hz (exclusive) 

Plex HTPC

Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Trying octagonal s32 (32/24 bits) @ 176400hz (exclusive) -> unsupported
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Disabling multichannel output.
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Channel layouts:
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - stereo
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 5.1
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 7.1
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 4.0
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - quad
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 5.1(side)
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi:  - 7.1(wide)
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: result: stereo
Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Accepted as stereo s32 @ 176400hz -> stereo s32 (32/24 bits) @ 176400hz (exclusive)

So the stereo output seems to be because of:

Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: Disabling multichannel output.

Which results in:

Sep 21, 2022 09:54:18.850 [4088] DEBUG - [MPVEngine/mpv] ao/wasapi: result: stereo

Looks like this is triggered by the setup of MPV here:

and called from:

Which was added by this commit:

From what I can tell the version of mpv used by Plex Media Player (mpv 53a7eec (C) 2000-2017 mpv/MPlayer/mplayer2 projects) is very old (2017) and likely pre-dates this change where as HPTC is a relatively recent (mpv 0.34.0-UNKNOWN, ffmpeg a48fbc4-4359)

This means that if auto-safe is enabled, which is the default setting for audio-channels, we’ll only get stereo.

Creating an mpv.conf that overrides this with layouts that my receiver supports fixed the issue fully.

[default]
audio-channels=7.1,7.1(wide),5.1,4.0,quad,stereo

A safer default for most AV receivers would be:

[default]
audio-channels=7.1,5.1,stereo

Seems like this fix in mpv is actually a regression to me.

Hope this helps others.

3 Likes

Since you’ve tracked this all down, it’s likely worth checking to see if there is an existing GHI for this topic in the MPV repo and if not, create one. If the developers agree with you in that this is not the intended behavior, they may fix it.

Issue raised: HDMI output defaulting to stereo in exclusive mode · Issue #10668 · mpv-player/mpv · GitHub

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.