Vero4k - audio stuttering

Hello,
has anyone encountered audio stuttering/choppy while playing videos?
Vero4k, latest OSMC with applied fix because of “HDMI out of range” problem. Movies are stored on 2.5" HDD connected through USB to Vero4k.

What is happening?
There is audio stuttering/choppy while playing videos. The picture fluently plays, only audio is choppy. Like you rapidly pause and unpause playback. It starts randomly, mainly after first few minutes of playing. The only thing which helps is to stop playback and then play it again. Or just leave it play, it mostly goes off by itself after 20-30 seconds. Sometimes it happens even multiple times (2-3 times) during one video, but mostly only once.
I am encountering this more or less for few months, probably from July or August update.

When it is happening?
It happens randomly, regardless of video/audio codec (h264, h265, AAC, MP3) - but it never happened while watching 1080p BD rips in h264 or h265 with DD 5.1 or DTS audio. But I have encountered it on various videos encoded in h264, h265 with MP3 or AAC audio.

Here are some logs:
https://paste.osmc.tv/ahajarejaf
…in this one, I activated logging in KODI at 20:39:46.092 T:4078555728.
Audio stuttering happens at timestamp Nov 21 20:42, while playing file “Ministri.s01e07”
then at Nov 21 21:05, while playing file “Ministri.s01e08” and at 21:47:28.166 T:4078555728, while playing file “Ministri.s01e09”

In all 3 cases, there is something like weird syncing errors:

21:47:28.673 T:4078555728 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
21:47:28.779 T:4053918464 DEBUG: ActiveAE::SyncStream - average error of -174.201014, start adjusting
21:47:28.779 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -6.201014 below threshold of 30.000000
21:47:28.829 T:4033868544 DEBUG: CEGLNativeTypeAmlogic: Detected HDMI switch
21:47:29.804 T:3526365952 DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-21930.803280, adjusted:-21930.803280
21:47:30.828 T:3526365952 DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-11113.396428, adjusted:-11113.396428
21:47:33.458 T:3476861696 DEBUG: CPullupCorrection: detected pattern of length 1: 40000.00, frameduration: 40000.000000
21:47:58.426 T:3517977344 DEBUG: Thread JobWorker 3517977344 terminating (autodelete)
21:47:58.426 T:3460084480 DEBUG: Thread JobWorker 3460084480 terminating (autodelete)
21:47:58.452 T:3505898240 DEBUG: Thread JobWorker 3505898240 terminating (autodelete)
21:49:55.215 T:3526365952 DEBUG: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-30346.151889, adjusted:-30346.151889
21:49:58.347 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -128.758024 above threshold of 100.000000
21:49:58.347 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -2.758024 below threshold of 30.000000
21:49:59.445 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -640.724390 above threshold of 100.000000
21:49:59.976 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -10.724390 below threshold of 30.000000
21:50:01.017 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -1186.267980 above threshold of 100.000000
21:50:01.648 T:4053918464 DEBUG: ActiveAE::SyncStream - average error -10.267980 below threshold of 30.000000
21:50:01.805 T:4078555728 DEBUG: LIRC: Update - NEW at 272943963:a4 0 KEY_PLAYPAUSE linux-input-layer (KEY_PLAYPAUSE)
21:50:01.806 T:4078555728 DEBUG: OnKey: homepage (0xea) pressed, action is PlayPause

…until I paused it.

https://paste.osmc.tv/ohaburulel
…in this one, it happens on Nov 22 during 17:06 - 17:10, while playing file “Ministri.s01e09” and “Ministri.s01e07”

But all those files plays okay on my PC with MPC-HC.
And to make it more amusing :slight_smile: …now I left logging enabled, restart Vero4k and now it plays all three files without problems.
Maybe some issue which emerge only after longer period of time while Vero4k is running? Because also that “HDMI out of range” problems was happen after longer time after Vero4k’s restart. One day you restarted it, watch some videos, then turn off TV and when you want to watch videos just the day after, the issue happened.

Try playing the file locally if it happens again.

Today I tested it.
I have played it from local storage (eMMC in vero4k) and also from external 2.5" HDD from which I usually play back files.
I have uploaded logs from today here:
https://paste.osmc.tv/zibarivota
I have enabled logging at timestamp 16:41:01.258 T:4079702608 and play file “Ministri.s01e09.mp4” from internal storage at 16:42:56.700 T:3477074688, which I used as test file because I have encoutered this problem while playing it.

Then I played the same file from external 2.5" HDD from which I usually play back files at 17:12:36.349 T:4079702608

Both files, from internal storage and from external HDD plays flawlessly.
For now, I will keep logging enabled and will mark the time when it returns, so we can track it in the logs.

Thanks

So far, tested with logging enabled, all is playing okay. I dont understand. I will contiue testing.