[x86-64] Restricted Video Quality with DRM Prime

  • Hello there,

    I have been running libreelev forever. Currently my main libreleec is on an Odroid H4+ with N97 chipset, attached to a 4K tv and Atmos surround system. Because i have been using kodi for a long time i have a massive library of various content, alot of old SD/HD files, and a bunch of newer 4K HEVC stuff.


    The problem i am encountering on the odroid recently, is when i enable DRM prime, and start any HEVC content, the sound will play but the the screen will hang or blank, while the seek bar will still allow me to scroll through the file. The audio will skip accordingly but the screen will remain blanked and glitchy.


    When i then disable DRM Prime, the 4k HEVC content will play just fine


    But then the older SD/HD content, mostly mpeg4 files i made back in the day from old tv recordings, will either show a solid green screen whilst playing the audio, or a screen with green/pink/purple washed out colors, with two duplicates of the image side by side on the top of the screen, partially obscuring the full sized image on the screen.


    I have tried disabling and enabling 'Allow using DRM PRIME decoder (both with and without 'allow hardware accelleration' enabled, and with 'prefer VAAPI render method enabled or disabled. I have also tried turning off 'use MPEG-2 VAAPI' and 'use MPEG-4 VAAPI'. But whatever combination of these settings i use, it will either not play the old SD content correctly with the green screens, or it will not start HEVC 4K video.

    However on my Raspberry Pi5, hooked up to a 1080P monitor, i can switch between content and it will play old and new 4K HEVC content just fine on the 1080p screen. But the Pi5 does not have the VAAPI options in it, it seemingly only has the option for DRM PRIME.

    Is there any way to make librelec on an N97 chipset correctly switch between DRM PRIME and VAAPI? Or another option to enable it to play all content i throw at it without having to change the render settings every time i switch from HEVC 4K content to SD content?

    Thanks in advance for any help.

  • Don't enable DRM PRIME on x86. It never worked properly and the option is no more there in LE13.

    If you have something that does not play in VAAPI then you'd better open a Kodi github issue (with all the relevant info, log, sample video).

  • Alright, i will. Thanks for the info, bud. I was not aware of any issues with x86. So know i at least know where not to look. I'm sure i'll find the fix. Librelec never lets me down. It's awesome. Will post the fix when i find it.