Hi,
We suggest use nvcompositor plugin. Please refer to
Or you may download source code of nvarguscamerasrc and do customization. By default is is single source capture and you can modify it to multi-source capture and call NvBuffer APIs for composition.