Jetson TX2 video encoding with ethernet camera

Hi Folks,
I am trying to encode video obtained from a Ethernet based camera (Teledyne Dalsa) it is a supported by GigeV based camera API. I am trying to encode the generated frames into video chunks. I have been playing around with the NVVideoEncoder class lately but to no joy, please could someone enlighten me to appropriate example or source examples where i will be able to solve this problem, Thanks

Hi,
The input to NvVideoEncoder is NvBuffer. Is your source a v4l2 source? Please share information about the camera source so that we can suggest next.

Thank you for your reply and apologies for delay, the sources isn’t V4L2 it is a Teldyne Dalsa IP camera which can be accessed through a framework i am accessing each frame of camera doing some processing and what to encode each frame to create video chunks of certain time.

Hi,
You may refer to 01_video_encode for allocating dma buffers(V4L2_MEMORY_DMABUF) and feeding into NvVideoEncoder.