hardware acceleration dont work on amlogic s905x

  • Hi everyone,
    Sorry to bother you. Before writing, I've read as much as I can, but I haven't been able to resolve this.

    I'm having a little problem with my SoC905x (Beelink MXIII-II 2GB): the hardware acceleration isn't working. In the options, I find an option for PRIME hardware acceleration. If I turn it on, I can watch UHD content, but as soon as something happens to the video (fast forward, rewind, out of buffer), the image is destroyed by green artifacts, and I can only stop and restart the video. If I turn it off, everything works fine, but only in SD (720p max). FHD at 1080p drops several frames and is annoying. UHD at 2160p doesn't cope (one frame every now and then). When playing FHD, the CPU is at 100%.

    The device is 2K capable. If I use its ancient Android 6.0, it runs 2K without any problems, so it's definitely a software issue (I also tried CoreElec, where the acceleration works, but I have other problems). LibreElec is the best, but I need hardware acceleration for 2K videos.

    Do you think I have any chance?

    Thank you very much.
    Best regards

  • The release notes for LE10/11/12 have longer comments and warnings on the general state of Amlogic support, but in-short: H264 works well but the HEVC code was never finished and there has been nobody actively working on that codec since 2020 so there are no expectations of improvements to that driver. The config described here https://wiki.libreelec.tv/configuration/4k-hdr will give the best (or least-worst) results but some issues with HEVC seeking are known and expected. The S905X chip in the box is a typical ARM SoC with a weak CPU so software decode isn't a viable option for anything larger than SD media.

    Amlogic are finally upstreaming hardware decode drivers (with plans to rework the entire DRM layer) which is long-overdue and great to see. We are working with them behind the scenes to help get changes tested and merged in the kernel, but their initial focus is H264/8-bit/1080p on S4 hardware (S905Y4/S905W2/S805X2). That effort is making slow progress due to kernel standards being rather higher than Amlogic's in-house ones, so it's going to be a while before HEVC/4K/HDR support exists and then gets backfilled to older hardware.

    You might want to look at the vendor kernel image that dtech maintains. This will be more functional than AMLGX and contains a few updates to keep things ticking over, albeit add-ons and such are starting to die off under that era/version of Kodi.