Setup
- Device: Ugoos AM6B+
- CoreELEC: 22.0-Piers RC2
- AVR: Marantz Cinema 30 (HDMI, passthrough enabled, TrueHD passthrough enabled)
- Display: Valerion VisionMaster Max projector
- Adjust display refresh rate: On start/stop
Problem
When I play a 1080p Blu-ray rip with a Dolby TrueHD (or TrueHD Atmos) track by passthrough, the audio starts slightly out of sync with the video: [audio early / audio late, roughly how much]. If I pause and resume once, sync is correct for the rest of the film.
What does and doesn’t trigger it
- Affected: 1080p video with TrueHD / TrueHD Atmos passthrough. Video codec of the affected files: H.264
- Not affected: AC3 5.1 tracks on the same kind of file.
- Not affected: 4K files with TrueHD.
- Output resolution doesn’t matter: it happens whether Kodi outputs native 1080p or upscales to 4K.
Steps to reproduce
- Enable passthrough with TrueHD.
- Play a 1080p file with a TrueHD track from the beginning.
- Audio is out of sync from the first frame.
- Pause, wait about a second, resume. Audio is now in sync and stays that way.
Things I tried that made no difference
- Delay after change of refresh rate at 4 to 5 seconds, and also off
- Keep audio device alive: off
- A larger video cache via advancedsettings.xml (since removed)
An observation that may help
I’m using a small service add-on as a workaround. It waits until playback has been running for 1 second, pauses for 3 seconds, then resumes. That fixes sync every time.
Regression from 21.3
The same box, AVR, projector, cables and file start in sync on CoreELEC 21.3 NG (booted from a separate USB drive). On 22 RC2 the audio is out of sync on every start.
Logs
Debug log with the “video” and “audio/video timing” components enabled, covering playback start, a few seconds out of sync, then a manual pause/resume: https://paste.coreelec.org/3/fue7yHcU
I can test nightlies or provide a sample if that helps.