Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gstreamer三流合成图像_Gstreamer_Compositing - Fatal编程技术网

Gstreamer三流合成图像

Gstreamer三流合成图像,gstreamer,compositing,Gstreamer,Compositing,我正在尝试使用gstreamer的videomixer插件合成三个流。 我找到了这个线程,我可以设法将两个流并排放置,但我不知道如何添加第三个流。有人能帮忙吗 我使用并工作的原始命令: gst-launch-1.0 uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefr

我正在尝试使用gstreamer的videomixer插件合成三个流。 我找到了这个线程,我可以设法将两个流并排放置,但我不知道如何添加第三个流。有人能帮忙吗

我使用并工作的原始命令:

gst-launch-1.0 uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! videomixer name=m sink_1::xpos=320 ! autovideosink uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m.
我的版本有两个udp流,也可以工作:

gst-launch-1.0 -v udpsrc port=9000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! avdec_h264 ! videoconvert ! videomixer name=m sink_1::xpos=640 ! autovideosink -v udpsrc port=9001 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! avdec_h264 ! videoconvert! m.

但是如何添加第三个流呢

为什么只停在3点,让我们做4点:)

让它的格式稍微好一点:

gst-launch-1.0 \
videomixer name=m sink_1::xpos=320 sink_2::ypos=240 sink_3::xpos=320 sink_3::ypos=240 ! autovideosink \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m.
开始创建处理结束时的元素没有问题。。使用gst启动,您只需定义哪些元素链接到哪些其他元素。。其余的gst发布可以自行解决

您只需复制粘贴创建输入的部件,并最终链接到m。。然后,您需要添加另一个sink_XX::some pos=ZZZ

我想你能搞定剩下的


HTH

为什么只停在3,让我们做4:)

让它的格式稍微好一点:

gst-launch-1.0 \
videomixer name=m sink_1::xpos=320 sink_2::ypos=240 sink_3::xpos=320 sink_3::ypos=240 ! autovideosink \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m. \
uridecodebin uri=http://old.koniclab.info/fileadmin/images/koniclab_logo_negro.png ! videoscale ! video/x-raw, width=320, height=240 ! imagefreeze ! m.
开始创建处理结束时的元素没有问题。。使用gst启动,您只需定义哪些元素链接到哪些其他元素。。其余的gst发布可以自行解决

您只需复制粘贴创建输入的部件,并最终链接到m。。然后,您需要添加另一个sink_XX::some pos=ZZZ

我想你能搞定剩下的


HTH

谢谢你,这很有效,看起来确实是一个很好的格式。由于某种原因,我收到一条错误消息,说没有glvideomixer元素,但使用videomixer可以工作。@alainbaumann改为videomixer。。如果它解决了你的问题,你可以在计票下面打勾接受这个问题,如果你真的喜欢它,你也可以向上打勾,这个方法很有效,确实看起来格式很好。由于某种原因,我收到一条错误消息,说没有glvideomixer元素,但使用videomixer可以工作。@alainbaumann改为videomixer。。如果它解决了你的问题,你可以接受在计票下面打勾的问题,如果你真的喜欢它,你也可以向上投票