Overlay with python, appsrc, cairo and a full cast of errors

Mark Howell mark-sub1 at hypgnosys.org
Sun Mar 2 21:19:42 PST 2014


On 03/02/2014 05:23 PM, Michael Tyson wrote:
[snip]
>
> Unfortunately, the Python bindings appear to be stuffed with
> cairooverlay too (" 'gobject.GBoxed' object has no attribute
> ‘set_source_rgba’” from within the draw callback), so I’ll switch to C
> for the project and see how it goes.
>

Michael, FWIW the gstreamer cairooverlay element and pycairo can be 
coerced to work together, at least it is working for me atm. See 
workaround attached to bug at 
https://bugzilla.gnome.org/show_bug.cgi?id=694604.

In this scenario cairooverlay generates its own cairo context and passes 
that to your app via the draw signal, and the workaround code enables 
you to wrap that cairo_t in a pycairo Context so you can decorate the 
frame in Python.

Cheers,

Mark.



More information about the gstreamer-devel mailing list