GstBuffer to numpy conversion

Michael Smith mlrsmith at
Mon Dec 17 12:53:38 PST 2012

On Mon, Dec 17, 2012 at 11:52 AM, Peter Rennert <p.rennert at> wrote:
> I am using gstreamer 0.10 with python bindings.
> I want to convert a gst buffer into a numpy array. Online I found only
> examples [1] for audio and they are using

You didn't describe what format of raw video you're using - it's
probably, based on the 1.5 bytes per pixel figure you quoted, some
sort of 4:2:0 YUV format.

If you're expecting/wanting RGB data, you'll need to use capfilter and
a colourspace converter to get that.


More information about the gstreamer-devel mailing list