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.

Negotiation problem in v4l2src

I want to capture and encode the video in omap35x platform. 

I am trying the following pipeline

gst-launch -v v4l2src always-copy=FALSE num-buffers=2000 ! TIVidenc1 codecName=mpeg4enc engineName=encode contiguousInputFrame=TRUE ! filesink location=sample.m4v

I am facing the following error

Setting pipeline to PAUSED ...

(gst-launch-0.10:1336): GStreamer-WARNING **: pad v4l2src0:src returned caps which are not a real subset of its template caps
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2719): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

Please suggest if I am doing any mistake.
  • Hello,

    Looks like your video capture source does not support UYVY format needed by TIVidenc1 element, try adding "ffmpegcolorspace" element in your pipeline to see if that helps

    gst-launch -v v4l2src num-buffers=2000 always-copy=FALSE ! ffmpegcolorspace ! 'video/x-raw-yuv,format=(fourcc)UYVY' ! TIVidenc1 codecName=mpeg4enc engineName=encode ! filesink location=sample.m4v

    Also looks like you are using very old gstreamer or dvsdk release and i would suggest moving to latest version.

    Thanks

    Brijesh