Re: [问题] OpenCV 3.0 是否支援网络串流(rtsp)?

楼主: yuci (vu03)   2016-04-20 21:29:45
各位好~
后来改成采用OpenCV 2.4.7的版本 + VS2015 + Win10
但是遇到了以下的error code
[rtsp @ 000001722f257020] Received packet without a start chunk; dropping
frame.
想请问是为什么?
因为我可以用VLC来拨放但是这个确不行
我执行上网找到简易的程式测试就会发生
#include "opencv2/opencv.hpp"
using namespace cv;
int main(int, char**)
{
VideoCapture cap("rtsp://192.168.1.105/test.sdq"); // open the default camera
if (!cap.isOpened()) // check if we succeeded
return -1;
Mat edges;
namedWindow("edges", 1);
for (;;)
{
Mat frame;
cap >> frame; // get a new frame from camera
cvtColor(frame, edges, COLOR_BGR2GRAY);
GaussianBlur(edges, edges, Size(7, 7), 1.5, 1.5);
Canny(edges, edges, 0, 30, 3);
imshow("edges", edges);
if (waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;
}
※ 引述《yuci (vu03)》之铭言:
: 开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
: VS C++ 2015
: 额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
: OpepCV 3.0
: 问题(Question):
: 想要抓取自己开发版上的webcam (罗技C170)传过来的视讯影像
: 喂入的资料(Input):
: webcam C170 的网络串流(已经确定VLC可以读)
: 预期的正确结果(Expected Output):
: 错误结果(Wrong Output):
: 程式码(Code):(请善用置底文网页, 记得排版)
: 补充说明(Supplement):
: 目前看到好像只有OpenCV 2.X版本有支援cv::VideoCapture
: 想请问是他naming rule有改还是3.0目前还没有支援
: 谢谢!

Links booklink

Contact Us: admin [ a t ] ucptt.com