Can NvVideoEncoder encode with timestamp information?

Hi, I am currently using NvVideoEncoder to encode videos. I do not encode every frame of the camera to reduce the size of the videos. For example, the camera is 60 fps but I only encode 12 frames per second. That will make the h265 file look like fast-forward videos.
Can we include timestamp information or can we manually set the fps in the encoder to make the h265 look like a normal video in this case? Thanks!

Please check the two options in 01_video_encode sample:

        --insert-vui          Insert VUI [Default = disabled]
        -fps <num> <den>      Encoding fps in num/den [Default = 30/1]

After setting the options per your use-case, the information of frame rate will be present in codec data. Please give it a try.

Hi, Thanks for the advice. I am using the NvVideoEncoder class to create my own encoder programmatically and leverage the setFrameRate API to control the fps, but it seems the output videos are not encoded according to this config.

I’m closing this topic due to there is no update from you for a period, assuming this issue was resolved.
If still need the support, please open a new topic. Thanks

Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks