After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526670 - [textoverlay] Ignores pango background and foreground attribute color values
[textoverlay] Ignores pango background and foreground attribute color values
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.18
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-04-07 08:31 UTC by Dejan Sakelšak
Modified: 2011-05-19 07:07 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
New plugin GstTextOverlay2 header (5.52 KB, text/x-chdr)
2008-10-02 14:43 UTC, Dejan Sakelšak
Details
New plugin GstTextOverlay2 source (49.97 KB, text/x-csrc)
2008-10-02 14:43 UTC, Dejan Sakelšak
Details

Description Dejan Sakelšak 2008-04-07 08:31:50 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:
Comment 1 Dejan Sakelšak 2008-10-02 14:43:28 UTC
Created attachment 119781 [details]
New plugin GstTextOverlay2 header
Comment 2 Dejan Sakelšak 2008-10-02 14:43:56 UTC
Created attachment 119782 [details]
New plugin GstTextOverlay2 source
Comment 3 Dejan Sakelšak 2008-10-02 14:47:39 UTC
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.
Comment 4 Dejan Sakelšak 2008-10-09 07:20:29 UTC
Is in these files anything to fix? Any comments?
Comment 5 parkyunm 2009-08-10 09:27:02 UTC
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.

Comment 6 Sebastian Dröge (slomo) 2011-05-19 07:07:01 UTC
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.