AW: How to create a ticker-tape?

Tim Müller tim at centricular.com
Tue Feb 2 14:44:49 PST 2016


On Tue, 2016-02-02 at 13:43 -0800, Arjen Veenhuizen wrote:

> That should work. Thanks!

Textoverlay's "xpos" and "ypos" properties are controllable with
GstController, for what it's worth, and since 1.6 we
have gst_direct_control_binding_new_absolute () so you can pass
absolute values. This should allow you to achieve a smooth xpos
increase as timestamps increase in combination with e.g.
GstInterpolationControlSource.

Haven't tried it though, let us know if something doesn't work right!

An alternative approach would be to render the ticker band yourself
into an RGBA buffer or so using some other API (e.g. Cairo) and then
use one of the overlays/compositor elements (gdkpixbufoverlay,
compositor with positioning done via sinkpad properties, gloverlay,
etc.).

Cheers
 -Tim

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




More information about the gstreamer-devel mailing list