Reding Gstreamer GPU pointer without data transfer

Is there a way to get GPU pointer using gstreamer to prevent data transfers? (running on Jetson Xavier, JetPack 5.0 DP)
I save raw buffer files as follows:
gst-launch-1.0 filesrc location=demo.mp4 ! decodebin ! videorate max-rate=4 ! multifilesink location=ā€œ./tmp/$filename%05dā€

Is it possible to read these files directly to GPU without data transfers?


You can get NvBuffer in appsink and call CUDA APIs to get data pointer to the buffer. Please refer to the samples:
How to run RTP Camera in deepstream on Nano - #29 by DaneLLL
Nano not using GPU with gstreamer/python. Slow FPS, dropped frames - #8 by DaneLLL

1 Like

Is there a way to do this in python?