Hi Toradex,
We are using the Apalis iMX8 V1.1C (imx8qm without wifi model) on our custom carrier board with the configuration of 2x screens on 2x channel of LVDS and 1x screen connected to HDMI port (also with the touchscreen on it) - 3x screens in total.
We are trying to use some streaming using the GStreamer, but are having issues with the “imxvideoconvert_g2d” element.
I have two pipelines here:
1. gst-launch-1.0 filesrc location=/usr/data/MP4_HPL40_30fps_channel_id_51.mp4 ! qtdemux name=d d.video_0 ! h264parse ! avdec_h264 ! videoconvert ! waylandsink
2. gst-launch-1.0 filesrc location=/usr/data/MP4_HPL40_30fps_channel_id_51.mp4 ! qtdemux name=d d.video_0 ! h264parse ! v4l2h264dec ! imxvideoconvert_g2d ! waylandsink
The first is using the “videoconvert” and it is displaying OK on the screen, but the video is laggy since it uses the CPU for rendering. The second pipeline is using the “imxvideoconvert_g2d” element and it is not working, the error is:
ERROR: from element /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0: failed to activate bufferpool
Additional debug info:
../git/libs/gst/base/gstbasetransform.c(1678): default_prepare_output_buffer (): /GstPipeline:pipeline0/imxvideoconvert_g2d:imxvideoconvert_g2d0:
failed to activate bufferpool
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
In the linux-toradex kernel defconfig we have enabled these options:
CONFIG_MXC_VPU_MALONE=y
CONFIG_ACPI_CPPC_CPUFREQ=y
CONFIG_STAGING=y
CONFIG_ION=y
CONFIG_ION_SYSTEM_HEAP=y
CONFIG_ION_CMA_HEAP=y
CONFIG_MXC_GPU_VIV=y
Before we have enabled the ION heap the errors we were getting that device /dev/ion is not available, now we get the problem with bufferpool sent above.
Can you help us to enable this GStreamer plugin or show us how to use the GPU for rendering to get the proper performance on the stream?
Software used:
U-Boot (u-boot-toradex) version: 2020.04-0+git.586f79f64f6a
Linux kernel (linux-toradex) version: 5.4.91+gitAUTOINC+590db576d0
Custom Yocto distribution with layers:
meta-toradex-nxp (version: dunfell-5.x.y - 599cd72b82723ac096bb5c9bea2d82bdc6b38185);
meta-toradex-bsp-common (version: dunfell-5.x.y - 2b830c7a4aaf39dc7ea971c638b5042290c9ee1e)
Kind regards,
Domagoj