我有两个摄像头,一个是微软,另一个是罗技。
对于这两款相机,我使用了以下的管道。
gst-launch-1.0 -v v4l2src device=/dev/video1 ! videoconvert ! video/x-raw,format=I420,width=640,height=480 ! fpsdisplaysink
对于Microsoft:
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:678,drop:10,current:30.10,average:29.71
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:678,drop:10,current:30.10,average:29.71
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:678,drop:10,current:30.10,average:29.71
但是,当我把手移到相机附近时,或者我用手关闭相机,结果就是,
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:2554,drop:44,当前:7.52 ,平均:28.93
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0 / GstTextOverlay:fps-display-text-overlay:text = rendered:2558,dropped:44,当前:7.51,平均值:28.81
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:2558,drop:44,当前:7.51,平均值:28.81
帧速率出现大幅下降。 这个场景中的问题是什么以及如何解决它?
对于罗技:
我用过的管道相同,但结果如下,
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:0,丢弃:79, fps:0.00,丢弃率:24.07
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:0,丢弃:79, fps:0.00,丢弃率:24.07
/ GstPipeline:pipeline0 / GstFPSDisplaySink:fpsdisplaysink0:last-message = rendered:0,drop:79, fps:0.00 ,掉落率:24.07
我完全糊涂了,这两个场景的问题是什么?