Hi Team,
We have a carrier card with SD820 SOM, we have OV5645 camera sensor connected to the
csi-phy0 interface.
- I am able to successfully capture UYVY format from the sensor and the media-ctl configuration is as below :
sudo media-ctl -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_rdi0”:0[1]’
sudo media-ctl -d /dev/media0 ‘“ov5645 4-003c”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/1920x1080 field:none],“msm_vfe0_rdi0”:0[fmt:UYVY8_2X8/1920x1080 field:none]’
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! ‘video/x-raw,format=UYVY,width=1920,height=1080’ ! jpegenc ! filesink location=image01.jpg
- Again, When I try to capture YUYV format image using the commands below, it is failing :
sudo media-ctl -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_rdi0”:0[1]’
sudo media-ctl -d /dev/media0 ‘“ov5645 4-003c”:0[fmt:YUYV8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:YUYV8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:YUYV8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:YUYV8_2X8/1920x1080 field:none],“msm_vfe0_rdi0”:0[fmt:YUYV8_2X8/1920x1080 field:none]’
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! ‘video/x-raw,format=YUYV,width=1920,height=1080’ ! jpegenc ! filesink location=image01.jpg
- Similarly for the YVYU format, it is failing with the below configurations and command :
sudo media-ctl -d /dev/media0 -l ‘“msm_csiphy0”:1->“msm_csid0”:0[1],“msm_csid0”:1->“msm_ispif0”:0[1],“msm_ispif0”:1->“msm_vfe0_rdi0”:0[1]’
sudo media-ctl -d /dev/media0 ‘“ov5645 4-003c”:0[fmt:YVYU8_2X8/1920x1080 field:none],“msm_csiphy0”:0[fmt:YVYU8_2X8/1920x1080 field:none],“msm_csid0”:0[fmt:YVYU8_2X8/1920x1080 field:none],“msm_ispif0”:0[fmt:YVYU8_2X8/1920x1080 field:none],“msm_vfe0_rdi0”:0[fmt:YVYU8_2X8/1920x1080 field:none]’
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! ‘video/x-raw,format=YVYU,width=1920,height=1080’ ! jpegenc ! filesink location=image01.jpg
Kindly let me know if anything has to be changed in the commands to capture the image in
YUYV format and YVYU format. Also would be great if u tell how to capture RGB888 format too.
Regards,
Shiva Shankar K.