iMX8MQ ADV7282-M frame problem

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

iMX8MQ ADV7282-M frame problem

4,712 次查看
leandroschmitz
Contributor I

Hello, I'm using the driver media/i2c/adv7180.c  in kernel 4.19.35 to interface ADV7282-M.

When I use the command gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw,width=720,height=480,framerate=30/1,format=UYVY ! autovideosink I get image rolling  with 6 copies in my 1280x800 screen.

In bar color the image is perfect, but when capturing from the camera the video seems like the attached picture.

I'd like to know if the problem may be in resizing the image, I try to do position and sync adjustment with no effect.

Any help is welcome.

Tks

 

 

0 项奖励
回复
5 回复数

4,662 次查看
leandroschmitz
Contributor I

Hello Igor,

I did changes in HS-SETTLE and the frame seemed better, but it still drooling over.

I use the command below and see a lot of lost frames.

Any suggestion?


gst-launch-1.0 -v --gst-debug-level=2 v4l2src device="/dev/video0" ! video/x-raw,format=UYVY,width=720,height=480,framerate=30/1 ! autovideosink

 0:00:10.049632485 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.769480975
0:00:10.133956248 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.819049855
0:00:10.154938729 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:09.869953855
0:00:10.218251452 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.902210615
0:00:10.262537093 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.985278855
0:00:10.365793377 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:10.085224095
0:00:10.450089421 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:10.136004975
0:00:10.471050542 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:10.185198855

0 项奖励
回复

4,609 次查看
leandroschmitz
Contributor I

Hi,

I add sync=false to the gst-launch command, the screen still scrolling but now de fps is 45.6 before sync=false it was 26.8 fps

gst-launch-1.0 v4l2src device=/dev/video0 --gst-debug-level=2 ! video/x-raw,width=720,height=480 ! autovideosink sync=false

I have to change HS-SETTLE in  mxc-mipi-csi2_yav.c from 6 to 0x1f with no success. 

adv7282ma is configured to output 720x480@30fps in ITU-R BT.656-3 in 1 Lane with ADC Clock of 57.27MHz.

I think the problem may be csi clock settings, but I don't know how to change it.

Any help? 

 

0 项奖励
回复

4,703 次查看
igorpadykov
NXP Employee
NXP Employee

Hi leandroschmitz

 

for frame problems may be recommended to tweak HSSETTLE as described on

https://community.nxp.com/t5/i-MX-Processors/Explenation-for-HS-SETTLE-parameter-in-MIPI-CSI-D-PHY-r...

 

Best regards
igor

0 项奖励
回复

4,653 次查看
leandroschmitz
Contributor I

Hello Igor,

I did changes in HS-SETTLE and the frame seemed better, but it still drooling over.

I use the command below and see a lot of lost frames.

Any suggestion?


gst-launch-1.0 -v --gst-debug-level=2 v4l2src device="/dev/video0" ! video/x-raw,format=UYVY,width=720,height=480,framerate=30/1 ! autovideosink

 0:00:10.049632485 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.769480975
0:00:10.133956248 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.819049855
0:00:10.154938729 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:09.869953855
0:00:10.218251452 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.902210615
0:00:10.262537093 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.985278855
0:00:10.365793377 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:10.085224095
0:00:10.450089421 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:10.136004975
0:00:10.471050542 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:10.185198855

0 项奖励
回复

4,620 次查看
leandroschmitz
Contributor I

Hello Igor,

I did changes in HS-SETTLE and the frame seemed better, but it still drooling over.

I use the command below and see a lot of lost frames.

Any suggestion?


gst-launch-1.0 -v --gst-debug-level=2 v4l2src device="/dev/video0" ! video/x-raw,format=UYVY,width=720,height=480,framerate=30/1 ! autovideosink

 0:00:10.049632485 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.769480975
0:00:10.133956248 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.819049855
0:00:10.154938729 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:09.869953855
0:00:10.218251452 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:09.902210615
0:00:10.262537093 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:09.985278855
0:00:10.365793377 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 3 - ts: 0:00:10.085224095
0:00:10.450089421 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 1 - ts: 0:00:10.136004975
0:00:10.471050542 2363 0x29d23c00 WARN v4l2src gstv4l2src.c:980:gst_v4l2src_create:<v4l2src0> lost frames detected: count = 2 - ts: 0:00:10.185198855

标记 (1)
0 项奖励
回复