capture using nvarguscamerasrc in deepstream sample apps

How can I capture using nvarguscamerasrc in apps/sample_apps/deepstream-test2

Typical capture pipeline

nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3840, height=(int)2160, format=(string)NV12, framerate=(fraction)8/1 ! nvvidconv flip-method=0 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink

Any lead would be great.


Please check
It is for test4 and can be applied to test2 also.