I am currently working on a plugin that use a buffer pool, which instantiates
NvBufSurface buffers with
NvBufSurfaceCreate. These buffers must have the exact same properties than the buffers that pass through the pipeline.
gst_nvquery_batch_size_new it’s easy to get batch size, and the
GstCaps gives us width and height. However, for color format, the
GstCaps “format” field is not enough: when
NV12 is provided, I observed that the
NvBufSurfaceParams.colorFormat can randomly be
NVBUF_COLOR_FORMAT_NV12_709 instead of
I guess the color format is defined in
nvstreammux, but it is not open source. How
nvstreammux choose between
NVBUF_COLOR_FORMAT_NV12, and how can I do the same in my plugin ?
• Hardware Platform: Jetson
• DeepStream Version: 5.0 GA
• JetPack Version: 4.4