Rendering Text?

Stirling Westrup swestrup at gmail.com
Thu Jan 31 09:29:39 PST 2013


On Thu, Jan 31, 2013 at 11:50 AM, Josh Doe <josh at joshdoe.com> wrote:
>
> On Thu, Jan 31, 2013 at 11:43 AM, Stirling Westrup <swestrup at gmail.com>
> wrote:
>>
>> > 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'
>>
>> Well, that's *sort of* an improvement. The pipeline as given refuses
>> to run because it can't link filesrc to textrender. If I put a
>> decodebin in the middle, I get the helpful "This appears to be a text
>> file" error.
>
>
> I'm using filesrc ! "text/plain" ! textrender with 0.10 and it works fine.

Interesting. I'm not having any luck at all with 1.0

> Maybe try:
> gst-launch-1.0 filesrc location=text.txt ! capssetter caps="text/plain"
> replace=true ! textrender ! xvimagesink display=':5'
>

Nope. Now I get the really helpful error of:

ERROR: from element /GstPipeline:pipeline0/GstTextRender:textrender0:
GStreamer error: negotiation problem.

--
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


More information about the gstreamer-devel mailing list