I need to add timestamps (along with some flag bits) to video and audio frames that do not have any. I’ve created a Meta to hold the data, and it seems to be working for me.
I’m now trying to create an element that adds that Meta where required. Its not much more than Identity plus small check.
I’m confused about how to actually get the timestamp though. I had hoped to use the SystemClock with a TAI configuration to give me the current timestamp, and allow the user to specify some offset value to get closer to the start-of-frame value. I cannot see how to create a Clock though.
However maybe there is something else I’m missing, and the frame might have a value I can just convert to TAI with addition and multiplication.
Any suggestions for how to approach this? Or an pointer to some documentation or blog that I’ve missed?