在 windows 10 中使用 gstreamer 时如何解决缓冲问题?

How can I solve buffering problem when using gstreamer in windows 10?

我正在尝试从我的笔记本电脑显示来自两个本地摄像机的视频,并将这些视频信号混合在一个 window 中,并使用以下命令(在 Windows 10 中):

gst-launch-1.0 ksvideosrc device-name="VGA WebCam" ! video/x-raw, format=YUY2, framerate=30/1, width=640, height=480 ! compositor name=comp ! videoconvert ! autovideosink ksvideosrc device-name="Philips SPZ2000" ! video/x-raw, format=YUY2, width=160, height=120, framerate=20/1 ! videoconvert ! comp.

屏幕上的视频太慢,出现此消息:

WARNING: from element /GstPipeline:pipeline0/GstCompositor:comp: GStreamer error: clock problem.
Additional debug info:
../libs/gst/base/gstaggregator.c(2077): gst_aggregator_query_latency_unlocked (): /GstPipeline:pipeline0/GstCompositor:comp:
Impossible to configure latency: max 0:00:00.033333333 < min 0:00:00.050000000. Add queues or other buffering elements.

你能帮我理解和解决这个问题吗?

我用其他方式使用合成器解决了这个问题:

gst-launch-1.0 compositor name=comp sink_1::alpha=0.5 sink_1::xpos=10 sink_1::ypos=10 ! videoconvert ! autovideosink ksvideosrc device-name="VGA WebCam" ! video/x-raw, format=YUY2, framerate=30/1, width=640, height=480 ! queue max-size-bytes=2048 ! comp.  ksvideosrc device-name="Philips SPZ2000" ! video/x-raw, format=YUY2, width=176, height=144, framerate=15/1, pixel-aspect-ratio=12/11 ! queue max-size-bytes=2048 ! comp.