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.

I want to make a pipeline that can take photo and capture->avi ,but there's something wrong

I'm new in using gstreamer on TI, and I meet some problems.

the follow is my commandline:

 gst-launch-0.10 v4l2src always-copy=false num-buffers=200 i
nput-src=COMPOSITE ! video/x-raw-yuv,format=\(fourcc\)NV12,width=640,height=480
! tee name=d d.! queue ! ffmpegcolorspace ! video/x-raw-yuv,format=\(fourcc\)UYV
Y,width=640,height=480 ! TIImgenc1 resolution=640*480 iColorSpace=UYVY oColorSpa
ce=YUV420P qValue=75 engineName=codecServer ! filesink location=/usr/local/bin/o
utput.jpg d.! queue ! TIVidenc1 codecName=h264enc engineName=codecServer contigu
ousInputFrame=TRUE bitRate=2000000 framerate=25 rateControlPreset=2 ! avimux ! f
ilesink location=/usr/local/bin/test.avi

the error message is:

ERROR: from element /GstPipeline:pipeline0/GstTIImgenc1:tiimgenc10: failed to create image encoder: jpegenc

Additional debug info:
gsttiimgenc1.c(1537): gst_tiimgenc1_codec_start (): /GstPipeline:pipeline0/GstTIImgenc1:tiimgenc10
Execution ended after 969037671 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
libv4l2: error turning off stream: Invalid argument

(gst-launch-0.10:1584): GStreamer-CRITICAL **: Failed to deactivate pad v4l2src0:src, very bad
Setting pipeline to NULL ...
libv4l2: error turning off stream: Invalid argument

(gst-launch-0.10:1584): GStreamer-CRITICAL **: Failed to deactivate pad v4l2src0:src, very bad
Freeing pipeline ...

(gst-launch-0.10:1584): GStreamer-CRITICAL **:
Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element

what's the matter ?

thanks.