VideoCaputre vcap;
Try {
Vcap. Open (" RTSPSRC latency location=% s=0. Rtph264depay! H264parse! Mppvideodec! Autovideoconvert! Appsink, "CAP_GSTREAMER);
}
The catch (CV: : Exception & amp; E)
{
Const char * err_msg=e.w hat ();
Cout & lt; <"Exceptions" & lt;
//... .
}
An error is as follows:
OpenCV Error: Unspecified Error (GStreamer: unable to start pipeline
) in cvCaptureFromCAM_GStreamer, file/opencv - 3.4.0/modules/videoio/SRC/cap_gstreamer CPP, line 890
VIDEOIO (cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE filename)) : raised OpenCV exception:
? Opencv - 3.4.0/modules/videoio/SRC/cap_gstreamer. CPP: 890: error: (2) GStreamer: unable to start pipeline
In the function cvCaptureFromCAM_GStreamer
Opencv throw exceptions is not captured, cause the program to collapse, I know the reason of the error, now just need to be able to not let the program crashes, is there anyone treated bosses, thank you very much!
CodePudding user response:
The building Lord solved?