GNOME Bugzilla – Bug 526670
[textoverlay] Ignores pango background and foreground attribute color values
Last modified: 2011-05-19 07:07:01 UTC
Please describe the problem: when specifying <span foreground="#FF0000">Text</span> textoverlay ignores the color value and renders in white Steps to reproduce: 1. gst-launch videotestsrc ! textoverlay text="<span font_desc=\"Domestic Manners\" size=\"40000\" foreground=\"#FF0000\">bllaaaaaaaaa</span>" ! ffmpegcolorspace ! glimagesink 2. 3. Actual results: The rendered text is white Expected results: The rendered text should be in red Does this happen every time? Yes Other information:
Created attachment 119781 [details] New plugin GstTextOverlay2 header
Created attachment 119782 [details] New plugin GstTextOverlay2 source
The plugin can be built in gst-plugins-base/ext/pango by modifying the Makefile and adding pangocairo as a dependency. The plugin uses RGB as format, parses pango-ml as it should, color works, added alpha channel on the renederer and text can be rotated.
Is in these files anything to fix? Any comments?
Hi. Now I have a same problem. After reading your comments, I tried to compile textoverlay2 in gstreamer-0.10.23/ gst-plugins-base-0.10.23 make/ make install are OK .But it does not work. I got a error message like this. (gst-inspect-0.10:15982): GStreamer-WARNING **: Failed to load plugin '/home/pym/local/lib/gstreamer-0.10/libgstpango.so': /home/pym/local/lib/gstreamer-0.10/libgstpango.so: undefined symbol: pango_cairo_update_layout What shall I do? If you know about this, please give me some info.
This works now with the textoverlay plugin but I'm not sure when this was fixed how. It is now also possible to select a default text color with the color property.