IMX219-77 Camera not streaming for Jetson Nano

Please I need help concerning a CSI camera I bought on Amazon https://www.amazon.com/Yahboom-IMX219-77-Camera-NVIDIA-Interface/dp/B07TS7NCP2
. It has out of the box Nvidia-Jetson Nano support so I connected it as shown. It even shows up when running

ls /dev/video0

but when running the example shown on https://github.com/JetsonHacksNano/CSI-Camera it merely screenshots my screen as opposed to streaming a video

The command specified is

gst-launch-1.0 nvarguscamerasrc ! '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

Could you try modify the flip-method=2 to try.

It still didn’t work but after switching to an RPi v2 camera it worked

I tried embedding it into my python code using opencv and gstreamer however as shown below

def gstreamer_pipeline(
...     capture_width=3280,
...     capture_height=2464,
...     display_width=820,
...     display_height=616,
...     framerate=21,
...     flip_method=0,
... ):
...     return (
...         "nvarguscamerasrc ! "
...         "video/x-raw(memory:NVMM), "
...         "width=(int)%d, height=(int)%d, "
...         "format=(string)NV12, framerate=(fraction)%d/1 ! "
...         "nvvidconv flip-method=%d ! "
...         "video/x-raw, width=(int)%d, height=(int)%d, format=(string)BGRx ! "
...         "videoconvert ! "
...         "video/x-raw, format=(string)BGR ! appsink"
...         % (
...             capture_width,
...             capture_height,
...             framerate,
...             flip_method,
...             display_width,
...             display_height,
...         )
...     )
... 
import cv2
cam = cv2.VideoCapture(gstreamer_pipeline(), cv2.CAP_GSTREAMER)
ret, frame = cam.read()
print(ret)
False