Rendering Text?

Stirling Westrup swestrup at gmail.com
Tue May 14 10:48:45 PDT 2013


On Fri, May 3, 2013 at 3:55 AM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> On Thu, 2013-05-02 at 12:33 -0400, Stirling Westrup wrote:
>
> >           filesrc ! subparse ! textrender ! ...
> >
> >
> > Just got around to actually trying this, and I still can't get it to
> > work. I've made the world's simplest .srt file, namely:
> >
> > 1
> > 00:00:00,000 --> 01:00:00,000
> > Lorem ipsum dolor sit amet, consectetur adipiscing elit.
> >
> >
> >
> > But so far I've had no success at ever getting textrender to render
> > anything. Its either buggy or severely deficient in documentation.
>
> Try again with git master, I just fixed something. You'll then probably
> need to do textrender ! videoconvert  ! whatever. I'm sure it has more
> bugs, no one uses it really.
>
>
Well, that's an improvement. The text displays, but I also get a bunch of
warnings as well;

gst-launch-1.0 -v filesrc location=test/lorem.srt ! subparse ! textrender !
videoconvert ! xvimagesink display=:5
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstSubParse:subparse0.GstPad:src: caps = text/x-raw,
format=(string)pango-markup
/GstPipeline:pipeline0/GstTextRender:textrender0.GstPad:sink: caps =
text/x-raw, format=(string)pango-markup

(gst-launch-1.0:17818): GStreamer-WARNING **:
gstpad.c:4496:store_sticky_event:<textrender0:src> Sticky event
misordering, got 'segment' before 'caps'
/GstPipeline:pipeline0/GstTextRender:textrender0.GstPad:src: caps =
video/x-raw, format=(string)AYUV, width=(int)720, height=(int)576,
framerate=(fraction)0/1

(gst-launch-1.0:17818): GStreamer-WARNING **:
gstpad.c:4496:store_sticky_event:<videoconvert0:src> Sticky event
misordering, got 'segment' before 'caps'
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)0/1,
format=(string)YUY2

(gst-launch-1.0:17818): GStreamer-WARNING **:
gstpad.c:4496:store_sticky_event:<xvimagesink0:sink> Sticky event
misordering, got 'segment' before 'caps'
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps =
video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)0/1,
format=(string)YUY2

(gst-launch-1.0:17818): GStreamer-WARNING **:
gstpad.c:4496:store_sticky_event:<videoconvert0:sink> Sticky event
misordering, got 'segment' before 'caps'
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
video/x-raw, format=(string)AYUV, width=(int)720, height=(int)576,
framerate=(fraction)0/1
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock



Its a shame the textrender hasn't been better tested because one use case
for my application is as a scrolling information board, and it would be
nice if one could hand it a pango-formatted text file and have it do the
rest...




-- 
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130514/d5181e87/attachment.html>


More information about the gstreamer-devel mailing list