Batching and aggregation using only gstreamer and opencv

Greetings! Is it somehow possible to get batch from several IP cameras using gstreamer or opencv in python? Like for example if I have 4 ip cameras than is should be something with the shape 4xWxHxC in numpy array? Thanks in advance. And if it is possible than how the pipeline should be like for gstreamer?