Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) GPU rtx 2080ti
**• DeepStream NGC lastest
• NVIDIA GPU Driver Version (valid for GPU only)
import sys
import cv2
gst = "rtspsrc location=rtsp://admin:abcd1234@192.168.1.101:554/Streaming/Channels/101?transportmode=mcast&profile=Profile_1 ! \
rtph264depay ! h264parse ! nvv4l2decoder ! \
video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink"
# uri = "rtsp://admin:abcd1234@192.168.1.101:554/Streaming/Channels/101?transportmode=mcast&profile=Profile_1"
# latency = 0
# gst = ('rtspsrc location={} latency={} ! '
# 'rtph264depay ! h264parse ! avdec_h264 ! '
# 'videoconvert ! appsink').format(uri, latency)
cap = cv2.VideoCapture(gst, cv2.CAP_GSTREAMER)
while True :
ret, frame = cap.read()
cv2.imshow('frame',frame)
if(cv2.waitKey(1) & 0xFF == ord('q')):
break;