Using the CairoContext from cairooverlay element

Sebastian Dröge sebastian at
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
> (,
> 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 -
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: <>

More information about the gstreamer-devel mailing list