verdin i.mx95 GStreamer hardware accelerated elements

We are exploring tdx-reference-multimedia-image yocto image. We are trying to access hardware accelerated elements to do colorspace conversion but no imxvideoconvert_xxx elements are present by default. Could you please point us how to include them in the image

Regards,

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


To guide you properly on including hardware-accelerated GStreamer elements for the Verdin iMX95, could you specify which exact version of the BSP and Yocto you are running? This information is crucial since the hardware acceleration packages and configuration requirements vary between BSP versions.

You can use the tdx-info command to get detailed information about your current system configuration. More details about this command are available at https://developer.toradex.com/software/development-resources/tdx-info/.

Common Platforms to Consider:

  • Hardware: Verdin iMX95, Verdin i.MX8M Plus, Verdin AM62, Aquila AM69
  • Operating System: BSP 7.x.y, Yocto 7.2.0, Torizon OS 6, Torizon OS 7.2.0-build.13
  • Implementation: GStreamer hardware acceleration, GPU acceleration, VPU elements

For reference, when building Yocto images with hardware acceleration support, you typically need to include specific packages in your local.conf file and accept the necessary EULAs(1). For NXP-based SoMs like the Verdin iMX95, this often requires accepting the NXP/Freescale EULA(1).

Once you provide the specific BSP version information, I can give you the exact configuration steps needed for your setup.

Best regards,
Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hardware: verdin imx95
Operating System: Yocto 7.6.0
Implementation: GStreamer hardware accelerated elements

already accepted EULA in local.conf with ACCEPT_FSL_EULA = “1”

For Verdin iMX95 with Yocto 7.6.0, to include hardware-accelerated GStreamer elements including imxvideoconvert_xxx elements in your tdx-reference-multimedia-image, you need to add specific packages to your local.conf file(1).

Required Configuration

Add the following to your local.conf file:

IMAGE_INSTALL:append = " mali-imx"

(1)

For GStreamer plugins, ensure you have the necessary GStreamer packages:

IMAGE_INSTALL:append = " gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-base"

(2)

Build Process

After updating your local.conf, rebuild the image:

$ bitbake tdx-reference-multimedia-image

(1)

Important Notes

  • The Verdin iMX95 supports OpenCL and GPU acceleration, which requires the mali-imx package from the meta-freescale layer to enable GPU acceleration(1)
  • You’ve already correctly accepted the NXP/Freescale EULA with ACCEPT_FSL_EULA = "1"(1)
  • Some Toradex SoMs support OpenCL and GPU acceleration, and enabling these features requires additional configuration(1)

Verification

After flashing the updated image, you can verify the available GStreamer elements using:

gst-inspect-1.0 | grep imx

This should show the hardware-accelerated elements including the imxvideoconvert_xxx elements you’re looking for.

The hardware acceleration capabilities vary by SoM, so refer to your Verdin iMX95 datasheet and documentation for specific requirements and supported features(1).

Best regards,
Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Hello Allan,

Since you are using Yocto, you can build the reference multimedia image and add the GStreamer plugin package to the image.

You can try to add this on your local.conf file to test:

IMAGE_INSTALL:append = " imx-gst1.0-plugin"

I built the reference multimedia image (7.6.0) with this modification and I was able to run a pipeline to validate if the imxvideoconvert_g2d was available, as follows:

gst-launch-1.0 -v videotestsrc num-buffers=300 ! video/x-raw,width=1280,height=720,format=YUY2,framerate=30/1 ! imxvideoconvert_g2d ! video/x-raw,format=NV12 ! fakesink sync=false

Please let me know if this was enough to your needs.

Best Regards,

Marcio Albano Hermelino Ferreira
Toradex

1 Like