appsink in gstreamer1.0 python

Tim Müller tim at
Mon Feb 24 01:56:25 PST 2014

On Sun, 2014-02-23 at 17:37 -0800, troywang wrote:


> thanks,but when I use "sample.extract()" or "sample.extract_dup()",It
> returns :AttributeError: 'Sample' object has no attribute
> 'extract_dup'..........  Please help me.

You need to run those on the *buffer*, not the sample. You can get the
buffer with:

  buffer = sample.get_buffer()


Tim Müller, Centricular Ltd -

More information about the gstreamer-devel mailing list