textoverlay changing text consistently

gonengoktug gonengoktug at gmail.com
Thu Feb 6 11:10:03 UTC 2020


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/


More information about the gstreamer-devel mailing list