<div dir="ltr">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).<div><a href="https://github.com/Itseez/opencv/blob/master/modules/highgui/src/cap_gstreamer.cpp">https://github.com/Itseez/opencv/blob/master/modules/highgui/src/cap_gstreamer.cpp</a><br>

</div><div><br></div><div>Cheers,</div><div>-Dirk</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 13 January 2014 20:04, lebies <span dir="ltr"><<a href="mailto:debeer.leon@gmail.com" target="_blank">debeer.leon@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Positive progress !<br>
<br>
I'm happy to say I've made some progress.<br>
<br>
I strung a gtk window together (very untidily!), but it was to see if and/or<br>
what I was getting into the pixbuf. I now have the stream playing and<br>
displaying the video.<br>
<br>
To my mind this means the *messaging*, *gst_app_sink_pull_sample*,<br>
*gst_sample_get_buffer*, *gst_buffer_map* and *gdk_pixbuf_new_from_data* are<br>
working as they should - and I get image data where it's expected.<br>
<br>
All I added for the experiment was a *gtk_image_set_from_pixbuf* and<br>
*gtk_widget_queue_draw* to display the images. Probably messed with the<br>
g_main_loop_run, but messaging and other stuff still works. My conclusion is<br>
gstreamer is doing what it should be.<br>
<br>
I am now pretty sure my problems arise from converting the gst-buffer to an<br>
IplImage for OpenCV to work on.<br>
<br>
I'll also try David's suggestion and incorporate more of the gst-plugins-bad<br>
opencv stuff.<br>
<br>
More to follow...<br>
<br>
Leon<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/GStreamer-1-2-1-appsink-opencv-2-4-7-buffers-and-IplImage-conversion-tp4664627p4664640.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/GStreamer-1-2-1-appsink-opencv-2-4-7-buffers-and-IplImage-conversion-tp4664627p4664640.html</a><br>


<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>