8.0.2a frame jumps MPEG4 Live TV
8.0-8.0.1l Frame MPEG4 Live TV is all right
I can confirm this.
8.0.2a frame jumps MPEG4 Live TV
8.0-8.0.1l Frame MPEG4 Live TV is all right
I can confirm this.
For everyone who had problems with audio sync in Krypton builds. This advancedsettings works:
XML Display More<?xml version="1.0" encoding="UTF-8" ?> <advancedsettings> <video> <adjustrefreshrate> <override> <fps>23.976</fps> <refresh>24.0</refresh> </override> <override> <fps>25.000</fps> <refresh>50.0</refresh> </override> </adjustrefreshrate> <latency> <refresh> <rate>24</rate> <delay>0</delay> </refresh> <refresh> <rate>50</rate> <delay>-50</delay> </refresh> </latency> </video> </advancedsettings>
How can I test/check whether I need this or not? So far I haven't noticed audio issues, but I would like to make sure.
I noticed this affects only h264 streams. I wrote a patch (all parts were already available in internet), modified DVDVideoCodecAmlogic.cpp and BitstreamConverter.cpp, created function similarly to mpeg2_sequence_header in BitStreamConverter.cpp that detects correct aspect ratio from h264 stream.
It can be seen here Add aspect ratio detection for amcodec h264 · tarvip/SPMC@888e681 · GitHub IMHO it needs some work for upstream PR (need to split that huge function to smaller chunks, finish and use already existing SPS decoder instead the one I created), but not sure I have time for that.
I am using SPMC on Android (WeTek Hub) instead of LibreELEC/Kodi, but it should work also with LibreELEC/Kodi.
This also detects aspect ratio changes in the middle of stream, for example in my case some broadcasters are changing aspect ratio to 4:3 for 4:3 content and later changing back to 16:9.
I have been using this approach for more than 2 weeks, so far it seems to work fine.
Also added second patch that sets default aspect ratio to 16:9 for h264 SD content.
If we have h264 SD content assume it is widescreen · tarvip/SPMC@e7ac400 · GitHub
In my case most of the broadcasts are actually 16:9 not 4:3, without this patch first few frames were still shown as 4:3 and then correct ascpect ratio was detected and enabled.