adding datetime tag to pipeline
floe at butterbrot.org
Sat Apr 16 07:42:48 UTC 2022
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
to set the tags property (although I'm not 100% sure how, to be honest).
Here's the documentation for GstDateTime:
Hope this helps!
SENT FROM MY DEC VT50 TERMINAL
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 203 bytes
Desc: OpenPGP digital signature
More information about the gstreamer-devel