Posts by pec


    For everyone who had problems with audio sync in Krypton builds. This advancedsettings works:

    Download advancedsettings.xml for Krypton

    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.