How to use VPU to encode/decode on imx8qxp (linux)

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

How to use VPU to encode/decode on imx8qxp (linux)

2,330 Views
wasim_nazir
Contributor II

Hi Guys,

I am currently using imx-L4.14.98_2.3.0 linux yocto build on imx8qxp-B0.

I need to create one application to encode/decode h264.

Is there any user-guide to implement enc-dec on Amphion VPU.

I am following this doc(https://www.nxp.com/docs/en/reference-manual/IMX_VPU_APPLICATION_PROGRAMMING_INTERFACE_LINUX_REFEREN... ), which shows way for programming based on RPC but doesn't seems complete.

I have also found end/dec test applications here(imx-test - i.MX Driver Test Application Software )

Is there any other proper doc or sample code to follow, to implement the same.

Thanks in Advance,

Regards,

Wasim

0 Kudos
4 Replies

2,192 Views
wasim_nazir
Contributor II

Thanks a lot for your response.

How to make sure it is using hw-codec and not the sw-codec?

Regards,

Wasim

0 Kudos

2,192 Views
fmonte
Contributor IV

If using HW decoding, in dmesg you will find messages stating that the VPU is opened, the buffers allocated etc.

0 Kudos

2,192 Views
fmonte
Contributor IV

Hi Wasim,

on 8QM we are using the NXP's gst v4l2decoder to decode H264 frames using the VPU. That's working fine.

The missing part is the display of the decoded Amphion tiled format, that's not included in the gstreamer provided with BSP 4.14.98

Francesco

0 Kudos

2,192 Views
igorpadykov
NXP Employee
NXP Employee

Hi Wasim

I am afraid such nxp publicly available documentation is not available yet,

one can look at third party resources:

MX8 GSTREAMER - Variscite Wiki 

GStreamer Based Image Signal Processor - IMX8 Pipelines 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos