[英]Gstreamer 1.0 - video compositing
Dears, 亲爱的,
I'd like to create simple picture in picture effect by gstreamer 1.0. 我想通过gstreamer 1.0创建简单的画中画效果。
>gst-launch-1.0 -e videotestsrc pattern="snow" ! video/x-raw, framerate=10/1, width=200, height=150 ! videomixer name=mix ! autovideosink videotestsrc ! video/x-raw, framerate=10/1, width=640, height=360 ! mix.
I am getting "videotestsrc" only and pattern "snow" is not overlayed. 我仅获得“ videotestsrc”,并且未覆盖模式“ snow”。
I assume to get something like: 我假设得到类似的东西:
Am I missing something in my gstreamer pipeline? 我在gstreamer管道中缺少什么吗?
Thank you. 谢谢。
Best regards, 最好的祝福,
You should get informations about it here: https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-videomixer.html 您应该在这里获取有关此信息: https : //gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-videomixer.html
The good way to do it: 做到这一点的好方法:
gst-launch-1.0 -e videomixer name=mix \
! autovideosink \
videotestsrc\
! video/x-raw, framerate=10/1, width=640, height=360 \
! mix.sink_0 \
videotestsrc pattern="snow" \
! video/x-raw, framerate=10/1, width=200, height=150 \
! mix.sink_1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.