Problems with text_overlay

Tim Müller tim at centricular.com
Fri Apr 19 09:04:00 UTC 2019


Hi John,

> I've tried to create a caps for this and using the caps in the link
> (it has worked me with KLV data):
> 
> textsrccaps =gst_caps_new_simple("text/x-raw", "format",
> G_TYPE_STRING, "pango-markup, utf8", NULL);
> ...
> 
> How do I set the caps so it is compatible?  I've tried "... 
> G_TYPE_STRING, "{ pango-markup, utf8 }"..." but that did not help.

{ a, b } describes a list of possible values/choices. The actual caps
for the data must be just one of those values, so either

  text/x-raw, format=utf8

or

  text/x-raw, format=pango-markup

Cheers
 Tim
-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list