Bayer to RGB conversion command with gst-launch

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bayer to RGB conversion command with gst-launch

7,925件の閲覧回数
devendradevadig
Contributor III

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

タグ(2)
0 件の賞賛
返信
1 返信

7,879件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Devendra

for gstreamer Bayer to RGB conversion one can look at

RAW Image Compression | Color Space Conversion | RidgeRun 

bayer2rgb 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信