textoverlay changing text consistently

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

textoverlay changing text consistently

gonengoktug
Hi all

I have a textoverlay element in my simple pipeline (v4l2src --> textoverlay
--> autovideosink) and I can put constant text on my frames with command,

       g_object_set(G_OBJECT(textoverlay),"text","Hello world, it's
me","font-desc","Oblique",NULL);

 Howevery I want to add changing text like frame number in case that text
becomes on the screen like "this is 1. frame" and then "this is 2.frame" and
goes on with,

       g_object_set(G_OBJECT(textoverlay),"text","this is
%d.frame",i,"font-desc","Oblique",NULL);

but it gives me error which means to me , element's property (text) can't be
changed in the pipeline. So what should I do to put dynamic text on the
frame? In the next step, I want to add these texts to my frame where I get
from appsink. Any help will be nice.

Best regards,

Göktuğ GÖNEN



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel