Scrolling text that does not fit without wrapping
David Ventura
davidventura27 at gmail.com
Thu Oct 12 14:08:10 UTC 2017
Hi
I want to scroll some text on top of a video file, this works OK using
textoverlay with position=absolute and modifying the deltax attribute to
make it scroll.
If I use a really long text, it fits the width of the video and wraps to a
new line, and also scrolls OK.
My problem is that setting wrap-mode=none with really long text (that
obviously doesn't fit in one line, hence the scrolling) pango throws a fit
and does not render text
I get spammed to death with:
(python3:11404): Pango-WARNING **: pango-layout.c:3209: broken PangoLayout
My code is here: https://hastebin.com/voqebetalo.py
but the pipeline essentially is
filesrc ! decodebin name=decoder ! textoverlay ! autovideosink decoder. !
autoaudiosink
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171012/33da2515/attachment.html>
More information about the gstreamer-devel
mailing list