The Best Way for Writing Video File with GPU Acceleration

Hi there,

I’m new to CUDA and GPU processing in general. What I wanted to do is simple: I am running a ROS node that subscribes to an image topic, then save that video into a video file. I have tried using openCV video writer class, but it intensively uses the CPU, I have limited CPU resources and I wonder if I can do the same by utilizing the GPU, such as with openCV CUDA, or any other C++ libraries that can do that. My device has the following specifications:

  • Jetson AGX Xavier
  • Jetpack 4.6
  • Ubuntu 18.04
  • ROS Melodic
  • OpenCV 3.4.3 with CUDA 10.2 supported

Any guidance would be much appreciated.