Gst.sample Gst.Buffer data appsink

troywang troywang123 at
Tue Feb 25 02:18:28 PST 2014

Hi all:
I use appsink to get data from pipeline in python-gstreamer1.0,and now I can
get Gst.Buffer in 'new sample':

sample = appsink.emit("pull-sample")
buffer = sample.get_buffer()

But what should I do to get data from buffer? I used,but
invalid(I am in python). And can buf.extract() get data?if so ,how to do for
the parameters? is that right?:

p = create_string_buffer(buffer_size)
buffer_size = buffer.get_size()


View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list