2013-05-09 7 views
0

VIVOTEK IP 카메라를 사용하고 있습니다. OPENCV와 인터페이스하려고합니다. 인터넷 익스플로러는 사용자 이름과 암호를 입력 한 후이 URL에서 훌륭한 비디오를 보여줍니다.IP 카메라 opencv : 오류 ffmpeg

코드가 나는 다음과 같은 오류

warning: Error openong file <../../modules/highgui/src/cap_ffmpeg_impl.hpp:529> 
Error opening video stream or file 

무슨 문제가 될 수있어

const std::string videoStreamAddress ="http://192.168.100.128/main.html"; 

//i have also tried "http://username:[email protected]/main.html" but the same 
//result 
//and also tried ""http://192.168.100.128" i.e without "main.html" 

if(!vcap.open(videoStreamAddress)) 
{ 

    std::cout << "Error opening video stream or file" << std::endl; 


    } 

아래에 주어진?

답변

0

제공하신 URL이 문제입니다. 이

"http://username:[email protected]/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg" 

같은 URL 뭔가를 사용하거나 다른 옵션은 iSpy 소프트웨어를 다운로드하고 당신을 위해 URL을 찾아 사용중인 카메라의 최선의 선택을 제공 IP 카메라 마법사를 사용하는 것입니다. 나는이 방법을 사용했다. Heres the code which worked for me.까지 IP 카메라에서 라이브 피드를 가져오고 싶습니다. Here's the list of URL which can be used to get the video from your IP Camera..