Hi,
We have deprecated NvBuffer APIs on Jetpack 5 and 6. Please refer to the migration guide to use NvBufSurface APIs:
And which camera source you are using? If your camera source is v4l2 source, you may try the sample:
/usr/src/jetson_multimedia_api/samples/12_v4l2_camera_cuda/