appsink in gstreamer1.0 python

Tim Müller tim at
Sat Feb 22 08:54:07 PST 2014

On Sat, 2014-02-22 at 00:40 -0800, troywang wrote:

> I use appsink in gstreamer1.0(python) to  grab data from pipeline ,but I
> cann't get the data ? the program is as follow ,what should I do?
> def on_new_buffer(appsink):
>     #Gst.MapInfo info
>     buf = appsink.emit('pull-sample')
>     print 'new buffer '
>     info =
>     return False  

I think map() doesn't work properly in g-i bindings yet for various
reasons (there's a long bug about it), but you should be able to get to
the data using buffer.extract() or buffer.extract_dup().

Tim Müller, Centricular Ltd -

More information about the gstreamer-devel mailing list