Critical Error reading RTSP stream from IP cameras

Sachchit sachchit.vekaria at generalaeronautics.com
Tue Feb 20 15:16:00 UTC 2018


Adding to Mark's answer. 

Check whether your Gstreamer installation has gst-libav installed or not? In
windows it is generally installed in standard installation. In linux you
have to do it separately.

After that check the following
gst-inspect-1.0 avdec_h264

If this element details are available, you can use following command
straightaway in your OpenCV implementation.
cap = cv::VideoCapture("rtspsrc location=rtsp://IP_ADDRESS:554/onvif1
latency=## ! rtph264depay ! avdec_h264 ! videoconvert ! appsink")

This will directly allow you to use cap.read(). I have tested it in Python.
I don't see any reason for this to not work in C++.

Cheers,
Sachchit



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list