Gstreamer 文本覆盖内存中的变量

Gstreamer text overlay from variables on memory

我运行正在执行如下命令,此命令将视频广播到以太网端口。但我的问题是如何将叠加层添加到视频中,其中叠加层值存储在共享内存中并且可能随时更改。

gst-launch-1.0 -v videotestsrc ! video/xraw,format=NV16, width=1920, height=1080, framerate=30/1 ! omxh264enc ! queue ! rtph264pay config-interval=10 ! udpsink host=192.168.1.5 port=5004

我应该 运行 另一个线程来做吗?

看起来像 compositor or videomixer plugin is what you are looking for. I've never used them myself so I can't be much help, but there's a nearly complete list of plugins here