Hardware Platform (Jetson / GPU) NX
• DeepStream Version 6.1.1
• JetPack Version (valid for Jetson only) 5.02
• TensorRT Version 8.4
Hi,
I am using test5app to process a h264 stream via rtsp.
And I found that after nvv4l2 decoding, the timestamp: NvDsFrameMeta->rtp_timestamp
is based on the FIRST RTCP SR, and on the following frames, related timestamp is calculated by
adding pts to the FIRST absolute timestamp. After thousands of frames processed, there’s a error
around several seconds appeared, that make me not able to sync with my host device.
To configure the pipeline to attach these timestamps:
Set attach-sys-ts to FALSE on nvstreammux. Set the attach-sys-ts-as-ntp config parameter to 0 in [streammux] group of the application configuration file in the DeepStream reference app.
After creating an “rtspsrc” element or an “uridecodebin” element, application must call configure_source_for_ntp_sync() function and pass the GstElement pointer to this API. (Refer to create_rtsp_src_bin() in deepstream_source_bin.c file.) The API internally configures the pipeline to parse sender report and calculate NTP timestamps for each frame.
Make sure RTSP source can send RTCP Sender Reports.
I have already set above accordingly.
Now I need to make the pipeline’s ntp_timestamp corrected from following sender report, and
Currently my PTS is like following:
p0 = NTP_timestamp(fron First SR)
p0, p0 + pts, p0 +2pts, p0+3pts … …
I want :
pn = NTP_timestamp(fron the nth SR)
p0, p0 + pts, p0 +2pts, p0+3pts . util 2nd SR arrived,
p1, p1 + pts, p1 +2pts, p1+3pts . util 3rd SR arrived,
… …
pn, pn + pts, pn+2pts, pn+3pts . util (n+1)th SR arrived,
Please help me, how to configure this?