Perhaps you could try the timecodestamper module?
For example,
gst-launch-1.0 videotestsrc ! timecodestamper set=always source=rtc ! videoconvert ! ...