Part Number: AM5728
Tool/software: Linux
Hello,
We are trying to capture jpeg image continuously from our imager.
We can capture jpeg image from vpe using below command. (Image size which is given by imager is 1280x720)
gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1 io-mode=4 ! 'video/x-raw, format=(string)YUY2, width=(int)640, height=(int)720, framerate=5/1' ! vpe ! 'video/x-raw, format=(string)YUY2, width=(int)640, height=(int)720, framerate=5/1' ! filesink location=IMAGE.jpeg
So we have question related to VPE.
Can we capture image/jpeg from v4l2src without using VPE?
We are trying to do with below pipeline But we are getting error, and we check in gst-inspec v4l2src supports image/jpeg .
gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=1 io-mode=4 ! 'image/jpeg, width=(int)640, height=(int)720, framerate=5/1' ! filesink location=IMAGE.jpeg
============================================================================================================================
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.2.3/libs/gst/base/gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.006865408
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
===========================================================================================================================
Please do the needful.
Regards,
-- Ronak