Segmentation fault accessing nvarguscamerasrc

The only way I have been able to stop the segmentation fault from happening is by removing format=NV12 from right before the appsink, but then I am not sure what colour format it is.

test_camera = ("nvarguscamerasrc sensor-id=0 sensor-mode=0 ! video/x-raw(memory:NVMM),framerate=1/1,format=NV12,width=5328,height=4608 ! nvvidconv ! video/x-raw,framerate=1/1,width=1332,height=1152,format=NV12 ! appsink")
1 Like