Novice

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Novice

JRPC
Hi
    I am working on a vision system for robotics and have recently
started using GStreamer. I currently have two filters one that allows
me to sample pixels from areas in the visual field and another that
classifies the visual field and identifies blobs of color.
    I *love* GStreamer! You guys have done an excellent job on the
software. However, the ease of use is not so excellent. The documentation
says to use make_element but not what to do after (or before) that.
I found out that

cd src
make_element plugin
cd ..
./autogen.sh
make

will compile a filter called gstplugin an put it in src/.libs
and I can then invoke it like this

export GST_PLUGIN_PATH=/home/john/gst-template.classify/gst-plugin/src/.libs
gst-launch-0.10 v4l2src device="/dev/video0" ! video/x-raw-yuv,width=640,height=480,framerate=30/1 !  plugin ! xvimagesink

Very good. The problem comes when I try to use make_element with any other
command line. Specifing a different (non default) template or a name other
than plugin produces a stream of compiler errors. I have tried modifing the
Makefile.am in src and even the autogen.sh without any success.
So now I have two gst-template directorys one called gst-template.classify
and one called gst-template.sample, both of which produce a plugin called
plugin which I select via the GST_PLUGIN_PATH

I am writing this for three reasons :-
One, can someone tell me what I'm doing wrong?
Two, in case anyone is having the same problems, here is a work around.
Three, is anyone working on a "Getting started with GStreamer for the
uninitiated" and if so can I help?

JC




------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Novice

JRPC
Update on my tribulations getting started with GStreamer

I can now generate multiple plugins from gstplugin. The problem
was that I didn't know enough about automake. You need to be
very careful in modifying Makefile.am. Some extra examples would
have been very helpful. To that end I have attached the Makefile.am
that I use to compile two plugins sample and classify.
My initial procedure was :-
git
cd gst-template/gst-plugin/src
../tools/make_element classify
../tools/make_element sample
gedit Makefile.am
cd ..
./autogen.sh
make


I have been unable to generate any plugins from the gsttransform template.
If I do
../tools/make_element classify gsttransform

then make produces lots of errors
If I change the #include "gsttransform.h" in gstclassify.c to
#include "gstclassify.h" the make compiles ok but when I try to use
the plugin, it fails saying "gst_object_sync_values is undefined".
Any ideas what I'm doing wrong?

JC




------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

Makefile.am (4K) Download Attachment