I would REALLY appreciate some help with a PCM sound problem I'm having. In fact, I will be happy to PayPal anyone who provides a solution or a patch with a $25 donation via PayPal for their trouble (please let me know if this is against the rules). I am at my wits end.
My entire library is encoded with Opus audio at 48khz. Playing any movie with a non-bitstreamed codec outputs as PCM, as you'd expect. According to Kodi and the log file, it is reading the stream at 48khz. The receiver is only getting 32khz, and is producing noisy (clipped) audio as a result.
Note that this only occurs with multichannel audio files. Stereo files play fine as 48khz. Bitstreamed/passthrough audio for DTS, TrueHD, etc also works fine.
Here a full debug log from playing a video with 7.1 Opus audio:
Here is an excerpt showing that the audio stream created is 48khz:
Kodi's CodecInfo showing 48khz: https://imgur.com/hBp9NWI
Yamaha Receiver showing 32khz: https://imgur.com/jZ8dFNP
Interestingly, the problem happens with audio set to "Fixed" as well.
- With audio set to Best Match and input file of 48khz, I get 32khz at the receiver
- With audio set to Fixed @ 48khz and input file of 48khz, I get 32khz at the receiver
- With audio set to Fixed @ 96khz and input file of 48khz, I get 64khz at the receiver (with stuttering, intermittent audio)
- With audio set to Fixed @ 192hz and input file of 48khz, I get 128khz at the receiver
So there is clearly something not lining up between what Kodi is requesting and what the Minix is outputting.
Device: MINIX U9-H
LibreELEC Version: 9.0 Alpha-8.90.4 (although the problem also happens on 8.3)
DTB file: gxm_q200_2g_minix_neo_u9.dtb
Receiver: Yamaha RX-V681
Speaker Configuration: 7.1.0
I don't know what else to look at. Again, I will send a $25 donation to anyone who can provide me a fix or a patch to resolve the issue. My next step is to try to save up for an NVIDIA Shield, but I know that has it's own issues. I'd rather not have to do that!
Edit: Replaced partial log with full log (thanks DaVu)