Making sense of timestamps in NVDEC


I’m doing HEVC decoding and I’m trying to better understand the timestamps I’m providing and getting out of NVDEC.

I’m providing ascending PTS values at the input, which is what I’m getting out of FFMPEG. However, the values I’m getting at the output are all over the place. Since the input one is marked as PTS, I would expect the timestamps values at the output to be the same… If I do not provide any timestamps at the input, then I’m getting ordered ascending timestamps at the output.

Would it be possible to get more information as to what both timestamp values are supposed to mean and the relationship between the two ?



Don’t forget about frame re-ordering for display. If you add timestamps for the input coded frames they will be re-ordered for display.