Hardware acceleration NOK for video decoding on Chromium on IMX8MQEVK Kirkstone-5.15.32-2.0.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hardware acceleration NOK for video decoding on Chromium on IMX8MQEVK Kirkstone-5.15.32-2.0.0

660 Views
fr5
Contributor IV

Hi,

I followed the following steps.

Add CORE_IMAGE_EXTRA_INSTALL += "chromium-ozone-wayland" in sources/meta-imx/meta-sdk/recipes-fsl/images/imx-image-multimedia.bb

MACHINE=imx8mqevk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b bld-xwayland
bitbake imx-image-multimedia

I run chromium with the following command line :

chromium --no-sandbox --ozone-platform=wayland --enable-features=VaapiVideoDecoder --enable-accelerated-video-decode --enable-clear-hevc-for-testing --ignore-gpu-blacklist --window-size=1920,1180 --kiosk --enable-logging --v=2

It is like acceleration is not enabled : video playback is not smooth when video are 2k or 4k (while the same videos with gstreamer are smooth) and CPU percentage is high.

Example of CPU percentage with 2k video playback :

%Cpu(s): 55.6 us, 3.1 sy, 0.0 ni, 40.5 id, 0.0 wa, 0.5 hi, 0.1 si, 0.0 st
MiB Mem : 2952.3 total, 1570.5 free, 835.4 used, 546.4 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 1815.2 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4993 root 20 0 24.5g 187708 113016 S 129.2 6.2 1289:23 chromium-bin
4938 root 20 0 16.8g 174648 138988 S 102.0 5.8 1028:42 chromium-bin

How can I check if video hardware decoding is enabled or not ?

Is there something I missed in the command line ?

Thanks for your help

Tags (1)
0 Kudos
2 Replies

607 Views
Tracy
Contributor II

I have used your method, but there are still many problems, please see my post:

https://community.nxp.com/t5/i-MX-Solutions/chromium-vpu-issues/m-p/1568789#M290

0 Kudos