GStreamer-1.2.1 appsink opencv-2.4.7 buffers and IplImage conversion

lebies debeer.leon at gmail.com
Mon Jan 13 11:04:47 PST 2014


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.


More information about the gstreamer-devel mailing list