"no element rtspsrc" gstreamer+opencv in win10

asked 2020-07-05 03:35:24 -0600

updated 2020-07-08 14:51:11 -0600

supra56 gravatar image

Hello, I'm trying to receive rtsp source from gstreamer,

it can shows video stream correctly by enter this command line:

./gst-launch-1.0.exe -v rtspsrc location=rtsp://192.168.1.2:8554/test latency=0 buffer-mode=auto ! decodebin ! videoconvert ! autovideosink sync=false

Here are the steps I did:

  1. install Gstreamer Runtime and Development files here: https://gstreamer.freedesktop.org/dat...

  2. configure opencv 4.3.0 by camke-GUI with Gstreamer support on

  3. build with vistual studio 2019, get the world430.dll and lib

  4. import lib and include in QT, shows no importing errors, function works correctly, except using gstreamer.

  5. works:const char *gst="rtsp://192.168.1.3:8554/test"; cap.open(gst,CAP_FFMPEG);
  6. not works:const char *gst="filesrc latency=0 buffer-mode=auto location=rtsp://192.168.1.3:8554/test ! decodebin ! videoconvert ! appsink max-buffers=5 drop=true"; cap.open(gst,CAP_GSTREAMER);

below are the errors, hope someone can help me, thank you.

[ WARN:0] global C:\Users\goodman-home\Downloads\opencv-4.3.0\modules\videoio\src\cap_gstreamer.cpp (713) cv::GStreamerCapture::open OpenCV | GStreamer warning: Error opening bin: no element "rtspsrc"

[ WARN:0] global C:\Users\goodman-home\Downloads\opencv-4.3.0\modules\videoio\src\cap_gstreamer.cpp (480) cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
edit retag flag offensive close merge delete