Sound is delayed by whopping 300 ms when playing heavy MKV/H264 with PCM audio



I’ve already submitted an issue on Github, but I thouht I’d also post my issue here as well… Especially because there’s no officiall support for the Xbox version on Github.

Basically, I have some high bitrate mkv videos (BDRemux) with PCM audio streams in them, and I thought the problem was perhaps the USB speed, but nope. I have them on an SSD connected through a USB 3.0 enclosure, and VLC for Xbox plays them without any sound delay whatsoever. I would keep using VLC, but I don’t like it because it doesn’t have an option for changing TV framerate to the video’s respective framerate.

In Kodi, it absolutely doesn’t matter if I enable or disable any options whatsoever (such as: change TV framerate to match the video / on the contrary, adjust video and audio framerate for TV framerate / both / enabling or disabling passthrough, et cetera). The result is always that the sound is delayed by approximately 300 ms, so I have to manually “delay” it by negative 300 ms so that everything is synchronized.

Again, I thought it was because of the external enclosure / disk / USB poor speed, but nope, VLC doesn’t have any delays when playing those files at all. I just don’t wanna use VLC because it only supports 60 Hz and doesn’t change the TV framerate to such of the video. Again, in Kodi, it doesn’t matter if I do it or not, there is always ~300 ms audio delay unless I manually set 300 ms ahead for audio.

I’ve no idea about how it can be fixed, but I’ve made sure it’s not because of the supposedly low speed of my external enclosure / SSD in it / USB 3.0 as such, because the issue is not reproducing in VLC.

The Debug Log can be found here: https://drive.google.com/file/d/1219MTX_…sp=sharing

Please note, when creating the debug log, at first I played a few video files without any audio adjustments (and in that case the sound was delayed by 300 ms), then I globally switched the sound “delay” to negative 300 ms (i. e. 300 ms ahead) and also played a few videos after that (for a couple of minutes, sometimes with fast forwarding some of them). The issue of course was gone, but I don’t think it’s a cool solution to the problem that shouldn’t exist…

The MediaInfo of the files I play:

Any tips except for manually setting a negative 300 ms delay for the audio? I don’t think that’s how it’s supposed to work. If anything, I’m generally using the first audio track, but the issue is present in any. If you guys want a sample file, please tell me how I can send it confidentially (it’s not NFSW, but yet unpublished expensive content).

Also, for the reference, I have the very first Xbox One model that I pre-ordered in 2013 (Day One).