appsink in gstreamer1.0 python
Tim Müller
tim at centricular.com
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 = Gst.Buffer.map(buf)
> 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().
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list