[gst-devel] textoverlay and dynamic text - to subtitle or not and if so how?
Andoni Morales
ylatuya at gmail.com
Tue Nov 9 17:16:27 CET 2010
2010/11/9 HaroldJRoth <dlafferty at gmail.com>:
>
> Can textoverlay be used to apply dynamically generated text to a frame?
>
> Background:
>
> I noticed that textoverlay allows manual setting of the "text" property.
> Alternatively, the 'subparse' element can be used feed the 'text_sink' pad.
> Presumably 'subparse' merely decodes "appplication/x-subtitle" and other
> MIME formats
>
> My problem is to run an event handler that cross references the TIMESTAMP to
> CCTV-specific text.
>
> Design alternatives:
>
> The static text could be set by an event handler able to do the lookup. The
> event would have to be triggered whenever overlay received a new time stamp.
> Unfortunately, such an event is not exposed.
>
> Alternatively, I could use a 'subparse'. To do that I guess I would have to
> create an appsrc that generated "application/x-subtitle" output. However, I
> can't seem to find a specification for the encoding of text that I need to
> feed to the subparse. Maybe reading the subparse source code will tell me
> enough, but an RFC or other spec should would be handy.
You could also use the 'textrender' element, which support plain text
and pango markup.
andoni
>
> Finally, I could try to feed the 'text_sink' pad of the textoverlay.
> However, I'd need to understand the format of the input the pad expects.
> Presumably I have to cross reference text with a TIMESTAMP.
>
> Since its a really useful feature to custom apps, I'm wondering if anyone
> has any suggestions. As before, I'll try to find a way to post the ultimate
> solution under with some useful keywords.
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/textoverlay-and-dynamic-text-to-subtitle-or-not-and-if-so-how-tp3034383p3034383.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Andoni Morales Alastruey
LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
More information about the gstreamer-devel
mailing list