I know you have your hands full with more important issues right now, but I was trying to find an audio delay setting for my setup today wanted to document my findings somewhere in case you do decide to work on this at some point.
Further down, I attached videos and logs that demonstrate the issue. One of the videos is a screen capture of the catchin' sync app that shows the audio delays precisely.
Describe the bug
I noticed that the audio sync delay doesn't stay consistent and instead can vary from -200ms to +55ms after seeking or pausing/resuming.
A consistent delay isn't a big deal, because it can be compensated easily in an AVR or in the Kodi settings.
But an inconsistent delay that varies in such a large range and can change from negative to positive can't be compensated.
Another user on discord reported that they observed the same issue. So, it's not isolated to my setup.
What do I expect to happen?
Ideally, I would expect the audio delay to remain consistent when the video starts playing, when it is paused+resumed and after seeking.
This way it can be measured and compensated for.
What is actually happening?
The audio sync delay stays consistent as long as you don't seek or pause the video.
But doing one of these actions changes the delay to a very different value, which stays fairly consistent until the next action.
When I initially start playing a video the audio arrives about 100-200ms after the video (in catchin' sync it's a -200ms adjustment).
If I pause and resume, the audio arrives 30-50ms before the video (in catchin' sync it's a +50ms adjustment).
Seeking seems to produce the most inconsistent change in the delay. During most of my test it was -100ms or more. And was consistently negative (audio behind video).
Pausing and resuming was creating a delay in a more narrow range. Frequently in the +40ms to +55ms range (audio ahead of video).
Video of the problem
I used the app catchin' sync, which lets you record a video of an audio sync test file playing on the TV. The app then shows you both the video and an audio waveform. You can align the audio and video to determine the exact audio delay in milliseconds.
In the video I panned up whenever I paused and panned left whenever I skipped backwards to make it easier to scrub through the video and find relevant moments.
How to reproduce
You can use the original video of my TV with the Catchin' Sync app and the log to analyze the issue as it happened on my setup.
Or you can reproduce it yourself by following these steps:
- Download the Catchin' Sync app to precisely measure the audio delay
- Record a video in Catchin' Sync
- Play
Spears & Munsil Ulta HD Benchmark (2023) - Disc 1 - 03871 (2160p DV - 23.976fps)
- Pause for 10s
- Resume and wait another 10-20s
- Seek back
- Let it play for 10-20s
- Pause for a few seconds
- Resume for a few seconds
- Scrub through the video and measure the audio delay after each action
If you don't have the Spears & Munsil disc, you can use one of these free ones, but they don't include DV or TrueHD / Atmos audio:
Information
- Core ELEC Version:
CoreELEC (p3i): 21.3-Omega_p3i_T3_20260307222442 (Amlogic-ng.arm)
- Kodi Settings:
- Reset
System -> CoreELEC to defaults
- Audio Fixes mode::
Off
- Reset PTS offset on seek:
On
- PM4K Alternate Seek:
Off
- Logging:
Debug with Audio, Video and A/V timing components
- TV Setup:
- Streaming Box: Ugoos AM6B+ connected directly to HDMI 1
- TV: LG C5
- TV Audio output: Set to
TV (no soundbar to isolate the issue)
- Test File:
- File:
Spears & Munsil Ulta HD Benchmark (2023) - Disc 1 - 03871 (2160p DV - 23.976fps)
- Audio Track:
True HD 7.1 with Atmos (First track)
Log file
Context
Workarounds I tried
I tried it with LAV Full and alternate seek enabled, but these had the same inconsistencies.
What kind of solution I am hoping for
I understand that this is a very complex issue and I don't expect the audio delay to be completely gone, but I am hoping it would be possible to make it more consistent.
Perhaps it would be possible to analyze what is happening after pause+resume and try to do the same thing after seeking.
Or perhaps we could try adding an auto-pause after seeking.
Ideally, the delay would stay consistently negative or positive so that at least some compensation could be applied to it.
Thank you so much for considering this issue.
I know you have your hands full with more important issues right now, but I was trying to find an audio delay setting for my setup today wanted to document my findings somewhere in case you do decide to work on this at some point.
Further down, I attached videos and logs that demonstrate the issue. One of the videos is a screen capture of the catchin' sync app that shows the audio delays precisely.
Describe the bug
I noticed that the audio sync delay doesn't stay consistent and instead can vary from
-200msto+55msafter seeking or pausing/resuming.A consistent delay isn't a big deal, because it can be compensated easily in an AVR or in the Kodi settings.
But an inconsistent delay that varies in such a large range and can change from negative to positive can't be compensated.
Another user on discord reported that they observed the same issue. So, it's not isolated to my setup.
What do I expect to happen?
Ideally, I would expect the audio delay to remain consistent when the video starts playing, when it is paused+resumed and after seeking.
This way it can be measured and compensated for.
What is actually happening?
The audio sync delay stays consistent as long as you don't seek or pause the video.
But doing one of these actions changes the delay to a very different value, which stays fairly consistent until the next action.
When I initially start playing a video the audio arrives about 100-200ms after the video (in catchin' sync it's a
-200msadjustment).If I pause and resume, the audio arrives 30-50ms before the video (in catchin' sync it's a
+50msadjustment).Seeking seems to produce the most inconsistent change in the delay. During most of my test it was
-100msor more. And was consistently negative (audio behind video).Pausing and resuming was creating a delay in a more narrow range. Frequently in the
+40msto+55msrange (audio ahead of video).Video of the problem
I used the app catchin' sync, which lets you record a video of an audio sync test file playing on the TV. The app then shows you both the video and an audio waveform. You can align the audio and video to determine the exact audio delay in milliseconds.
In the video I panned up whenever I paused and panned left whenever I skipped backwards to make it easier to scrub through the video and find relevant moments.
DebugwithAudio, Video and A/V timingcomponentsHow to reproduce
You can use the original video of my TV with the Catchin' Sync app and the log to analyze the issue as it happened on my setup.
Or you can reproduce it yourself by following these steps:
Spears & Munsil Ulta HD Benchmark (2023) - Disc 1 - 03871 (2160p DV - 23.976fps)If you don't have the Spears & Munsil disc, you can use one of these free ones, but they don't include DV or TrueHD / Atmos audio:
Information
CoreELEC (p3i): 21.3-Omega_p3i_T3_20260307222442 (Amlogic-ng.arm)System -> CoreELECto defaultsOffOnOffDebugwithAudio, Video and A/V timingcomponentsTV(no soundbar to isolate the issue)Spears & Munsil Ulta HD Benchmark (2023) - Disc 1 - 03871 (2160p DV - 23.976fps)True HD 7.1 with Atmos (First track)Log file
DebugwithAudio, Video and A/V timingcomponentsContext
Workarounds I tried
I tried it with
LAV Fullandalternate seekenabled, but these had the same inconsistencies.What kind of solution I am hoping for
I understand that this is a very complex issue and I don't expect the audio delay to be completely gone, but I am hoping it would be possible to make it more consistent.
Perhaps it would be possible to analyze what is happening after pause+resume and try to do the same thing after seeking.
Or perhaps we could try adding an auto-pause after seeking.
Ideally, the delay would stay consistently negative or positive so that at least some compensation could be applied to it.
Thank you so much for considering this issue.