Does imx8qm can decode video in RGB/BGR format?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Does imx8qm can decode video in RGB/BGR format?

1,186 次查看
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 项奖励
3 回复数

1,154 次查看
korabelnikov
Contributor III

Anybody?

0 项奖励

1,179 次查看
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 项奖励

1,175 次查看
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 项奖励