Using appsrc and uridecodebin together in a pipeline

You can try adjusting the properties of nvstreammux, here is a FAQ