This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

image encoding using gstreamer on L138

Hi

I have L138 and I use DVSDK 04.03.00.06.

I need to take still images with a camera.

# GST_DEBUG=v4l2src:5 gst-launch v4l2src always-copy=false blocksize=1024 num-buffers=850 device=/dev/video1 ! TIImgenc1 resolution=720x576 iColorSpace=YUV422P oColorSpace=YUV422P qValue=75 ! filesink location=./output.jpg -v
Setting pipeline to PAUSED ...
0:00:00.730735048  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:606:gst_v4l2src_get_caps:<v4l2src0> unknown format 909203022
0:00:00.731819938  1090    0xa7c60 INFO                 v4l2src gstv4l2src.c:612:gst_v4l2src_get_caps:<v4l2src0> probed caps: EMPTY
0:00:00.734990732  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:449:gst_v4l2src_negotiate:<v4l2src0> caps of src: EMPTY
0:00:00.735764159  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:450:gst_v4l2src_negotiate:<v4l2src0> thiscaps: EMPTY
0:00:00.736885924  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:458:gst_v4l2src_negotiate:<v4l2src0> caps of peer: video/x-raw-yuv, format=(fourcc)UYVY, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw-yuv, format=(fourcc)Y42B, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.739034745  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:459:gst_v4l2src_negotiate:<v4l2src0> peercaps: video/x-raw-yuv, format=(fourcc)UYVY, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw-yuv, format=(fourcc)Y42B, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.741183274  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:469:gst_v4l2src_negotiate:<v4l2src0> peer: video/x-raw-yuv, format=(fourcc)UYVY, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.745007619  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:470:gst_v4l2src_negotiate:<v4l2src0> ipcaps: video/x-raw-yuv, format=(fourcc)UYVY, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.746517223  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:469:gst_v4l2src_negotiate:<v4l2src0> peer: video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.747795324  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:470:gst_v4l2src_negotiate:<v4l2src0> ipcaps: video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.749260010  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:469:gst_v4l2src_negotiate:<v4l2src0> peer: video/x-raw-yuv, format=(fourcc)Y42B, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.750534611  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:470:gst_v4l2src_negotiate:<v4l2src0> ipcaps: video/x-raw-yuv, format=(fourcc)Y42B, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
0:00:00.751906379  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:482:gst_v4l2src_negotiate:<v4l2src0> intersect: (NULL)
0:00:00.754797377  1090    0xa7c60 DEBUG                v4l2src gstv4l2src.c:483:gst_v4l2src_negotiate:<v4l2src0> icaps: (NULL)
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

it seems that v4l2src cannot determinate stream format from vpif (if I understand well).

where am I wrong?

which command line should I use?

best regards