Using the CairoContext from cairooverlay element

Sebastian Dröge sebastian at centricular.com
Fri Feb 14 14:01:17 PST 2014


On Fr, 2014-02-14 at 05:03 -0800, superlou wrote:
> Using Gstreamer via the PyGObject bindings, I have a pipeline that looks like
> videotestsrc | cairooverlay | videoconvert | xvimagesink.  I'd like to draw
> an SVG over the video, so I've connected the "draw" signal from the
> cairooverlay element to a python callback.  In the callback
> (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-cairooverlay.html#GstCairoOverlay-draw),
> the CairoContext looks ok at first glance: if I "print context" Python says
> it's a CairoContext.  However, if I try to perform any Cairo commands
> (move_to, stroke, etc.), I get a no attribute found error.
> 
> Are there any steps that must be taken before the CairoContext can be used?

No, you should just be able to use it. This looks like something going
wrong with the Python bindings, either on pygobject side or the Python
cairo bindings.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140214/9ae9389f/attachment.pgp>


More information about the gstreamer-devel mailing list