# Obtaining the Timestamp for Previous Frames from Tracker

**URL:** <https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068>\
**Category:** DeepStream SDK\
**Created:** [October 14, 2021, 4:38pm UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068 "2021-10-14T16:38:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scriobhneoir](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Scriobhneoir](https://forums.developer.nvidia.com/u/Scriobhneoir)\
**Post date:** [October 14, 2021, 4:38pm UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068/1 "2021-10-14T16:38:56Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU)**  
Jetson Xavier  
**• DeepStream Version**  
5.0  
**• JetPack Version (valid for Jetson only)**  
4.5.1  
**• TensorRT Version**  
7.1.3.0  
**• Issue Type( questions, new requirements, bugs)**  
Question/Technical Query

Question -

We are adapting the “write\_kitti\_past\_track\_output” function from the deepstream reference app to get the previous object/frame data from the tracker (using NvDCF tracker). We are correctly getting the previous object data, including frame number etc.

Is it possible to get the timestamp from the tracker, so that we can associate a timestamp with the object ? We can get the current frame timestamp from “frame\_meta-\>ntp\_timestamp;” - is there an equivalent for the tracker data?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [October 15, 2021, 10:28am UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068/3 "2021-10-15T10:28:19Z")

</div>

Since you have notice _ntp\_timestamp_ in NvDsFrameMeta, so please refer to _buf\_pts_ in NvDsFrameMeta to get the timestamp.

[https://docs.nvidia.com/metropolis/deepstream/sdk-api/Meta/\_NvDsFrameMeta.html](https://docs.nvidia.com/metropolis/deepstream/sdk-api/Meta/_NvDsFrameMeta.html)

---

<div class="post-metadata">

**Author:** ![Scriobhneoir](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Scriobhneoir](https://forums.developer.nvidia.com/u/Scriobhneoir)\
**Post date:** [October 15, 2021, 11:18am UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068/4 "2021-10-15T11:18:05Z")

</div>

Thanks for the link - I understand that buf\_pts is attached to the current frame in NvDsFrameMeta.

What I would like to do, is when I extract the previous objects from the tracker (with “\_NvDsPastFrameObj”), to be able to associate a timestamp (either absolute, or pts) with that object. So that, for each object in the PastFrameObjList, we can get:

uint32\_t frameNum  
NvOSD\_RectParams tBbox  
float confidence  
uint32\_t age  
// and add:  
guint64 obj\_timestamp

Is it possible to extract that information from the past tracked object ? Is it possible to configure the tracker (NvDCF) to include that information in the batch user meta data?

---

<div class="post-metadata">

**Author:** ![Fiona.Chen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fiona.chen/32/15508_2.png) [@Fiona.Chen](https://forums.developer.nvidia.com/u/Fiona.Chen)\
**Post date:** [October 18, 2021, 2:04am UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068/5 "2021-10-18T02:04:35Z")

</div>

> [@Scriobhneoir](#):
>
> to be able to associate a timestamp (either absolute, or pts) with that object

I don’t understand it? Timestamp is the time mark for every frame. The object will appear in many frames. How can we mark object’s timestamp? What does this mean?

Currently, there is no such data structure for timestamp of every object.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 9, 2021, 1:13am UTC](https://forums.developer.nvidia.com/t/obtaining-the-timestamp-for-previous-frames-from-tracker/192068/7 "2021-11-09T01:13:23Z")

</div>

Closed on November 9, 2021, 1:13am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
