Timestamp from CUeglFrame

I’m using the ScopedCudaEGLStreamFrameAcquire class from the syncSensor sample and was wandering if it is possible to get the timestamp from a CUeglFrame.

If so, how do I go about it?

I have a CUeglStreamConnection and get the frame through cuEGLStreamConsumerAcquireFrame and cuGraphicsResourceGetMappedEglFrame

Hi,
Since timestamp is no defined in CUEglFrame, this is impossible. There is a similar topic:
https://devtalk.nvidia.com/default/topic/1042097/jetson-tx2/creating-a-working-nveglstreamsrc-gt-omxh264enc-gstreamer-pipeline/post/5287243/#5287243

You may refer to yuvJpeg sample to get timestamps from metadata.

Hi Atrer,
Kindly check this devtalk link for your query. One way to acquire Metadata from the CuEGLFrame is using MetadataContainer
https://devtalk.nvidia.com/default/topic/1068463/jetson-agx-xavier/argus-getting-timestamp-for-frames-acquired-by-cueglstreamconsumeracquireframe/post/5411924/?offset=4#5412493