https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/tree/master/tools
将代码copy到linux系统上,使用命令:bash element-maker my_element basetransform可以创建一个自己的插件模板。
这个工具比gstreamer官网教程中的make_element要好用。生成的插件更方便使用。
以下是gst-element-maker使用介绍:
Usage: element-maker [OPTIONS] ELEMENT_NAME BASE_CLASS
Create a GStreamer element that subclasses BASE_CLASS.
Options:
--help Print this information
--prefix PREFIX Use PREFIX instead of "gst"
Example: 'element-maker my_element basetransform' will create the files
gstmyelement.c and gstmyelement.h that implement GstMyElement, a
subclass of GstBaseTransform, as an element named myelement.
git clone https://gitlab.freedesktop.org/gstreamer/gst-template.git
shell $ cd gst-template/gst-plugin/src
shell $ ../tools/make_element MyFilter
https://gstreamer.freedesktop.org/documentation/plugin-development/basics/boiler.html?gi-language=c