[gst-devel] textoverlay and dynamic text - to subtitle or not and if so how?

HaroldJRoth dlafferty at gmail.com
Tue Nov 9 15:45:22 CET 2010


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.

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.




More information about the gstreamer-devel mailing list