Kodi Community Forum

Full Version: RPi2/3: OMXPLAYER with "Adjust Display Refresh Rate" enabled = BROKEN
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, I'm wondering if anyone has experienced this issue and knows of a fix. I don't believe this happened to me with KODI 16 even once, but with KODI 17 I'm noticing that when I go to watch a movie with the Dolby TrueHD Atmos track the speakers are sometimes mapped incorrectly. For example, the rear surrounds are coming out of the front speakers [Edit: After further testing I'm not entirely sure if that's the case. The problem may only be with the center channel] and I have no center channel voices. The only fix is to stop/restart or reboot and try again. It doesn’t happen all the time but enough to be annoying.

Setup: RPi3, LibreELEC 8.0.x @ 5.1, Pioneer VSX-824-K.

Edit: Title changed. The issue appears to be with OMXPLAYER and enabling the "Adjust Display Refresh Rate" setting. See below.
Are you connected to Pioneer through HDMI?
Is passthough disabled? What is number of channels set to?
Or is passthrough enabled with AC3 transcode enabled?

Do you get the same behaviour (with same audio settings) on Zotac?
(2017-09-03, 14:00)popcornmix Wrote: [ -> ]Are you connected to Pioneer through HDMI?
Is passthough disabled? What is number of channels set to?
Or is passthrough enabled with AC3 transcode enabled?

Do you get the same behaviour (with same audio settings) on Zotac?

Update: It seems that enabling "Stereo upmix" in the Audio and Subtitle Settings fixes the problem. I've tested 7 different TrueHD 7.1 Atmos films and they've played without issue, so far.

Connected via HDMI, KODI set to 5.1. The same behavior was exhibited with passthrough on and off. I haven't tried the Zotac on the 5.1 setup.
Update: Looks like that didn't solve it. After viewing a few trailers and bumpers with CinemaVision, the center channel for the main feature (Mission Impossible: Rogue Nation) was silent/missing. When I disabled "Stereo Upmix" while the movie was playing everything suddenly played as normal.

Edit: Refresh syncing disabled by a CinemaVision action file prior to the movie trailers and then enabled just before the main feature is set to begin. Cf. Post 6.
Update: With passthrough disabled it has now happened to the DTS-HD Master Audio 5.1 track on War of the Worlds. No center channel. Once again, enabling or disabling "Stereo upmix" in the Audio and Subtitle Settings fixes the problem ... until it happens again.
I think I may have found a clue. I noticed that if "Adjust Display Refresh Rate" is set to "OFF" then the issue appears to go away. When set to "ON START / STOP" the issue returns. I've run the following set of four tests using films encoded with a TrueHD 7.1 Atmos track. The 5th test was with films encoded with DTS-HD 7.1. Audio settings have been reset back to default, number of channels set to 5.1:

* Test 1 - Atmos - Refresh set to "ON START / STOP": 7 out of 10 tests failed (no center channel)
* Test 2 - Atmos - Refresh set to "OFF": 0 out of 10 tests failed (center channel present)
* Test 3 - Atmos - Refresh set to "ON START / STOP"​: 8 out of 10 tests failed (no center channel)
* Test 4 - Atmos - Refresh set to "OFF"​: 0 out of 10 tests failed (center channel present)
* Test 5 - DTS-HD - Refresh set to "ON START / STOP"​: 5 out of 10 tests failed (no center channel)
When you have no centre channel can you try power cycling receiver?
Also try unplugging and replugging the HDMI cable from Pi to receiver.
Does either of these cause centre channel to return?
I'll give that a try tonight, though I suspect the issue will remain. I did some googling and saw that this exact bug was also reported over on the OSMC forums (link below). I'll try the recommended setting there to see if it helps (using MMAL instead of OMXPLAYER). If that works, looks like the problem is with OMXPLAYER not wanting to play nice when Adjust Display Refresh Rate is enabled.

https://discourse.osmc.tv/t/audio-downmi...-v17/22323
Unplugging the cable and power cycling the receiver had no effect, but disabling OMXPLAYER and using MMAL works fine. I tested 10 Dolby TrueHD 7.1 and DTS-HD 7.1 movies with "Adjust Display Refresh Rate" set to "ON START / STOP" and they all played without issue when MMAL was used.