你好,
在imx8qxp-mek上的MIPI-CSI链接一个sensor接收的是2clock/pixel的yuv422_8_8数据格式的数据源,图像尺寸设定为1920*1080,但显示出的尺寸为960*1080,且显示图像为带有深浅的绿色剪影,反色显示,不丢帧,如下图
使用的命令为:gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,formate=YV12,width=1920,height=1080,framerate=15/1' ! waylandsink
目前看到的格式转换的可能性存在于ISI或者MIPI-CSI2模块部分,希望能有新的思路和解决方法,谢谢!
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
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
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