我试图从我的笔记本电脑上显示来自两个本地摄像机的视频,并将这些视频信号混合在一个窗口中,并使用以下命令(在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.你能帮我理解和解决这个问题吗?
发布于 2021-11-17 14:48:04
我用其他方法解决了这个问题:
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.https://stackoverflow.com/questions/70002203
复制相似问题