Hi,
Please check the two samples below:
It is expected to work on JetPack 6 as both use the NvBufSurface API. Thanks.