带有opencv的IP摄像机:错误ffmpeg [英] IP Camera with opencv: error ffmpeg

查看:135
本文介绍了带有opencv的IP摄像机:错误ffmpeg的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VIVOTEK IP摄像机.我正在尝试将其与OPENCV接口.输入用户名和密码后,Internet Explorer会在该URL上显示精美的视频.

i am using VIVOTEK IP camera. I am trying to interface it with OPENCV. internet explorer shows fine video at this url, after entering username and password.

代码在下面给出

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 

可能是什么问题?

推荐答案

您提供的URL就是问题所在.您可以使用类似

The URL which you have given is the problem. You can use url something like this

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

另一个选择是下载iSpy软件并使用IP摄像机向导,该向导会为您找到URL,并为您正在使用的摄像机提供最佳选择.我确实使用了这种方法. 这里有对我有用的代码. 尽可能从IP摄像机获取实时供稿. 这是可用于从IP摄像机获取视频的URL列表..

Or another option is to download iSpy software and use IP camera wizard where it finds the URL for you and gives the best choice for the camera you are using. I did use this approach. Heres the code which worked for me. as far as you want to get the live feed from the IP Camera. Here's the list of URL which can be used to get the video from your IP Camera..

这篇关于带有opencv的IP摄像机:错误ffmpeg的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆