Please let me know how to fix the issue, as i have already followed solutions mentioned in forums but unable to fix it.
OpenCV Version - 3.4.0
Used commands -
gst-launch-1.0 rtspsrc location=rtsp://admin:admin@123@49.206.246.65/cam/realmonitor?channel=3&subtype=0 ! ‘application/x-rtp, media=(string)video’ ! decodebin ! videoconvert ! ximagesink
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! ‘application/x-rtp, media=(string)video’ ! decodebin ! videoconvert ! ximagesink
gst-launch-1.0 uridecodebin uri=rtsp://admin:admin@123@49.206.246.65/cam/realmonitor?channel=3&subtype=0 ! nvoverlaysink
Error 1 -
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file /home/dsjetson/opencv/modules/videoio/src/cap_gstreamer.cpp, line 890
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
/home/dsjetson/opencv/modules/videoio/src/cap_gstreamer.cpp:890: error: (-2) GStreamer: unable to start pipeline
in function cvCaptureFromCAM_GStreamer
Failed to open camera!
Error 2 -
-bash: !: command not found
dsjetson@dsjetson-desktop:~/gst-rtsp-server-1.14.1/examples$ Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:admin@123@49.206.246.65/cam/realmonitor?channel=3
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unauthorized
Additional debug info:
gstrtspsrc.c(6116): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Unauthorized (401)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …
Forum Followed-