NvVideoEncoder video looping issue on Jetpack 5.X.X

Hi,
We have deprecated NvBuffer APIs on Jetpack 5 releases. Please check the migration guide:

https://developer.nvidia.com/embedded/jetson-linux-r3541
nvbuf_utils to NvUtils Migration Guide

And 01_video_encode sample of Jetpack 5 is updated accordingly. Please refer to the sample. You may also refer to the patch for 12_v4l2_camera_cuda:
How to use v4l2 to capture videos in Jetson Orin r35 Jetpack 5.0 and encode them using a hardware encoding chip - #8 by DaneLLL