USB Camera not working - Deepstream SDK 5

Sorry for a late reply, have you solved this issue?

it’s one workable sample you can refer to.
from a glance of your code, you created redundancy caps for “image/jpeg”, but no caps like “video/x-raw”, “format”, G_TYPE_STRING,“NV12”, “width”, G_TYPE_INT, config->source_width, “height”, G_TYPE_INT, config->source_height, “framerate”, GST_TYPE_FRACTION, config->source_fps_n, config->source_fps_d which can accepted by nvvideoconvert.