Videocapture problem with rtsp cameras using gstreamer as apiPreference

Hi @berak thanks for your reply,
*yes it works with ffmpg, i usually work with this but i wanted to start working with gstreamer because of the performance, flexibility, for example with ffmpg i can’t use ffmpg over tcp, i can’t get the last frame i have to free all the buffer, etc.
*When i set that getBuildInformation() i get that gstreamer is enabled, same results as with the opencv build process
Video I/O:
DC1394: NO
FFMPEG: YES (prebuilt binaries)
avcodec: YES (58.91.100)
avformat: YES (58.45.100)
avutil: YES (56.51.100)
swscale: YES (5.7.100)
avresample: YES (4.0.0)
GStreamer: YES (1.16.2)
DirectShow: YES
Media Foundation: YES
DXVA: YES
*With that videioio flag set i’m getting these new warnings:

  1. [ WARN:0] global C:\OpenCV4.5\opencv-4.5.0\modules\videoio\src\cap.cpp (108) cv::VideoCapture::open VIDEOIO(GSTREAMER): trying capture filename=‘rtspsrc location=rtsp://127.0.0.1:8554/test ! decodebin ! videoconvert ! appsink’ …

  2. [ WARN:0] global C:\OpenCV4.5\opencv-4.5.0\modules\videoio\src\cap_gstreamer.cpp (888) cv::GStreamerCapture::open OpenCV | GStreamer warning: unable to start pipeline

  3. [ WARN:0] global C:\OpenCV4.5\opencv-4.5.0\modules\videoio\src\cap_gstreamer.cpp (480) cv::GStreamerCapture::isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

  4. [ WARN:0] global C:\OpenCV4.5\opencv-4.5.0\modules\videoio\src\cap.cpp (131) cv::VideoCapture::open VIDEOIO(GSTREAMER): can’t create capture