Hello everyone,
I am using our custom DM368 evolution module with DVSDK 4.02. With the pipeline below,
i can get the camera output succesfully:
gst-launch v4l2src always-copy=FALSE input-src=composite ! 'video/x-raw-yuv, width=(int)720, height=(int)576,\
format=(fourcc)UYVY, framerate=(fraction)25/1' ! queue ! tidisplaysink2 video-standard=NTSC display-output=composite
But when i want to encode the stream, with h264, this pipeline doesn't work:
gst-launch v4l2src always-copy=FALSE input-src=composite num-buffers=500 ! 'video/x-raw-yuv, width=(int)720, \
height=(int)576, format=(fourcc)UYVY' ! TIVidenc1 codecName=h264enc engineName=codecServer \
contiguousInputFrame=TRUE ! rtph264pay pt=96 ! udpsink port=5500 host=192.168.1.255
The output of the pipeline is:
......
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)576
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)576
/GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30000/1001, width=(int)720, height=(int)576
ERROR: from element /GstPipeline:pipeline0/GstTIVidenc1:tividenc10: failed to create video encoder: h264enc
Additional debug info:
gsttividenc1.c(1272): gst_tividenc1_codec_start (): /GstPipeline:pipeline0/GstTIVidenc1:tividenc10
Execution ended after 61934917 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...
i think this is because color format used (UYVY). Because it seems to work with format=(fourcc)NV12,
but client side receives corrupted video. Isn't there support for UYVY color format in TIVidenc1?
Thank you very much
Ayhan Yuksel
www.sste.com.tr