adding datetime tag to pipeline

Florian Echtler floe at
Sat Apr 16 07:42:48 UTC 2022

Hello Pablo,

On 15/04/2022 14:28, Pablo Rodríguez via gstreamer-devel wrote:
> I was having an issue (and I thought the problem was in GStreamer),
> because gst-launch-1.0 complained about string values being passed
> instead of GstDateTime.
> With $(date +%Y%m%d-%H%M%S), gst-launch-1.0 complains about GstFlagSet
> (instead of GstDateTime).

Oops, sorry, my bad. Seems this can't be done using gst-launch-1.0 alone, you 
would probably need a small Python script.

Here's an example to get you started:

You can exchange the parameter to parse_launch with your own pipeline 
description, and then call

ti = pipeline.get_by_name("taginject0")

to get a reference to the taginject node, and then call

ti.set_property("tags", ...)

to set the tags property (although I'm not 100% sure how, to be honest).

Here's the documentation for GstDateTime:

Hope this helps!
Best, Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 203 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the gstreamer-devel mailing list