I‘m using an OrangePi Lite with the intent to display a 4kp30 video to a 4k TV over hdmi.
from reading through the forums I saw that mainline kernel does not support video acceleration - is this information current?
after installing the Xenial Image with 3.4 kernel I manage to play 1440p video smoothly two ways with mpv:
- windowed if display resolution is set to 4k
-fullscreen if display resolution is set to 1080p
if I try to run the 1440p video at 4k display resolution in fullscreen, the app crashes with messages about ‚not enough resources to create surface‘ and the framebuffer stays corrupted after that and I have to reboot.
The same happens if I try to play the 4k30p video (independently of whether I run it fullscreen or windowed, 4k or 1080p display res. I also tried both h264 and h265).
I Played around with extraargs=cma=... sunxi_ve_mem_reserve=... in ArmbianEnv.txt but it didn‘t seem to have effect. The docs state that in the 3.4 kernel the video memory is hardcoded to 80MB (not sure if I understood that correctly though) which probably would prevent 4k playback with that kernel.
on https://linux-sunxi.org/Cedrus/libvdpau-sunxi it's stated that:
This can be set by the following kernel argument.
NOTE: This kernel parameter is ignored in recent linux-sunxi 3.4 kernels, if CMA is enabled in kernel configuration. If CONFIG_CMA=y, ve_size is hardcoded to 80MB in sunxi_cedar kernel module.
For A33 or H3, if you use the kernel from official SDK, you should modify the memory reservation configuration of ion memory allocator. 32 MB seems to be enough for 720p H.264 decoding, and 64MB is enough for 1080p H.264 decoding.
But I don't know what it means to modify the memory reservation configuration of ion memory allocator and how to do that?
Is there any kernel available which can playback hardware accelerated 4k30p video on Orange Pi Lite (H3) and if so, how do I need to go about to setup my Xenial installation to make use of it?