On my Dragonboard 410c I can successfully capture 1296x972 image (scaling down from 2592x1944) from OV5645 camera module with AISTAR MIPI adaptor. Here is a list of the command I use:
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_pix”:0[1]’
sudo media-ctl -d /dev/media0 -V ‘“ov5645 4-003b”:0[fmt:UYVY8_2X8/2592x1944 field:none],“msm_csiphy0”:0[fmt:UYVY8_2X8/2592x1944 field:none],“msm_csid0”:0[fmt:UYVY8_2X8/2592x1944 field:none],“msm_ispif0”:0[fmt:UYVY8_2X8/2592x1944 field:none],“msm_vfe0_pix”:0[fmt:UYVY8_2X8/2592x1944 field:none compose:(0,0)/1296x972],“msm_vfe0_pix”:1[fmt:UYVY8_2X8/1296x972 field:none]’
gst-launch-1.0 v4l2src device=/dev/video3 num-buffers=1 ! videoconvert ! ‘video/x-raw,format=UYVY,width=1296,height=972’ ! jpegenc ! filesink location=image_1296x972.jpg
I’m just wondering why videoconvert is required, or gst-launch-1.0 will fail and complain the following message:
:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data strea
m error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src
0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
:
Can anyone advise?