Deepstream-app not running when more than 12 cams or 3 models

please refer to this sample for how to access nv12 by opencv.