In my application I try to add a text overlay to Gstreamer pipeline, without great success.
I saw example, which work fine:
gst-launch videotestsrc ! cairotextoverlay text="Hello" ! autovideosink,
When I tried to run something as
gst-launch playbin2 uri=file:///media/sda1/sample1.avi ! cairotextoverlay text="Hello" ! autovideosink
I got: WARNING: erroneous pipeline: could not link playbin20 to cairotextoverlay0
I have no idea how to build correct pipeline and would be glad of any help.
Correct command, as I understand is:
gst-launch filesrc location=/media/sda1/sample1.avi ! decodebin2 ! cairotextoverlay text="Hello hello, I tried" ! autovideosink
But I got terminal message "There may be a timestamping problem, or this computer is too slow."
File not played normally, the video jumps.