Capture frames from deepstream with a tracker - RuntimeError: get_nvds_buf_Surface: Currently we only support RGBA/RGB color Format

Please provide complete information as applicable to your setup.

• Hardware Platform: GPU
• DeepStream Version: 7.0
I’m new to deepstream and I’m trying to capture frames from the deepstream_nvdsanalytics.py example.
I added another nvvidconv to convert to RGBA, but for some reason it is still showing this error: “RuntimeError: get_nvds_buf_Surface: Currently we only support RGBA/RGB color Format”. My guess is that I linked the elements in the wrong order, but I don’t know what’s the correct one.
deepstream code.zip (5.3 KB)

You need to add the nvvideoconvert before the nvdsanalytics plugin.

Thanks, that makes sense

    streammux.link(pgie)
    pgie.link(nvvidconv1)
    nvvidconv1.link(filter1)
    filter1.link(tracker)
    tracker.link(nvanalytics)
    nvanalytics.link(tiler)
    tiler.link(nvvidconv)
    nvvidconv.link(nvosd)
    nvosd.link(sink)