Posts by offbeat

    Maybe a bit off-topic and maybe too philosophical, but do you see the vendor-specific ARM-based stuff as the 'future' of Kodi?

    Got two rather ancient old media devices running in my living room.

    First is media player, MIPS Sigma SOC. Fantastic hardware, plays any 8bit H.264 with dynamic Hz changing, every older codec, not a single visible framedrop and glitch. But welcome back to year 2007 and say hello to kernel 2.6.22. If you want to play something off network share, open up SMB1.

    Another one is DVB-S2 SAT receiver, MIPS Realtek SOC. Once again, vendor blobs, kernel 3.13, you get what you get. Want to plug additional DVB-T USB stick supported in mainline? Tough luck.

    Both devices got hardware beefy enough to run something like LibreElec (3D acceleration, hardware video decoding, enough RAM), yet both are rotting away, feature and security wise, waiting to become e-waste.

    Who wants such 'future'?

    It's entirely possible that 144 Hz output needs some things to be done in more precise ways

    According to calculator, 1440p@144 pushes the very limits of HDMI 2.0 bandwidth, assuming H6 outputs full RGB.
    At least simple OpenGLES things like kmscube seem to render and output at 144FPS just fine, so it's only video plane output that has some glitch.

    Data Rate Required: 14.08 Gbit/s

    Video Format:

    2560 × 1440 (16∶9 ratio) at 144 Hz

    8 bpc (24 bit/px) RGB color

    Uncompressed

    CVT-R2 timing format

    HDMI 2.0 14.40 Gbit/s

    Downloaded some random popular youtube playlist, 1080p res, each video in h264, vp9 and av1.

    Latest master build for Beelink GS1, tested in both kodi and mpv.


    AV1 software decoding get H6 to its knees, all 4 cores loaded pretty much to 100%.

    H264 hardware decoding, no problems detected.

    VP9 hardware decoding, 49 of 50 videos played just fine, one produces garbled picture. Also, mpv sometimes hangs on VP9 videos, not a hard lock though, can Ctrl+C and play again.

    This VP9 clip fails to decode correctly

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.


    Ah yes, H6 hardware decoding path also garbles everything when outputing to 1440p@144Hz my monitor HDMI defaults at.

    Downgrading video output to 1080p@60Hz solved the issue (except that one VP9 clip)

    Rather global question, right now in the year of 2022, is there anything resembling general consensus on the unified Linux API for video hardware decoding and zero copy rendering?

    I’m only talking about mainline kernel and major opensource players/frameworks/players.

    Is it VAAPI only for big boy x64 AMD/Intel GPU’s? Browsers, players like mpv, kodi seem to use it by default.

    Stateless V4L and DRM for various ARM GPU’s? I see Libreelec has a lot of patches for kernel, ffmpeg and kodi, it’s not really mainlined yet?

    How does Vulkan video API fit in there?

    Here is what I did to add my custom overlay in LE:

    1) created device tree fragment, in my case adding missing H3 CPU frequency

    2) compiled it to binary

    Code
    dtc -I dts -O dtb -o sun8i-h3-cpu-clock.dtbo sun8i-h3-cpu-clock.dts

    3) remounted /flash in read/write mode and copied sun8i-h3-cpu-clock.dtbo to /flash/overlays/

    4) added "FDTOVERLAYS /overlays/sun8i-h3-cpu-clock.dtbo" to extlinux.conf, just before APPEND line.

    It only has to be done once, your custom overlay will be kept even after LE upgrades.

    It stalls only once at the beginning but after that it plays normally.

    In my tests on H6 and H3, every video stalls for a bit right after start of the playback. Very small freeze, typically for one or two frames, only noticeable in pan scenes. According to logs, Kodi does some video sync error correction.

    It's solved by applying windowing/gbm: Add display clock by popcornmix · Pull Request #19601 · xbmc/xbmc · GitHub you suggested some time ago and enabling "Sync video to display" in settings. Hope these commits will make it to LE soon.


    Sorry to say, but options that are not enabled by default are in second plan, there is enough work already for a (very) small team of developers interested in particular platform. Having said that, I always like to hear about such investigations.

    Completely understandable, just trying to help with testing things and giving feedback. Really appreciate work LE/Kodi/ffmpeg/sunxi/mesa teams are doing to advance modern video stack on Linux.

    Particular H6 issue definitely isn't a burning priority, since it can be worked around without impairing playback quality or any other LE functions, it only adds a bit of power consumption.


    Auto refresh rate switching is one of the major selling points of LibreElec, could even be enabled by default IMHO.

    Many of Android TV boxes can't do that, since there was no such API until recently.

    It gives user ability to play 24/25/30Hz content on TV without forced convertion to 60Hz. As well as ability to use TV provided motion interpolation, some hate it, some love it, but its a big deal anyway.