I am working on an imx8mm evk board with a custom linux bootloader and kernel. But the filesystem used is the same as the distributed version by nxp. I have previously made use of the MIMMINITOCSI camera by NXP for streaming and capturing images.
I use the following commands:
$ gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
and
$ gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! waylandsink
I want to use the imx8mm evk board and the raspberry pi camera to stream and capture images. When I use the commands above I get the following errors
$ gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../../../../git/libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000215875
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
and a similar one stating internal data stream error for the other command.
Could someone direct me towards how do I go about achieving this?
To attach a camera module to a Pi Zero:
You will need to reboot after doing this (but this is one-time setup so you won’t need to do it again unless you re-install your operating system or switch SD cards). Once rebooted, start a terminal and try the following command:
raspistill -o image.jpg
If everything is working correctly, the camera should start, a preview from the camera should appear on the display and, after a 5 second delay it should capture an image (storing it as image.jpg) before shutting down the camera.
Hi anurag16doshi
this camera uses IMX219 sensor and one can try suggestions provided on
Best regards
igor