Hi,
A possible solution is to use nvcompositor plugin. Please refer to the pipeline:
Textoverlay plugin in a video after nvcompositor - #3 by DaneLLL
For linking with DeepStream SDK, the pipeline should be like:
... ! nvcompositor ! nvvidconv ! video/x-raw ! nvvideoconvert ! nvstreammux ! nvinfer ! ...