<div dir="ltr">On Thu, Jan 31, 2013 at 11:27 AM, Stirling Westrup <span dir="ltr"><<a href="mailto:swestrup@gmail.com" target="_blank">swestrup@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This seems like a dumb question, but if I have a file of text that I<br>
want to render to the screen via something like the pango textrender<br>
element, how do I build a pipeline for that?<br>
<br>
I tried the obvious, and it doesn't work:<br>
<br>
gst-launch-1.0 filesrc location=text.txt ! decodebin ! textrender !<br>
xvimagesink display=':5'<br>
<br>
This gives me an error that it cannot determine the type of the stream.<br></blockquote><div><br></div><div style>That's because a plain text file has no header or other information that decodebin can use to know it's "text/plain". Try this:</div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">gst-launch-1.0 filesrc location=text.txt ! "text/plain" ! textrender ! </span><span style="font-family:arial,sans-serif;font-size:13px">xvimagesink display=':5'</span><br>
</div><div style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">-Josh</span></div></div></div></div>