How I can use ntp_timestamp with the URIDecode Bin?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) P1000
• DeepStream Version - v6.1
• JetPack Version (valid for Jetson only)
• TensorRT Version :- 8.2.5-1+cuda11.4
• NVIDIA GPU Driver Version (valid for GPU only) (NVIDIA-SMI 510.85.02 Driver Version: 510.85.02 CUDA Version: 11.6)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I’m using the URIDecode bin as the source bin, implemented similarly to deep-stream-nvanalytics code (deepstream_python_apps/deepstream_nvdsanalytics.py at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub), I wanted to retrieve correct information of the timestamp from the frame, then I found the ntp_timestamp from frame data.

After implementing it, It gives me the same time as the system time. Due to limited processing capabilities, there is a delay in the process & I’m getting the wrong ntp_timestamp vs actual stream time.
my questions are as follows,

  1. How I can retrieve the actual time stamp using URIDECODEBIN?
  2. I didn’t find any python implementation for retrieving the original time stamps using uridecodebin?
  3. Can you explain to us point number TWO( step-2 ) in below mentioned document with a proper python3 example ?
    NTP_TIMESTAMP :- (NTP Timestamp in DeepStream — DeepStream 6.1.1 Release documentation)

You can refer to the python API below:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/python-api/PYTHON_API/NvDsMeta/NvDsFrameMeta.html?highlight=ntp_timestamp.
It also have the ntp_timestamp para in the NvDsFrameMeta. You can get the structure and check the para.

@yuweiw , Thanks for responding …

I have tried implementing that part of the code using the frame_meta.ntp_timestamp. Also, I have implemented [this solution.](https://forums.developer.nvidia.com/t/configure-source-for-ntp-sync-python-binding-deepstream/224418/4) . This is not helped helped me with resolving the issue.

Can you explain to us how to implement the configure_source_for_ntp_sync(hash(uri_decode_bin) using python3 API?

I went through most of the topics that explain ntp_timestamp implementation. But my problem of system time vs actual stream time is not resolved.

If you help us with a proper python implementation that would be great.

thanks in adavance

We’ll consider it in our roadmap. Also you can try to bind it yourself by referring the link below:
https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/master/bindings

1 Like

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