v18 PCM 3.0 Output from HDMI
#16
(2021-05-05, 10:35)black_eagle Wrote: Thanks.  Two things there stood out to me.  Firstly, HDMI - ARC AV AMP.  Makes me wonder if you are connected PC-->TV-->AMP ?  ARC has caused me issues in the past so if you have it enabled, maybe try without it and see if that makes a difference.

Secondly, this bit is generic to all OS's and tells me that Kodi has seen the correct channel layout (we will have got it from the hint, which does contain the correct channel map).

xml:
2021-05-02 21:14:33.645 T:2032 INFO <general>: CDVDAudioCodecFFmpeg::GetChannelMap - FFmpeg reported 3 channels, but the layout contains 0 trying hints
2021-05-02 21:14:33.645 T:2032 INFO <general>: Creating audio stream (codec id: 65536, channels: 3, sample rate: 48000, no pass-through)

But, when WASAPI returns the channel layout we can use it gives us this.

xml:
2021-05-02 21:14:33.890 T:5748 DEBUG <general>: CActiveAESink::OpenSink - trying to open device WASAPI:default
2021-05-02 21:14:33.979 T:5748 INFO <general>: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE4MSB, 48000, 4
2021-05-02 21:14:33.979 T:5748 DEBUG <general>: CActiveAESink::OpenSink - WASAPI Initialized:
2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Output Device : default
2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Sample Rate : 48000 2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Sample Format : AE_FMT_S24NE4MSB
2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Channel Count : 4 2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Channel Layout: FL, FR, BL, BR
2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Frames : 2400 2021-05-02 21:14:33.979 T:5748 DEBUG <general>: Frame Size : 16

Does directsound do the same thing?  I know that's not recommended for Win but might be worth a try.  I can try and add some more logging to the wasapi stuff and get another test build which might show more clearly if indeed kodi requests the right layout and it's the win driver giving us the incorrect one back but this is shooting in the dark a little as I can't test it!

Thank you for looking at this. The Amp name is confusing, no ARC involved, the brand is Arcam.

I did discover something interesting about this issue by setting various fixed channel configs with Wasapi audio. None of the odd channel numbers detect correctly:
2.1 outputs 4.0
3.0 outputs 4.0 (Same problem as this test file)
5.0 outputs 5.1
7.0 outputs 7.1

When using the "Optimal" setting mono PCM media is output as stereo and 6.1 PCM is output as 7.1 (Back left maps to center back).

The other things that is interesting is both 4.0 and 3.1 work correctly and the amp detects between them correctly. If I set a fixed 3.1 config then that clip plays correctly and upmixes correctly so not very user friendly but it is a good workaround. I suppose no one likes logic exceptions but 3.1 would be a much better output choice for a 3.0 signal than 4.0.

My hardware is Intel 8th gen I3 integrated graphics (UHD 630). Can anyone else using Windows with an AVR confirm what their results are for the odd fixed speaker configs above?

Directsound just seems to use stereo so seems to be a non starter. Edit: You were right looks like Directsound support far fewer channel configs than KS/WASAPI:
https://docs.microsoft.com/en-us/windows...nel_config

Does the fallback to hints change also effect the music player? I tried with some 4 channel Flac with the WAVE_FORMAT_EXTENSIBLE header set for 3.1 and 4.0 (SL/SR) and Kodi did not change the channel mapping.
Reply


Messages In This Thread
PCM 3.0 Output from HDMI - by Krobar - 2021-04-24, 11:04
RE: PCM 3.0 Output from HDMI - by FXB78 - 2021-04-24, 15:23
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-04-25, 12:36
RE: PCM 3.0 Output from HDMI - by fritsch - 2021-05-01, 22:57
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-02, 15:54
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-02, 19:29
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-02, 21:40
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-04, 09:41
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-04, 09:49
RE: PCM 3.0 Output from HDMI - by HomerJau - 2021-05-04, 10:28
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-04, 20:34
RE: PCM 3.0 Output from HDMI - by HomerJau - 2021-05-04, 10:40
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-04, 12:40
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-04, 20:43
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-05, 10:35
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-05, 20:40
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-07, 09:42
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-07, 11:45
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-07, 13:21
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-12, 14:10
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-12, 18:58
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-15, 16:13
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-16, 11:50
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-16, 14:13
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-16, 15:53
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-17, 09:45
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-21, 10:38
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-21, 22:02
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-05-23, 12:25
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-23, 13:34
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-06-06, 12:55
RE: PCM 3.0 Output from HDMI - by HeresJohnny - 2021-05-23, 22:00
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-05-25, 10:47
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-06-06, 17:36
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-06-06, 17:52
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-06-07, 12:10
RE: PCM 3.0 Output from HDMI - by Krobar - 2021-06-07, 22:16
RE: PCM 3.0 Output from HDMI - by black_eagle - 2021-06-08, 10:54
Logout Mark Read Team Forum Stats Members Help
PCM 3.0 Output from HDMI0