imx8是否设置2clock/pix模式存放sensor传来的数据

cancel
Showing results for 
Search instead for 
Did you mean: 

imx8是否设置2clock/pix模式存放sensor传来的数据

315 Views
Contributor II

你好,

在imx8qxp-mek上的MIPI-CSI链接一个sensor接收的是2clock/pixel的yuv422_8_8数据格式的数据源,图像尺寸设定为1920*1080,但显示出的尺寸为960*1080,且显示图像为带有深浅的绿色剪影,反色显示,不丢帧,如下图

pastedImage_1.png

使用的命令为:gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,formate=YV12,width=1920,height=1080,framerate=15/1' ! waylandsink 

目前看到的格式转换的可能性存在于ISI或者MIPI-CSI2模块部分,希望能有新的思路和解决方法,谢谢!

0 Kudos
12 Replies

36 Views
NXP TechSupport
NXP TechSupport

could you try to "use gst-launch-1.0 v4l2src ! video/x-raw,width=1920,height=1080 ! kmssink"? then tell me the result

0 Kudos

36 Views
Contributor II

ERROR: from element /GstPipeline:pipeline0/GstKMSSink:kmssink0: G[ 234.855530] [mxc_isi_pipeline_enable]
Streamer encountered a general resource error.

执行命令后,开启stream之后就中断了没有图像显示

以上是控制台的报错

0 Kudos

36 Views
NXP TechSupport
NXP TechSupport

try to change kmssink to waylandsink or glimagesink, like "gst-launch-1.0 v4l2src ! video/x-raw,width=1920,height=1080 ! waylandsink"

0 Kudos

36 Views
Contributor II

should i update the gstreamer?

0 Kudos

36 Views
NXP TechSupport
NXP TechSupport

what bsp version do you test? if 4.14.98, you can use waylandsink first, to check if you can get correct picture

0 Kudos

36 Views
Contributor II

The difference is the size of graphic,but the color of the picture is always green.

could give some suggestion?

thank you!!!

0 Kudos

36 Views
NXP TechSupport
NXP TechSupport

could you tell me what sensor do you use?  first your sensor is yuv422, why did you set to ,format=YV12? if your sensor send yuv422(YVYU or UYVY), set the format=(string)YVYU or format=(string)UYVY, you need to check your sensor first, if still get wrong picture, pls check if you set correct format in your sensor driver

0 Kudos

36 Views
Contributor II

Thanks for help us!

Could you let us know about how gstreamer transfers the parameters(like "height=" or "format=") to lowerlevel function or into kernel? 

thanks!

0 Kudos

36 Views
NXP TechSupport
NXP TechSupport

v4l2 can be used to capture video from v4l2 devices, for v4l2 capture, you can refer to the linux reference manual, the parameter should transfer to the v4l2 driver, you can find the driver source code from:

drivers/media/platform/mxc/capture/, this is camera v4l2 plugin source code path

0 Kudos

36 Views
Contributor II

thanks for your reply! 

Could you give me some suggestions about the 4-lane config in MIPI-CSI on imx8qxp-mek?Especially in device tree.

0 Kudos

36 Views
Contributor II

It has already solved ,it is something wrong in register of sensor,thank you very much!!!

0 Kudos

36 Views
Contributor II

Waylandsink is available in l4.14.98kernel version but in l4.19.35 ver will block after pipeline PAUSED. 

Kmssink is available in l4.19.35 ver but the graphic size is (1920*1080)/4 of the original source(top left pos) through the output size is 1920*1080

0 Kudos