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.

Thanks.

Hi,
Please check
https://devtalk.nvidia.com/default/topic/1066251/deepstream-sdk/save-camera-feed/post/5400303/#5400303
It is for test4 and can be applied to test2 also.