Failure to use gst-launch-1.0 nvarguscamerasrc to capture image

hello 1075471989,

I rarely using nvdrmvideosink, you may try adding nvvidconv for converting the formats for testing.
for example,
$ gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! queue ! nvdrmvideosink -e

you may see-also Topic 140648 for samples using cv2.VideoCapture