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.
大家好!
我在使用DM3730采集USB摄像头的视频信息,经过H264压缩之后,再通过udp传输出去,本人使用的是DVSDK中的GStreamer做的:
以下使用的命令是可以通过的,如下:
gst-launch -v v4l2src device=/dev/video2 ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,format=(fourcc)
UYVY' ! TIVidenc1 codecName=h264enc engineName=codecServer ! rtph264pay pt=96 ! udpsink host=192.168.1.150 port=5000
当时当我加入rateControlPreset=2,也就是说rateControlPreset = IVIDEO_LOW_DELAY,采用低延迟方式的时候,就会出现错误:
gst-launch -v v4l2src device=/dev/video2 ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,format=(fourcc)
UYVY' ! TIVidenc1 codecName=h264enc engineName=codecServer rateControlPreset=2 ! rtph264pay pt=96 ! udpsink host=192.168.1.150 port=5000
错误如下:
ERROR: from element /GstPipeline:pipeline0/GstTIVidenc1:tividenc10: failed to create video encoder: h264enc
Additional debug info:
gsttividenc1.c(1502): gst_tividenc1_codec_start (): /GstPipeline:pipeline0/GstTIVidenc1:tividenc10
Execution ended after 215423574 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/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = NULL
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = NULL
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = NULL
Setting pipeline to NULL ...
Freeing pipeline ...
root@dm37x-evm:~#
请各位朋友帮忙解决,谢谢!