<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 3, 2013 at 3:55 AM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On Thu, 2013-05-02 at 12:33 -0400, Stirling Westrup wrote:<br>
<br>
> filesrc ! subparse ! textrender ! ...<br>
><br>
><br>
> Just got around to actually trying this, and I still can't get it to<br>
> work. I've made the world's simplest .srt file, namely:<br>
><br>
> 1<br>
> 00:00:00,000 --> 01:00:00,000<br>
> Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
><br>
><br>
><br>
> But so far I've had no success at ever getting textrender to render<br>
> anything. Its either buggy or severely deficient in documentation.<br>
<br>
</div>Try again with git master, I just fixed something. You'll then probably<br>
need to do textrender ! videoconvert ! whatever. I'm sure it has more<br>
bugs, no one uses it really.<br>
<div class=""><div class="h5"><br clear="all"></div></div></blockquote></div><br></div><div class="gmail_extra">Well, that's an improvement. The text displays, but I also get a bunch of warnings as well;<br><br>gst-launch-1.0 -v filesrc location=test/lorem.srt ! subparse ! textrender ! videoconvert ! xvimagesink display=:5<br>
Setting pipeline to PAUSED ...<br>Pipeline is PREROLLING ...<br>/GstPipeline:pipeline0/GstSubParse:subparse0.GstPad:src: caps = text/x-raw, format=(string)pango-markup<br>/GstPipeline:pipeline0/GstTextRender:textrender0.GstPad:sink: caps = text/x-raw, format=(string)pango-markup<br>
<br>(gst-launch-1.0:17818): GStreamer-WARNING **: gstpad.c:4496:store_sticky_event:<textrender0:src> Sticky event misordering, got 'segment' before 'caps'<br>/GstPipeline:pipeline0/GstTextRender:textrender0.GstPad:src: caps = video/x-raw, format=(string)AYUV, width=(int)720, height=(int)576, framerate=(fraction)0/1<br>
<br>(gst-launch-1.0:17818): GStreamer-WARNING **: gstpad.c:4496:store_sticky_event:<videoconvert0:src> Sticky event misordering, got 'segment' before 'caps'<br>/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)0/1, format=(string)YUY2<br>
<br>(gst-launch-1.0:17818): GStreamer-WARNING **: gstpad.c:4496:store_sticky_event:<xvimagesink0:sink> Sticky event misordering, got 'segment' before 'caps'<br>/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)0/1, format=(string)YUY2<br>
<br>(gst-launch-1.0:17818): GStreamer-WARNING **: gstpad.c:4496:store_sticky_event:<videoconvert0:sink> Sticky event misordering, got 'segment' before 'caps'<br>/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)AYUV, width=(int)720, height=(int)576, framerate=(fraction)0/1<br>
Pipeline is PREROLLED ...<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br><br><br><br></div><div class="gmail_extra">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...<br>
<br></div><div class="gmail_extra"><br><br><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div>