Does imx8qm can decode video in RGB/BGR format?

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

Does imx8qm can decode video in RGB/BGR format?

1,183 Views
korabelnikov
Contributor III

Hi,

I have IP-camera that output h264 stream connected to IMX8 quad max

And I'm doing a computer vision but I found out that Gstreamer's plugin 'imxvideoconvert' can't convert videostream to 3-Byte format (acceptable by neural nets).

Currently I can recieve RGBA and convert it to RGB. If I do it myself in code it will spend up to 100% of CPU core time. It leaves no space for other computations.

`gst-inspect-1.0 -a |grep imxvideoconvert` shows that outputs colors may be 2-byte or 4-byte only.

 

I've briefly read https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf but I could find any relative info there. Moreover it uses $video_decoder_plugin that's not declared anywhere.

 

What is fastest way to get raw video in BGR/RGB format?

Thanks

0 Kudos
3 Replies

1,151 Views
korabelnikov
Contributor III

Anybody?

0 Kudos

1,176 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello korabelnikov,

One can test with nxp version of gstreamer plugins : imx-gst1.0-plugin using

sect.7.3.15 Video conversion on the Linux Guide.

Make sure that you are working with the latest BSP.

it can be posted on gstreamer-imx github page :
https://github.com/Freescale/gstreamer-imx/issues

 

Regards

 

0 Kudos

1,172 Views
korabelnikov
Contributor III

Thank you for a fast response,

I just checked first tip, went to linux use guide

7.3.15 Video conversion
There are three video conversion plugins, imxvideoconvert_ipu, imxvideoconvert_g2d, and imxvideoconvert_pxp

 

first two absent in my gstreamer, third doesn't support 3byte formats

korabelnikov_0-1607072720446.png

I just started build 5.4.47 instead of 5.4.24. Does new build may help?

 

Also i've created issue on the github

0 Kudos