GstBuffer to numpy conversion
Chuck Crisler
ccrisler at mutualink.net
Tue Dec 18 06:21:42 PST 2012
Or request RGB from the capture source.
On Mon, Dec 17, 2012 at 3:53 PM, Michael Smith <mlrsmith at gmail.com> wrote:
> On Mon, Dec 17, 2012 at 11:52 AM, Peter Rennert <p.rennert at cs.ucl.ac.uk>
> 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.
>
> Mike
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121218/97000471/attachment-0001.html>
More information about the gstreamer-devel
mailing list