Rendering Text?
Josh Doe
josh at joshdoe.com
Thu Jan 31 08:37:46 PST 2013
On Thu, Jan 31, 2013 at 11:27 AM, Stirling Westrup <swestrup at gmail.com>wrote:
> This seems like a dumb question, but if I have a file of text that I
> want to render to the screen via something like the pango textrender
> element, how do I build a pipeline for that?
>
> I tried the obvious, and it doesn't work:
>
> gst-launch-1.0 filesrc location=text.txt ! decodebin ! textrender !
> xvimagesink display=':5'
>
> This gives me an error that it cannot determine the type of the stream.
>
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:
gst-launch-1.0 filesrc location=text.txt ! "text/plain" ! textrender !
xvimagesink
display=':5'
-Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130131/710613c1/attachment.html>
More information about the gstreamer-devel
mailing list