GstBuffer.duration

duration in time of the buffer data, can be GST_CLOCK_TIME_NONE when the duration is not known or relevant.

struct GstBuffer
GstClockTime duration;