Hi All,
We are making imx8mp based product. In this product we have usecase capture and preview video on LCD.
For imx8mp, If I run this command I am getting output as attached video (video_with_wrong_colors.mp4). I am also attaching image which format gstreamer take as input and what it displays.
gst-launch-1.0 -v v4l2src device=/dev/video3 ! glimagesink
Please note if I select BGR format I am able to capture video correctly with correct format. Attached video (captured_dump_file.mp4). I use the following command to capture and dump correct data.
v4l2-ctl --verbose --device /dev/video3 --stream-mmap --stream-to=frame.yuv --stream-count=60 --set-fmt-video=width=1280,height=720,pixelformat=BGR3 --stream-to=./frame.yuv
We are facing issue in displaying same data on LCD. Please provide if you have any suggestion regarding that.
If I try to display same BGR data on LCD using following command I am getting flashy video (flashy.mp4). Which doesn't looks good
gst-launch-1.0 -v v4l2src device=/dev/video3 ! video/x-raw, format=BGR ! videoconvert ! queue ! video/x-raw, format=BGR ! glimagesink
In addition to that I have tried many other commands but none of them help to preview it correctly. Please suggest if you have any suggestion regarding it.
Thanks,
Jemish