以下管道失败。如何调试?出了什么问题?
gst-launch-1.0 -v uvch264src device = / dev / video0 name = src auto-start = true src.vidsrc!排队! video / x-h264! h264parse! avdec_h264! xvimagesink sync = false
将管道设置为PAUSED ...
/ GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:num-buffers = -1
/ GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:device = / dev / video0
/ GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:num-buffers = -1
/ GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:device = / dev / video0
管道是实时的,不需要PREROLL ...
将管道设置为PLAYING ...
新时钟:GstSystemClock
/GstPipeline:pipeline0/GstUvcH264Src:src/GstV4l2Src:v4l2src0.GstPad:src:caps = video / x-raw,format =(string)YUY2,width =(int)2304,height =(int)1536,pixel-aspect- ratio =(fraction)1/1,隔行模式=(string)progressive,framerate =(fraction)2/1
/GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc:caps = video / x-raw,format =(string)YUY2,width =(int)2304,height =(int)1536,pixel-aspect-ratio =(fraction )1/1,交错模式=(字符串)渐进,帧率=(分数)2/1
/GstPipeline:pipeline0/GstUvcH264Src:src.GstGhostPad:vfsrc.GstProxyPad:proxypad0:caps = video / x-raw,format =(string)YUY2,width =(int)2304,height =(int)1536,pixel-aspect- ratio =(fraction)1/1,隔行模式=(string)progressive,framerate =(fraction)2/1
错误:来自element / GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:内部数据流错误。
附加调试信息:
gstbasesrc.c(2865):gst_base_src_loop():/ GstPipeline:pipeline0 / GstUvcH264Src:src / GstV4l2Src:v4l2src0:
流媒体任务暂停,原因没有关联(-1)
执行在0:00:02.891955232之后结束
将管道设置为PAUSED ...
将管道设置为READY ...
将管道设置为NULL ...
解冻管道......
但是vfsrc工作正常。
gst-launch-1.0 -v -e uvch264src device = / dev / video0 name = src auto-start = true src.vfsrc!排队! video / x-raw,format =(string)YUY2,width = 320,height = 240,framerate = 10/1! textoverlay text =“从vfsrc 79879捕获”font-desc =“Sans 24”! xvimagesink sync = false
谢谢,
斯纳
答案 0 :(得分:2)
uvch264src需要链接vfsrc pad。如果你不想使用它,可以将它链接到一个伪装。
gst-launch-1.0 -v uvch264src device=/dev/video0 name=src auto-start=true src.vidsrc ! queue ! video/x-h264 ! h264parse ! avdec_h264 ! xvimagesink sync=false src.vfsrc ! fakesink