Transmit absolute time
pietro_bonfa at yahoo.it
Sat Oct 24 03:52:16 PDT 2015
On 10/23/2015 09:38 AM, Sebastian Dröge wrote:
> That the base time is not known when the first buffer happens in the
> source is indeed a problem. How are you generating buffers and when?
Yes, the buffers are generated by appsrc. They are generated when the
callback function connected to the "need-data" signal is called so I
assumed that checking the state of the pipeline was not needed.
I will check that in the real implementation
running_time + base_time gives exactly the time when the buffer is
captured and report back.
Finally, just to keep you posted, I implemented metadata in the
GstElement that parses the RTP extension and then I discovered that
metadata are generally not copied through the pipeline (damn!).
As a consequence, I think I'm left with the original idea of setting PTS
in the incoming payloaded buffers if I want to preserve the information
during the buffer flow (the alternative is using tee but that
complicates things quite a lot).
More information about the gstreamer-devel