Dear Team,
I am using camera module which supports RAW format with i.MX8M Mini.
I am able to capture the RAW data using below command:
v4l2-ctl --device /dev/video0 --set-fmt-video=width=2688,height=1520,pixelformat=BG10
v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
But I don't know how to convert it to image on our target.
I used some other windows application on Windows PCd and converted and able to get the image.
From the below link in one of discussion I came to know that we can use below command:
https://community.nxp.com/thread/520379
gst-launch-1.0 -v v4l2src device=/dev/video0 ! bayer2rgb ! autovideosink
To use bayer2rgb along with gst-launch, what packages I need to use when build the bsp in yocto?
I am using Linux version 4.14.98.
Currently LCD is not up, so I need to capture, convert and store that image as file instead of displaying in LCD. For this what command I need to use?
Thanks and Regards,
Devendra
Hi Devendra
for gstreamer Bayer to RGB conversion one can look at
RAW Image Compression | Color Space Conversion | RidgeRun
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------