Re: [stb-tester] Need help in installation of stb-tester on Ubuntu

320 views
Skip to first unread message

David Röthlisberger

unread,
Oct 17, 2012, 4:17:14 AM10/17/12
to phani...@gmail.com, stb-t...@googlegroups.com
On 17 Oct 2012, at 06:21, phani...@gmail.com wrote:
> After cloning, when I try to make install on the folder, I am getting
> error stating some packages like
>
> gstreamer-0.10, gstreamer-base-0.10 and many othere are not found.
>
> When I try to install these packages using apt-get, I am getting the
> error stating these packages could not be located.

Hi,

I recommend that before you try running "make install", you follow the
instructions at http://stb-tester.com/getting-started.html to ensure
that you have a correct GStreamer installation.

Judging from your mention of "apt-get", you are using a Debian or Ubuntu
system; the above instructions were tested on RedHat-based systems, so
the names of the packages will be slightly different. I don't have an
Ubuntu system to test on, so I did some searches on
http://packages.ubuntu.com and it looks like the packages you need are:

* For running GStreamer (i.e. the "GStreamer primer" section of the
getting started article): Packages "gstreamer-tools" (for
command-line programs like "gst-launch" and "gst-inspect") and
"gstreamer0.10-plugins-base".

* For compiling stb-tester: Packages "libgstreamer0.10-dev",
"libgstreamer-plugins-base0.10-dev", etc.

To find the right package names you can also try "apt-cache search
gstreamer" from the command line, or a graphical package management tool
like Synaptic.

Good luck!
Dave.

David Röthlisberger

unread,
Oct 18, 2012, 5:01:01 AM10/18/12
to phani...@gmail.com, stb-t...@googlegroups.com
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.

ekelly

unread,
Oct 18, 2012, 5:08:51 AM10/18/12
to stb-t...@googlegroups.com, phani...@gmail.com

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. 

I've install stbt a few times now, and I know in a few of those installations libgst-stb-tester.so failed to copy to this plugin directory for whatever reason. I manually copied it from ~/stb-tester/gst/ to the gstreamer plugin directory and got everything working fine from there on. 

ekelly

unread,
Oct 19, 2012, 4:43:19 AM10/19/12
to stb-t...@googlegroups.com, phani...@gmail.com


On Friday, October 19, 2012 8:38:18 AM UTC+1, phani...@gmail.com wrote:
Thanks guys.. I installed stb-tester in the folder  /usr/lib and now stb-run is recognizing stbt-motiondetect and gst-launac is recognizing stbt-templatematch.

I am still having an issue when I try to compare images using
gst-launch videotestsrc \
    ! stbt-templatematch template=stb-tester/tests/videotestsrc-bw.png \
    ! ffmpegcolorspace ! ximagesink
 

I am not seeing the red border around the element as stated in the example. What might be the probable reason for this?


Check your path for  "stb-tester/tests/videotestsrc-bw.png", be sure this is the correct path from your current working directory. I know that when I first tried to run this I was already in the stb-tester directory so needed to truncate it to tests/videotestsrc-bw.png

Reply all
Reply to author
Forward
0 new messages