Rendering Text?

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Jan 31 11:22:34 PST 2013


On Thu, 2013-01-31 at 14:06 -0500, Stirling Westrup wrote:
> On Thu, Jan 31, 2013 at 12:56 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> >
> > Raw timed text is now text/x-raw,format=utf8 in 1.0
> >
> > However, it is assumed to be properly chunked (one line/paragraph per
> > buffer) and timestamped. Just pipeline a text file into textrenderer
> > will not work well, since it won't know how to chunk it or timestamp it.
> >
> Hmm. Okay. I can certainly transform my text into this format. In
> fact, in some ways that would make my life easier as it gives better
> control over how long any piece of text is shown. However, I'm not
> sure I understand what the exact format of a timestamp and paragraph
> is in this case. Can you give me an example?

If you're reading from a file, the easiest might be to format your file
as SubRip/.srt like this: http://en.wikipedia.org/wiki/SubRip and then
do

  filesrc ! subparse ! textrender ! ...

Cheers
 -Tim



More information about the gstreamer-devel mailing list