how to write a plugin
Gstreamer 提供了一些工具来生成 plugin 的样板代码 git clone https://gitlab.freedesktop.org/gstreamer/gst-template.git cd gst-template/gst-plugin/src ../tools/make_element MyFilter 然后我们就可以来构建自己的 plugin meson build ninja -C build 另外一个更加推荐的选择是采用 gst-plugins-bad 仓库中的 gst-element-maker 工具