Cannot make proper ScreenShot on x265 videos

For me the summary is following:
on current CoreELEC release screenshots don’t work.


Sole script.amlogic.framecapture.zip also don’t work (gives above image too).
Update: it looks like it works for some shows but screenshotting x265 4:3 Star Trek: Voyager
consistently results in garbage.

Changing double_write_mode to 1 or 3 results in glitches.

Changing double_write_mode to 3 and
using script.amlogic.framecapture.zip results in screenhots
but they are low resolution and sometimes have a visible artifact in top right corner.
Setting double_write_mode to 1 and using above script crashes Kodi for me.

Is there some way to restore working screenshots like in older CoreELEC releases?

(Tested on X96 S905X.)