On 18 Oct 2012, at 06:58,
phani...@gmail.com wrote:
> I tried stb-record and it works. But, when I try to play the test using
> stb-run, I get this error
>
> glib.Error: no element "stb-motiondetect"
>
> Also, when i try to execute this command, gst-inspect stbt-templatematch
>
> I get the error "No such element or plugin stbt-templatematch"
stb-tester provides a GStreamer plugin (libgst-stb-tester.so) but
GStreamer isn't finding that plugin.
How did you install stb-tester? If you follow the instructions at
http://stb-tester.com/getting-started.html#building-installing-stb-tester
i.e. "make prefix=$HOME; make prefix=$HOME install"
then stb-tester's GStreamer plugin should be installed in
$HOME/.gstreamer-0.10/plugins, which is on GStreamer's search path. And
the "stbt" program will be installed in $HOME/bin, which you can add to
your normal program search PATH.
Note that you should do "make clean" before attempting the above steps,
because some of the files produced by running "make" (specifically,
"stbt") may still refer to a different prefix from the previous time you
ran "make".
If you want to install stb-tester for all users, instead of in your home
directory, then you'll have to figure out the correct destination
directories for your system (Ubuntu). You could ask your package
manager[1] where it installed the libraries (*.so files) from package
gstreamer0.10-plugins-base (probably somewhere under /usr/lib). Then run
stb-tester's "make" and "make install", specifying the corresponding
paths -- see the RPM spec file[2] for how this is done on RedHat-based
systems. I recommend you only take this approach if you understand the
Linux filesystem hierarchy: What things like "libexecdir" mean.[3]
The final option is not to run "make install" at all, but to run
"stbt-run" (not "stbt run") directly from the directory where you built
stb-tester. For this to work you will have to tell GStreamer where to
find libgst-stb-tester.so, by setting GST_PLUGIN_PATH[4] to point at the
"gst" directory under your "stb-tester" directory.
[1] Something like "dpkg -L package-name"
[2]
https://github.com/drothlis/stb-tester/blob/master/extra/stb-tester.spec
[3]
http://www.gnu.org/software/make/manual/html_node/Directory-Variables.html#Directory-Variables
[4]
http://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/gst-running.html
Cheers,
Dave.