[gst-devel] Video surveillance application

Stefan Kost ensonic at hora-obscura.de
Wed Feb 4 15:05:20 CET 2009


Andrzej Polatyński schrieb:
> Hello,
>
> I'm writing a simple video surveillance application. I started with
> creating simple GUI and basic gst pipeline for viewing live video
> stream.
>
> Now I want to add some video analyzing code to perform abandoned
> object detection. For this I need to grab video frames. I found this
> element gdkpixbufsink and thought that it can be used for my task, but
> I couldn't force it to work yet. As of now, my pipeline looks like
> this:
>
> v4l2src -> ffmpegcolorspace -> tee -> xvimagesink
>                                                   \-> gdkpixbufsink
>
> Is my approach good? Does the gdkpixbufsink need a separate thread? Is
> there any other way of getting video frames?
>   
xvimagesink (like all basesinks) also have a last-buffer property.

What I would do is to write a videofilter based plugin that analyzes the
video frames and sends a bus-message. Look at gst-plugins-bad. there is
a videoanalyze element.

Stefan
> My second problem is how to draw over output video images, so that
> user could see for example an red outline indicating a detected object
> through xvimagesink. I see that there are some elements that can
> overlay text, but I can't find any element that could overlay an
> image.
>
>
>   





More information about the gstreamer-devel mailing list