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?