GStreamer-1.2.1 appsink opencv-2.4.7 buffers and IplImage conversion

Dirk Van Haerenborgh vhdirk at gmail.com
Mon Jan 13 11:16:58 PST 2014


You might also want to take a look at the GStreamer highgui backend in
OpenCV itself (gst 1.x support starting from opencv 3.0).
https://github.com/Itseez/opencv/blob/master/modules/highgui/src/cap_gstreamer.cpp

Cheers,
-Dirk


On 13 January 2014 20:04, lebies <debeer.leon at gmail.com> wrote:

> Positive progress !
>
> I'm happy to say I've made some progress.
>
> I strung a gtk window together (very untidily!), but it was to see if
> and/or
> what I was getting into the pixbuf. I now have the stream playing and
> displaying the video.
>
> To my mind this means the *messaging*, *gst_app_sink_pull_sample*,
> *gst_sample_get_buffer*, *gst_buffer_map* and *gdk_pixbuf_new_from_data*
> are
> working as they should - and I get image data where it's expected.
>
> All I added for the experiment was a *gtk_image_set_from_pixbuf* and
> *gtk_widget_queue_draw* to display the images. Probably messed with the
> g_main_loop_run, but messaging and other stuff still works. My conclusion
> is
> gstreamer is doing what it should be.
>
> I am now pretty sure my problems arise from converting the gst-buffer to an
> IplImage for OpenCV to work on.
>
> I'll also try David's suggestion and incorporate more of the
> gst-plugins-bad
> opencv stuff.
>
> More to follow...
>
> Leon
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/GStreamer-1-2-1-appsink-opencv-2-4-7-buffers-and-IplImage-conversion-tp4664627p4664640.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140113/ebed5675/attachment-0001.html>


More information about the gstreamer-devel mailing list