I believe someone was needing different adjustments for 1080p and 4k on their system, but from CE all content has a default audio lag of 4 frames.
It may be so but at least on my system I canāt āseeā it. I mean, all my 1080p content, whatever the audio format is, is always in sync. Given the amount of video I watch, I would have quickly noticed.
Without the advancedsettings.xml tweak, the audio lag is hugely noticeable on every 2160 content.
So how come I donāt āseeā this 4 frames audio lag in 1080p content ?
This is a real question Iād like to understand
It is definitely odd, at least it can be adjusted per resolution now though.
I wonder if there is a link to video bitrate / buffers with 1080p typically being lower bitrate? But I have no real idea
edit: guess it could also be something related to your particular avr / tv as well
Unfortunately I donāt think so. My MKV extracts from BR with typical 23~27 Mbps (with peaks at 35) have no audio latency issue while 4K content at 19.2~19.5 Mbps immediately suffers from the very beginning.
For anyone that wants to test out some more changes
The default latency is already included and match with 99% of users hardware setup. So there is nothing todo at all when starting new CE setup.
Only for certain hardware setups a additional latency tweak is needed and therefore there is the advanced setting tweak. The real latency have to be checked by everyone itself with audi/video sync calibration files.
Maybe because float compare is not really working. Maybe the Kodi math utils float compare should be used instead.
These latency tuning settings completely pass me by. On a couple of N2ās connected to a soundbar using eARC on any 21/22 image, audio is always in sync. And I am quite sensitive to things going out of sync. Lucky me I guessā¦
Since latest nightly (tested with 20241129), all sync issues are resolved. I have not tested the nightly version just before that one, so it could potentially also have been fixed in the previous version as well.
Blu-ray mkv, UHD blu-ray MKV, Dolby Vision Fel, Dolby Vision Mel, regular HDR, 1080i tv shows, they are all in sync. Same for audio formats: Dolby Atmos True HD, DTX-X, Dolby Digital, stereo, all in sync. In my situation, there is no need for any manual adjustment. Thank you so much!
Used equipment: Ugoos AM6B+, LG G4, Sony Theatre Quad.
Just a quick +1. I only have issues with 2160p content, and have noticed 1080p movies seem to ājust workā. This is on high-end JVC projector connected to Marantz AVR - happy to give more details/tests/anything I can to do help if needed. [Edit: just updated to 1129 CE Nightly, so will need more tests to see if thatās helped - quote above was referring to pre 1129.]
FYI:
The latency tweak by resolution will be different since 20241204 because of the PR RenderManager: add latency tweak by resolution by Portisch Ā· Pull Request #26036 Ā· xbmc/xbmc Ā· GitHub
The XML need to be looking like this example now:
<advancedsettings>
<video>
<latency>
<!-- Default latency for all modes -->
<delay>10</delay>
<hdrextradelay>0</hdrextradelay>
<!-- Default latency for all modes with refresh rate 24Hz -->
<refresh>
<rate>24</rate>
<delay>25</delay>
</refresh>
<!-- Default latency for 1080p with refresh rate 24Hz -->
<refresh width="1920" height="1080">
<rate>24</rate>
<delay>75</delay>
</refresh>
<!-- Default latency for 2160p with refresh rate 24Hz -->
<refresh width="3840" height="2160">
<rate>24</rate>
<delay>150</delay>
</refresh>
</latency>
</video>
</advancedsettings>
Thatās great, does this also allow a distinction between 23.98Hz and 24.00Hz video modes? Or does it only accept whole numbers as the value?
Itās a float. And you can set <min> , <max>
as well already. Default it uses Ā±0.01 when not set.
So this should cover both fps:
<refresh width="3840" height="2160">
<min>23</min>
<rate>24</rate>
<max>25</max>
<delay>150</delay>
</refresh>
or exact:
<refresh width="3840" height="2160">
<rate>23.976</rate>
<delay>150</delay>
</refresh>
Before I test the new nightly with new latency settings, a quick question to make sure thereās no issue.
I donāt have any latency issue with 1080p files but letās pretend for a minute. I keep the original MKV files extracted from my BRs in a archives folder and I usually transcode these MKV files into smaller ones for day to day use. So a 2.35 aspect ratio movie with top/bottom black bars gets cropped to 1920x808. On some movies/series I need to crop 60/132/136/140/142 px and so on.
So are the settings rigid about resolutions (ie: requiring both width and height) or is it enough to specify just one?
Width is always common to every aspect ratio so 1920 and 3840 are always right no matter what the height is. It would be nice to be able to use just that
Yes, I had same idea last days. I will change it to
<refresh resolution="2160">
<rate>23.976</rate>
<delay>150</delay>
</refresh>
And it only uses the height, 2160, 1080, 720,ā¦
Since 20241106 this method is used!
Hi all, I have version 21.1 Nightly 20240527 and wanted to know if this version with the fixed audio delays is in the kodi update option as i had a couple of videos that where out of sync.
and the nightly still has the DV addon installed so is it ok to go and update or is there any issues i need to watch out for .
thanks
Sorry for the delay in my reply, life and all
Again, just to be clear, the āresolutionā attribute stands for screen resolution and not video height right? If thatās the case then this is perfect.
I ask to be sure because as mentioned before, width is always 1920, 3840 no matter what the height is when cropping black bars in movies. Iāll find some time today to try the latest nightly with the new XML settings.
Except with 4:3 sources
No, itās different. Height is āconstantā, width not. Like 3840x2160 and 4096x2160 itās only 2160 used.