【问题标题】:IP Camera with opencv: error ffmpeg带有 opencv 的 IP 摄像机:错误 ffmpeg
【发布时间】:2013-05-09 05:57:32
【问题描述】:

我正在使用 VIVOTEK 网络摄像机。我正在尝试将它与 OPENCV 接口。输入用户名和密码后,Internet Explorer 在此 url 显示精美的视频。

代码如下

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

//i have also tried "http://username:pasword@192.168.100.128/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;


    }

我收到以下错误

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

可能是什么问题?

【问题讨论】:

    标签: opencv ip-camera


    【解决方案1】:

    您提供的网址是问题所在。您可以使用类似这样的 url

    "http://username:password@ipOfCamera/axis-cgi/mjpg/video.cgi?resolution=640x480&req_fps=30&.mjpg" 
    

    或者另一种选择是下载 iSpy 软件并使用 IP 摄像头向导,它会为您找到 URL,并为您正在使用的摄像头提供最佳选择。我确实使用了这种方法。 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..

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-13
      • 2014-05-30
      • 1970-01-01
      • 2018-01-23
      • 2014-12-19
      • 2011-07-28
      • 1970-01-01
      相关资源
      最近更新 更多