imx6q tearing issue!!

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

imx6q tearing issue!!

4,035 Views
kangmw086
Contributor III

i used imx6q sabreauto.

There is a phenomenon of screen separation in my display device.

Parallel LCD and HDMI have the same phenomenon.

I am using a parallel camera.
The phenomenon occurs at a cycle of 5 minutes and 30 seconds and is maintained for about 5 seconds.
It takes about 5 seconds for the horizontal line to rise and disappear.
Horizontal lines gradually go up the screen and disappear.

I used the following gstreamer command.

export FB_MULTI_BUFFER=8

echo 1 > /sys/class/graphics/fb2/blank
echo 0 > /sys/class/graphics/fb2/blank

fbset -fb /dev/fb2 --geometry 1280 1024 1280 1024 32

gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! queue ! imxg2dvideosink use-vsync=true sync=true framebuffer=/dev/fb2 window-width=1280 window-height=960 window-y-coord=64

Labels (2)
0 Kudos
Reply
8 Replies

3,714 Views
joanxie
NXP TechSupport
NXP TechSupport

how about trying to use overlaysink to replace  imxg2dvideosink ?

0 Kudos
Reply

3,714 Views
kangmw086
Contributor III

hi

I also tried using overlaysink.

I used gstreamer overlaysink display-master=true display-hdmi=true....

It does not work well.

I set the display-master to LCD and the display-hdmi to HDMI for overlaysink.

Do you have an example that you know?

regards.

0 Kudos
Reply

3,714 Views
joanxie
NXP TechSupport
NXP TechSupport

why do you set FB_MULTI_BUFFER to 8? I suggest that you can use 2 or 3, and what backend do you use? x11 or wayland?

0 Kudos
Reply

3,714 Views
kangmw086
Contributor III

I tested FB_MULTI_BUFFER by changing from 1 to 8. This was seen on the this community site.

I have seen that in this community site we need to increase the number of FB_MULTI_BUFFER to remove tearing.

i used backend = FB

DISTRO=fsl-imx-fb

regards!

0 Kudos
Reply

3,714 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version do you use?

0 Kudos
Reply

3,714 Views
kangmw086
Contributor III

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-morty -m imx-4.9.11-1.0.0_ga.xml

yocto morty

kernel 4.9.11

DISTRO=fsl-imx-fb

bitbake fsl-image-qt5-validation-imx

0 Kudos
Reply

3,714 Views
joanxie
NXP TechSupport
NXP TechSupport

thanks for your information, FB_MULTI_BUFFER  should improve this issue, I'm not sure gstreamer plugins you use would effect this issue, do you mind tring  to use unit test to reproduce this? the command like

/unit_tests/mxc_v4l2_capture.out -iw 1280 -ih 960 -ow 1280 -oh 960 -i 1 -fr 30 -m 4 /tmp/test.yuv
/unit_tests/mxc_v4l2_output.out -iw 1280 -ih 720 -ow 1280 -oh 720 -fr 30 /tmp/test.yuv

0 Kudos
Reply

3,714 Views
kangmw086
Contributor III

hi

i used 

export FB_MULTI_BUFFER=4

and

---- Running < ./mxc_v4l2_capture.out > test ----

in_width = 1280, in_height = 960
out_width = 1280, out_height = 960
top = 0, left = 0
sensor chip is daycam_camera
sensor supported frame size:
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
sensor frame format: UYVY
Width = 1280 Height = 960 Image size = 1843200
pixelformat: YU12
VIDIOC_DQBUF failed.
VIDIOC_QBUF failed

my camera pixelformat = V4L2_PIX_FMT_UYVY

---- Running < ./mxc_v4l2_capture.out > test ----

in_width = 1280, in_height = 960
out_width = 1280, out_height = 960
top = 0, left = 0
sensor chip is daycam_camera
sensor supported frame size:
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
1280x960
sensor frame format: UYVY
Width = 1280 Height = 960 Image size = 2457600
pixelformat: UYVY
VIDIOC_DQBUF failed.
VIDIOC_QBUF failed

The file can not be played.
regards!
0 Kudos
Reply