OpenCV ffmpeg错误 [英] OpenCV ffmpeg error
本文介绍了OpenCV ffmpeg错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在OpenCV中,我使用以下函数从文件创建CvCapture:
In OpenCV I am using the following function to create a CvCapture from a file:
CvCapture * data = cvCreateFileCapture(filename);
这对于带有.avi扩展名的视频文件很好用.当我使用使用rtsp协议的网络摄像机时,出现以下错误:
this works fine for video files with .avi extension. When I use a an internet camera using rtsp protocol I get the following error:
warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:477)
很显然,编解码器出了点问题.有人知道如何解决吗?由于我是OpenCV的新手,所以宁愿需要逐步说明.
Obviously there is something wrong with the codecs. Anybody knows how to solve it? Would rather need step by step instructions since I am a newbie with OpenCV.
推荐答案
文件名必须看起来像:"C:\\ test.avi",检查您的filePath
filename must seem like : "C:\\test.avi",check your filePath
这篇关于OpenCV ffmpeg错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文