some mkv videos with green screen



Kodi is a great video player and compatible with all video formats. Recently I discovered a problem with it. Some mkv videos (hevc and dobby) plays not smoothly and with green screen. I tryed LibreELEC and windows kodi with the same video and can not solve this problem.

I currently install  latest version (v21) kodi from flatpak. The cpu is N100.

The kodi log were:

2024-07-27 12:23:00.543 T:7        info <general>: VAAPI::Close
2024-07-27 12:23:00.543 T:735      info <general>: COutput::OnExit: Output Thread terminated
2024-07-27 12:23:00.543 T:735     debug <general>: Thread Vaapi-Output 135342506116800 terminating
2024-07-27 12:23:00.543 T:7       debug <general>: VAAPI::FiniVAAPIOutput destroying 4 video surfaces
2024-07-27 12:23:01.039 T:720     debug <general>: CalcFrameRate counted 1000 frames without being able to calculate the framerate, giving up
2024-07-27 12:23:01.112 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Failed to end picture decode issue: 23 (internal decoding error).
2024-07-27 12:23:01.112 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] hardware accelerator failed to decode picture
2024-07-27 12:23:01.146 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Could not find ref with POC 22
2024-07-27 12:23:01.146 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Failed to end picture decode issue: 23 (internal decoding error).
2024-07-27 12:23:01.146 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] hardware accelerator failed to decode picture
2024-07-27 12:23:01.146 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Could not find ref with POC 22
2024-07-27 12:23:01.147 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Failed to end picture decode issue: 23 (internal decoding error).
2024-07-27 12:23:01.147 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] hardware accelerator failed to decode picture
2024-07-27 12:23:01.147 T:720     error <general>: ffmpeg[0x5f84b6d84ca0]: [hevc] Could not find ref with POC 22

it seems to be the problem of ffmpeg, but the vedio can plays well in Jellyfin with transcoding.

I have been troubled by this problem for a long time, and if it still cannot be solved, I will quit. Please help !