Gst.sample Gst.Buffer data appsink
troywang
troywang123 at gmail.com
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 buffer.map,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()
buffer.extract(0,addressof(p),buffer_size)
HELP! HELP! HELP!
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gst-sample-Gst-Buffer-data-appsink-tp4665499.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list