想要将图像与 gstreamer 中 synaescope 的输出合并

问题描述 投票:0回答:1

我正在使用 synaescope 在我的树莓派上显示一些音乐可视化。

gstreamer 中有某种图像合并功能吗?我想要有 Synaescope 在图像上书写。可能将所有黑色像素替换为图像以供 Synaescope 输出。

作为参考,我的完整管道如下所示。 (

gst-launch-1.0 audiotestsrc ! tee name=t ! queue ! audioconvert ! audioresample ! autoaudiosink t. ! queue ! audioconvert ! synaescope ! video/x-raw,width=1000,height=400,pattern-aspect-ratio=1/1 ! videoconvert ! fbdevsink
gstreamer
1个回答
0
投票

您可以使用 compositor 元素,例如:

gst-launch-1.0 \
compositor name=comp \
  sink_0::xpos=0  sink_0::ypos=0  sink_0::width=1200 sink_0::height=600 sink_0::zorder = 0 \
  sink_1::xpos=50 sink_1::ypos=50 sink_1::width=1000 sink_1::height=400 sink_1::zorder = 1 \
  ! videoconvert ! autovideosink \
videotestsrc pattern=ball ! video/x-raw,width=1200,height=600 ! videoconvert ! video/x-raw,format=RGBA ! queue ! comp.sink_0 \
audiotestsrc ! tee name=t \
  t. ! queue ! audioconvert ! audioresample ! autoaudiosink \
  t. ! queue ! audioconvert ! synaescope ! video/x-raw,format=BGRx,width=1000,height=400,pixel-aspect-ratio=1/1 ! alpha method=custom target-r=0 target-b=0 target-g=0 black-sensitivity=128 white-sensitivity=0 ! video/x-raw,format=RGBA ! queue ! comp.sink_1
© www.soinside.com 2019 - 2024. All rights reserved.