Z
Z
zebox2019-04-29 15:53:57
OpenCV
zebox, 2019-04-29 15:53:57

How to open RTSP stream from camera in OpenCV?

Good afternoon!
Tell me how to open a network RTSP stream from an IP camera?
Already recompiled the sources (having previously configured all the necessary dependencies there)
Added and replaced the compiled binaries to the main OpenCV bin folder (and libs in lib).
Truth in info says:

Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (58.35.100)
      avformat:                  YES (58.20.100)
      avutil:                    YES (56.22.100)
      swscale:                   YES (5.3.100)
      avresample:                YES (4.0.0)
    GStreamer:                   NO
    DirectShow:                  YES
    Media Foundation:            YES
      DXVA:                      YES

But when I try to open it, it swears at GStreamer (opencv_videoio_gstreamer*.dll not found),
I try like this:
...
  cv::VideoCapture * stream = new cv::VideoCapture("rtsp://192.168.88.17:5554/");
  if (!stream->isOpened()) return -1;

  cv::namedWindow("rtsp_stream", WINDOW_AUTOSIZE);
  cv::Mat frame;
...

Win10 x64, VS 2017
Maybe I'm not trying to get the stream correctly at all and is there an easier option?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zebox, 2019-04-29
@zebox

Issue resolved!
It was necessary to execute Build->Install after compilation .. and connect the folder with the new assembly)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question