<span>Ok, suppose I wanna handle by myself the timed textoverlay. <br />What I did in my function is exactly work this problem out. <br />I wanna call a function which show on my screen a string set up with "text" and call it again after an interval to change the "text" property and start again, until the press of Stop button to stop the playing.&nbsp;</span><br /><span>But it doesn't work well, cause not all of the lines are displayed e not in according to rimestamp.</span><br /><span>&nbsp;</span><br /><span><br />On Fri, 2012-02-24 at 11:40 -0800, kususe wrote:<br />&gt; I coded a function to perform dynamic text overlay, displaying lines from a<br />&gt; file.<br />&gt; <br />&gt; def show_line(self):<br />&gt;                 next_line = self.curr_line + 1<br />&gt;                 self.line = self.lines[self.curr_line]</span><br /><span><br /><br />If you use the "text" or "markup" property, textoverlay will show the<br />text as you set it on the property, immediately when you set it, for as<br />long as you don't set the property to something else.<br /><br />If you want to show timed text, you can either<br /><br />a) handle the timing yourself, or<br /><br />b) use the GstController interface on the "text" property, to make it<br />automatically show certain strings at a certain time in the stream, or<br /><br />c) push timed text/markup on textoverlay's text_sink sink pad. The<br />buffers should contain UTF-8 text or pango markup, and the buffers<br />should have timestamp and duration set on them. You could use an appsrc<br />element to feed timed-text buffers to textoverlay, for example (or read<br />them from file, like  filesrc location=foo ! subparse ! ...)<br /><br />Cheers<br /> -Tim<br /><br />_______________________________________________<br />gstreamer-devel mailing list<br />gstreamer-devel@lists.freedesktop.org<br /><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="new">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span><br />

<br>-------------------------------------------------------------------------------<br>Valore legale alle tue mail<br>InterfreePEC - la tua Posta Elettronica Certificata<br>http://pec.interfree.it<br>-------------------------------------------------------------------------------<br>