Menu

#43 network gstreamer rtsp argument or loopback causes exceptions

v1.0 (example)
open
None
5
2019-04-29
2019-04-29
No

Dear Rafael,
I am trying to get aruco_test to take inputs from a network stream with two approaches:

  1. ./aruco_test "rtspsrc location=rtsp://127.0.0.1:8554/test latency=30 ! decodebin ! nvvidconv ! appsink"
    as in https://answers.opencv.org/question/211973/could-someone-incorporate-gstreamer-pipeline-into-opencv_contrib-aruco-sample-please/
  2. ./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=1920, height=1080, framerate=30/1 ! nvvidconv ! video/x-raw, width=640, height=480, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1"
    stream ready at rtsp://127.0.0.1:8554/test
    gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! queue ! decodebin ! videoconvert ! v4l2sink device=/dev/video2

/aruco_test live:2
Opening camera index 2
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file /home/nvidia/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp, line 887
VIDEOIO(cvCreateCapture_GStreamer(CV_CAP_GSTREAMER_V4L2, reinterpret_cast<char *="">(index))): raised OpenCV exception:</char>

/home/nvidia/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp:887: error: (-2) GStreamer: unable to start pipeline
in function cvCaptureFromCAM_GStreamer

Exception :Could not open video
as in https://devtalk.nvidia.com/default/topic/1042892/jetson-agx-xavier/nvarguscamerasrc-opencv-solved-/post/5333753/#5333753
Could you help out wit that or provide some other way to integrate networkrtsp stream into aruco processing, please?

Regards,
Research Engineer,
Andrei Volodin

Discussion


Log in to post a comment.

MongoDB Logo MongoDB