"no element rtspsrc" gstreamer+opencv in win10
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:
install Gstreamer Runtime and Development files here: https://gstreamer.freedesktop.org/dat...
configure opencv 4.3.0 by camke-GUI with Gstreamer support on
build with vistual studio 2019, get the world430.dll and lib
import lib and include in QT, shows no importing errors, function works correctly, except using gstreamer.
- works:
const char *gst="rtsp://192.168.1.3:8554/test"; cap.open(gst,CAP_FFMPEG);
- 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