<div dir="ltr"><div>The plugin writers guide recommends using gst-element-maker to create new plugins. So I cloned gst-plugins-bad and ran</div><div><br></div><div><div>t$ ./gst-plugins-bad/tools/gst-element-maker --help</div>
<div><br></div><div>which produced:</div><div><br></div><div>Usage: element-maker [OPTIONS] ELEMENT_NAME BASE_CLASS</div><div>Create a GStreamer element that subclasses BASE_CLASS.</div><div>Options:</div><div> --help Print this information</div>
<div> --prefix PREFIX Use PREFIX instead of "gst"</div><div>Example: 'element-maker my_element basetransform' will create the files</div><div> gstmyelement.c and gstmyelement.h that implement GstMyElement, a</div>
<div> subclass of GstBaseTransform, as an element named myelement.</div></div><div><br></div><div><br></div><div><br></div><div>Not knowing anything else to try, I tried:</div><div><br></div><div>$ ./gst-plugins-bad/tools/gst-element-maker my_element basetransform</div>
<div><br></div><div>which produced:</div><div><br></div><div>./gst-plugins-bad/tools/gst-element-maker: 383: ./gst-plugins-bad/tools/gst-element-maker: gst-indent: not found</div><div>pkg is gstreamer-base-1.0</div><div>
<br>
</div><div><br></div><div>So now I have a few questions…</div><div><br></div><div>1) I ran the version of gst-element-maker from the master branch. Is that a reasonable version to use? Or should I use the version from the 1.2.3 tag?</div>
<div><br></div><div>2) What are my options for BASE_CLASS? I expect, for the element I'm writing, basetransform is likely to be the right base class for me, but how would I know? Where would I look to learn about basetransform? Oh, wait a minute, I just found GstBaseTransform listed in the Gstreamer Library Reference Manual. That seems like a reasonable place to look for candidate base classes. Are there other places I should consider?</div>
<div><br></div><div>3) How much should I be worried about the "gst-indent: not found" error?</div><div><br></div><div>4) I notice that the script produced gstmyelement.c & gstmyelement.h, but it also produced a gstmyelement.o and gstmyelement.so. That's kinda cool, except that I'm going to have to reproduce gstmyelement.{o,so} as soon as I modify gstmyelement.[ch]. Is there any way to have the script produce a Makefile as well?</div>
<div><br></div><div>Thanks for any tips…</div><div><br></div><div>--wpd</div><div><br></div></div>