Useful or not, from you.
xbmc FireTV 4K Audio out of sync after skipping

<!--- Please fill out this template to the best of your ability. You can always edit this issue once you have created it. --> <!--- Read the following link before you create a new problem report: https://kodi.wiki/view/HOW-TO:Submit_a_bug_report -->

Bug report

Describe the bug

Here is a clear and concise description of what the problem is: <!--- Provide a more detailed introduction to the issue itself, and why you consider it to be a bug --> <!--- A bug report that is not clear will be closed --> <!--- Put your text below this line --> I have Kodi 18.2 RC (Nightly 20190222) running on a FireTV 4K 3rd generation. Previously I used 18.0, 18.1 and other nightlies, the issue was the same)

I play videos from my NAS (over NFS). If I start at the beginning, audio and video are in sync. As soon as I skip forward (or backward), audio and video are out of sync (audio is about 5 to 10 seconds behind video). If I start a movie in the middle, audio and video are also out of sync.

Videos are from onlinetvrecorder. Spec: H264 - MPEG-4 AVC (part 10) H264 720x576 px 25 fps MP3 audio (Stereo, 48 kHz)

Expected Behavior

Here is a clear and concise description of what was expected to happen: <!--- Tell us what should happen --> <!--- Put your text below this line --> Audio and video should stay in sync after skipping forward/backward.

Actual Behavior

<!--- Tell us what happens instead --> <!--- Put your text below this line --> Audio and video are out of sync after skipping.

Possible Fix

<!--- Not obligatory, but suggest a fix or reason for the bug --> <!--- Put your text below this line --> No Idea. This issue does not occur on MrMC (but I have some other issues with MrMc and prefer Kodi)

To Reproduce

Steps to reproduce the behavior: <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> <!--- Put your text below this line -->

  1. Install Kodi 18 nightly on FireTV 4K 3rd generation
  2. Play a H264 movie (e.g. from onlinetvrecorder)
  3. Skip a few steps forward
  4. Audio and video are out of sync

Debuglog

<!--- Put your text below this line --> <!--- A debuglog is always mandatory when creating an issue. Provide one! --> The debuglog can be found here: https://paste.kodi.tv/opogohoset.kodi

I started Kodi, played "The Big Bang Theory - S12E08.avi", watched about 30 seconds (sync was fine) and then skipped forward 10 minutes --> audio/video were out of sync

Screenshots

Here are some links or screenshots to help explain the problem: <!--- Put your text below this line -->

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help: <!--- How has this bug affected you? What were you trying to accomplish? --> <!--- Put your text below this line -->

Your Environment

Used Operating system: <!--- Include as many relevant details about the environment you experienced the bug in --> <!--- Put your text below this line. Checkboxes can easily be ticked once issue is created -->

  • [x] Android

  • [ ] iOS

  • [ ] Linux

  • [ ] OSX

  • [ ] Raspberry-Pi

  • [ ] Windows

  • [ ] Windows UWP

  • Operating system version/name: Fire OS 6.2.5.8

  • Kodi version: Kodi 18.2-RC Nightly 20190222

<!--- End of this issue --> note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

That's a useful answer
Without any help

I fixed this issue with disabling hardware acceleration for certain playbacks: https://forum.kodi.tv/showthread.php?tid=340822&pid=2840569#pid2840569

I use this decoder-filter.xml:

<decoderfilter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.AVC</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.DVAV.SER</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.DVHE.STH</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.DVHE.STN</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.H263</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.HEVC</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.MPEG2</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.MPEG4</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.VP9</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.MTK.VIDEO.DECODER.VPX</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.dolby.ac3.decoder</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.dolby.eac3.decoder</name>
        <allowed>true</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>true</dvd-allowed>
        <min-height>600</min-height>
    </filter>
    <filter>
        <name>OMX.google.aac.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.amrnb.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.amrwb.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.g711.alaw.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.g711.mlaw.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.h263.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.h264.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.mp3.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.mpeg2.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.mpeg4.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.opus.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.raw.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.vorbis.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.vp8.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
    <filter>
        <name>OMX.google.vp9.decoder</name>
        <allowed>false</allowed>
        <stills-allowed>false</stills-allowed>
        <dvd-allowed>false</dvd-allowed>
        <min-height>0</min-height>
    </filter>
</decoderfilter>

In Short: it disables hardware acceleration for resolutions below 600px height, which can be perfectly decoded in software.