Dynamic content in qroverlay?

Florian Echtler floe at butterbrot.org
Thu Mar 2 11:38:08 UTC 2023


Hello everyone,

I've fiddled around with including buffer-specific data in a video stream using 
qroverlay (somewhat like a custom version of debugqroverlay, which I'm using for 
now). I tried the following code snippet:

# pad probe for debug QR code with timestamp
def qr_probe_callback(pad,info,pdata):
     buf = info.get_buffer()
     parent = pad.get_parent_element()
     parent.set_property("data",str(buf.pts))
     return Gst.PadProbeReturn.OK

[... and afterwards ...]

     sinkpad = qroverlay.get_static_pad("sink")
     sinkpad.add_probe(Gst.PadProbeType.BUFFER, qr_probe_callback, None)

The pad probe gets called, but the QR code in the video stream seems to be stuck 
on the very first value that got set when the callback was triggered for the 
first time. What do I need to do to "re-render" the QR code with the updated 
data property?

Best, Florian
-- 
SENT FROM MY DEC VT50 TERMINAL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230302/f8f81e6f/attachment.sig>


More information about the gstreamer-devel mailing list