Record video using csi camera imx219

Hello, i’m trying to record a video using a modified jetson hack bash command but i don’t know how to change it to record video ```
gst-launch-1.0 nvarguscamerasrc sensor_mode=0 ! ‘video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12’ ! nvvidconv flip-method=0 ! ‘video/x-raw,width=960, height=616’ ! nvvidconv ! nvegltransform ! nveglglessink -e
‘’’ i tried to ask chatgpt but i alway receive backend gstreamer error its mostly error try reflash sd card so now i really dont know what to do any help would be appreciate thank you.