Allocate gpu memory and share between gstreamer pipelines

Hi all,

Working on gstreamer pipeline with nvidia elements.

Pipeline 1: video file as input and get bounding box predictions.

Pipeline 2: After post-processing logic, get frame by frame, encode video and save to file

Trying to implement the following method.

  1. Can we allocate memory and store gstreamer nvbuffer to new GPU memory without copying to CPU ? the new GPU memory will be used in pipeline 2.
  2. Do we have example code for achieving this using deepstream-python?
  3. Can we achieve this using NvBufSuface python APIs ?