Issue with messed up playback an 1hr 40min into a file (file plays fine on non-kodi players)

  • Hello! So i have no idea what could be causing this tbh. I can also post this on a kodi forum if this is something better resolved there. However, I essentially was watching a movie and it was just fine until roughly 1:40:00 or so. Then, all of a sudden, it starts dropping like 9 out of 10 frames and playback is unwatchable due to how choppy and disjointed it is. I initially assumed it was an issue with the source file, however upon opening the file in mpv on arch linux, it played just fine. All the way through the point when it became choppy, the MPV playback remained smooth with no issues. I booted up kodi on the laptop, and then tried playing the movie, and then bam, became choppy at the EXACT same point. It is also perfectly replicable, so every time I use kodi on libreelec or kodi on laptop, it happens exactly at the same time. But on vlc or mpv, it does not become choppy. I have put the kodi log into the following paste, where there is definitely an error, I am just not usre how to decipher it! Thank you

    https://paste.libreelec.tv/devoted-seal.log


    CPU is intel n97, ram during the file playback is only 2/12gb used so it is not a ram issue like I had also thought.

    libreelec version here


    NAME="LibreELEC"
    VERSION="12.0.2"
    ID="libreelec"
    VERSION_ID="12.0"
    PRETTY_NAME="LibreELEC (official): 12.0.2"
    HOME_URL="https://libreelec.tv"
    BUG_REPORT_URL="https://github.com/LibreELEC/LibreELEC.tv"
    BUILD_ID="f3fdd11916f8a47dc5a11c3a4c99cb7c7ffac78b"
    LIBREELEC_ARCH="Generic.x86_64"
    LIBREELEC_BUILD="official"
    LIBREELEC_PROJECT="Generic"
    LIBREELEC_DEVICE="Generic"

    Edited once, last by CoolPenguin42: Merged a post created by CoolPenguin42 into this post. (July 29, 2025 at 5:05 AM).

  • Probably a wrongly encoded video:

    Code
    2025-07-28 20:44:47.627 T:1730    error <general>: GetPicture - avcodec_receive_frame returned failure 

    Try to re-encode the video, or transform into a different codec.

  • If the file glitches consistently in both LE and Kodi on Windows that might hint at a VAAPI hardware decoding issue. MPV is also a big fancy wrapper around libavcoded, but is probably using a different underlying version and/or is software decoding the file resulting in a different code path and capabilities. You can experiment in LE by disabling VAAPI hardware decoding. You can also experiment with an LE13 nightly which has newer kernel (drivers) and FFMpeg versions to see if newer is better (not always).

  • Upload a sample of the video (the part where the issue starts).

    Yes, here you go: https://www.dropbox.com/t/e9rTKpLRCcITMbNb

    Used the command

    ffmpeg -ss 01:38:35 -i <inputfile>.mkv -to 00:00:25 -c copy clip.mkv

    however, the clip DOES NOT exhibit the same issues as the source file does. It does not do the same stuttering that the source file did at all, it plays normally. So I am not sure what that means really.


    Probably a wrongly encoded video:

    Code
    2025-07-28 20:44:47.627 T:1730    error <general>: GetPicture - avcodec_receive_frame returned failure 

    Try to re-encode the video, or transform into a different codec.

    Interesting. It was a reencode from h264 to av1, never had a reencode issue before. I could try to reencode the file back to av1 or something and see if that will fix? Although I am still confused as to how this only causes issues in kodi and not mpv/vlc, since I feel a true encode issue would break all of them!


    If the file glitches consistently in both LE and Kodi on Windows that might hint at a VAAPI hardware decoding issue. MPV is also a big fancy wrapper around libavcoded, but is probably using a different underlying version and/or is software decoding the file resulting in a different code path and capabilities. You can experiment in LE by disabling VAAPI hardware decoding. You can also experiment with an LE13 nightly which has newer kernel (drivers) and FFMpeg versions to see if newer is better (not always).

    Disabling hardware decode on laptop and LE does not change anything. same issue seems to happen too at the same time on both. I can also try upgrading the version and see if anything happens if nobody else in the thread knows what is wrong or a fix!


    Upload a sample of the video (the part where the issue starts).

    Also RE my previous quote message, I forgot to mention in the post but it seems the issue is tied to the audio! When I skip into the choppy section, it plays smoothly up until the audio begins playing, and at that point the video becomes unwatchable and choppy. It also blackscreens sometimes, and the timing seems pretty consistent between LE and the laptop kodi

    Edited 3 times, last by CoolPenguin42: Merged a post created by CoolPenguin42 into this post. (July 29, 2025 at 6:03 AM).