0
cv::VideoCapture cap("tcpclientsrc host=129.31.224.100 port=8888 ! gdpdepay ! rtph264depay ! avdec_h264 ! "
"videoconvert ! appsink");
if (!cap.isOpened()) {
printf("=ERR= can't create video capture\n");
return -1;
}
RPI:
gst-launch-1.0 wrappercamerabinsrc ! video/x-raw,
framerate=30/1, width=1280, height=720, format=RGB !
videoconvert ! vtenc_h264 ! h264parse !
rtph264pay config-interval=1 pt=96 ! gdppay !
tcpserversink host=129.31.224.100 port=8888
的錯誤信息是:
VIDEOIO(cvCreateFileCapture_AVFoundation (filename)): raised unknown C++ exception!
=ERR= can't create video capture
我想實現的東西是從閱讀框架gstreamer通過使用OpenCV。
上述命令在命令行中工作,但不能在C++代碼中工作。
預先感謝您!