Opencv error and Gstreamer can't be created

Hi guys,
I am trying to run a video and take license plates from video but I got this error.
Any advise would be appreciated!

that’s the code:
cap = cv2.VideoCapture(‘filesrc location = “IMG_0580.mp4” ! video/x-raw,framerate=20/1 ! videoconvert ! appsink’, cv2.CAP_GSTREAMER)
is_opened, frame =

Loading weights from content/ocr-net.weights…Done!
Reading engine from file content/model.engine
NvMMLiteOpen : Block : BlockType = 279
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 279
[ WARN:0] global /tmp/pip-install-557xd113/opencv-python_defaec2035b94fb1a4102abcfc78113a/opencv/modules/videoio/src/cap_gstreamer.cpp (1761) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module qtdemux0 reported: Internal data stream error.
[ WARN:0] global /tmp/pip-install-557xd113/opencv-python_defaec2035b94fb1a4102abcfc78113a/opencv/modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /tmp/pip-install-557xd113/opencv-python_defaec2035b94fb1a4102abcfc78113a/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created