root@192.168.180.8:/ts_rpf# python3
Python 3.6.8 (default, Mar 21 2019, 09:31:25)
[GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> path = "rtsp://admin:tensorsight666@192.168.1.55:554/h264/ch1/main/av_stream"
>>> camera =cv2.VideoCapture(path)
VIDEOIO ERROR: V4L: device rtsp://admin:tensorsight666@192. ... ch1/main/av_stream: Unable to query number of channels
OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
OpenCV(3.4.1) /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:1869: error: (-2) GStreamer: your gstreamer installation is missing a required plugin
in function handlemessage