How to add PTS in HEVC encode in orin

How to add PTS in HEVC encode in jetson orin?
Is there any sample codes?

Thanks!

Hi,
In jetson_multimedia_api, we have the sample:

/usr/src/jetson_multimedia_api/samples/01_video_encode/

Please enable the option for a try, and check the code to see how timestamps are set:

        --copy-timestamp <st> Enable copy timestamp with start timestamp(st) in seconds